View Single Post
  #1 (permalink)  
Old May 20th, 2007, 05:28 AM
simjith simjith is offline
Registered User
 
Join Date: May 2007
Location: , , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Crystal report Viewer Not Showing Control Bar

Crystal report Viewer Not Showing Control Bar Button Icons in Windows XP
Dear Friends,

Most of the people using Crystal report along with VB.net 2003 in windows application. While executing, the project in windows 2003, its not showing any errors, but when we run it on Windows XP, in some forms, the control bar buttons(print, export, next page last page, previous page, first page, etc ) are showing without there icons. These invisible buttons can be found by placing the mouse over the specified area, then it shows the tool tip like print etc.

Also in tree view the images of different nodes are not shown.

EnableVisualStyles() to give that lovely XP look and feel ;). The solution is to add a DoEvents after the EnableVisualStyles().

i.e
C#
Code:
 
void Main()

{

Application.EnableVisualStyles();

Application.DoEvents();

Application.Run(new Form1());

}
VB dotnet
Code:
 
Application.EnableVisualStyles()
Application.DoEvents()
http://dotnet.dohub.com/
:)

Reply With Quote