Jump to content
Xtreme .Net Talk

Recommended Posts

Posted (edited)

hey guys in app i use the following code to paint a panel

 

 

 

Dim g As Graphics = e.Graphics
               Dim tempRect As Rectangle = New Rectangle(0, 0, PANEL.Width, PANEL.Height)
               Dim tempBrush As System.Drawing.Drawing2D.LinearGradientBrush = _
               New System.Drawing.Drawing2D.LinearGradientBrush(tempRect, COLOR1, COLOR2, System.Drawing.Drawing2D.LinearGradientMode.Horizontal)
               g.FillRectangle(tempBrush, tempRect)

 

 

but wen i added a panel to my splash form it just doesnt paint

 

any ideas why?...

 

[edit]That code is not PHP...[/edit]

Edited by Squirm
Posted

yeah it is

 

i dun even know why theres a problem

 

the splash forms border style is set to none

 

and its not shown in the taskbar

 

it center screen

 

loaded on intiilize part of the frm main

Posted

wat do u mean am i giving it a chance, it paints, and well its displayed in frmmain region code

 

initilise bit

 

using a system.threading.thead.sleep to close the form when its done..

  • *Experts*
Posted

Your code works just fine for me. Try putting a MessageBox.Show("test')

inside the Paint event just to ensure that it is actually firing. Perhaps

the event is hooked up incorrectly.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...