Click here to Skip to main content
16,008,183 members
Home / Discussions / C#
   

C#

 
QuestionRe: hourglass mouse still clicking [modified] Pin
lushgrass16-Jul-06 21:24
lushgrass16-Jul-06 21:24 
AnswerRe: hourglass mouse still clicking Pin
Nader Elshehabi19-Jul-06 21:14
Nader Elshehabi19-Jul-06 21:14 
QuestionDetecting CTL+M Pin
picasso26-Jul-06 19:09
picasso26-Jul-06 19:09 
AnswerRe: Detecting CTL+M Pin
stancrm6-Jul-06 20:17
stancrm6-Jul-06 20:17 
QuestionHow can I populate a treeView from a database? Pin
AngryC6-Jul-06 18:59
AngryC6-Jul-06 18:59 
AnswerRe: How can I populate a treeView from a database? Pin
Nader Elshehabi6-Jul-06 21:41
Nader Elshehabi6-Jul-06 21:41 
QuestionGraphics Display Pin
ah_jiang_96-Jul-06 15:30
ah_jiang_96-Jul-06 15:30 
AnswerRe: Graphics Display Pin
Nader Elshehabi6-Jul-06 21:08
Nader Elshehabi6-Jul-06 21:08 
Hello

ah_jiang_9 wrote:
how can i possibly display graphics object?


There is a Paint event -or a similar event- that you have to handle in your control to draw whatever you want. In it's PaintEventArg.Graphics you can draw your image as you like. Some controls don't fire this event as they draw there own interface. Yet you can inherit from them or customly draw them. This depends on where you want to draw your graphics object

ah_jiang_9 wrote:
i created it from a picturebox and i added something to the picture but i have no idea on how to display it


Why? It's as simple as these three lines:

pictureBox1.Image = new Bitmap(pictureBox1.Width, pictureBox1.Height); //Make a new image in the box
Graphics g = Graphics.FromImage(pictureBox1.Image); //Make graphics
g.DrawLine(Pens.Black, new Point(5, 5), new Point(30, 30)); //Draw

RegardsRose | [Rose]
QuestionGraphic display for Tilt Sensor [modified] Pin
ckoehler6-Jul-06 15:03
ckoehler6-Jul-06 15:03 
AnswerRe: Graphic display for Tilt Sensor Pin
Nader Elshehabi6-Jul-06 21:32
Nader Elshehabi6-Jul-06 21:32 
QuestionUsing msbuild for publishing a ClickOnce app... Pin
Raffi NYC6-Jul-06 12:42
Raffi NYC6-Jul-06 12:42 
QuestionHow to prevent encoding in Soap Body Pin
acvishy6-Jul-06 12:19
acvishy6-Jul-06 12:19 
Questionshutdown Pin
erfi6-Jul-06 11:24
erfi6-Jul-06 11:24 
AnswerRe: shutdown Pin
Dan Neely6-Jul-06 11:50
Dan Neely6-Jul-06 11:50 
AnswerRe: shutdown Pin
engsrini6-Jul-06 20:33
engsrini6-Jul-06 20:33 
Questionhow to execute windows mediaplyer Pin
erfi6-Jul-06 11:19
erfi6-Jul-06 11:19 
AnswerRe: how to execute windows mediaplyer Pin
Wjousts6-Jul-06 11:58
Wjousts6-Jul-06 11:58 
QuestionSqlRowUpdatedEventHandler question Pin
leckey6-Jul-06 11:03
leckey6-Jul-06 11:03 
AnswerRe: SqlRowUpdatedEventHandler question Pin
led mike6-Jul-06 11:10
led mike6-Jul-06 11:10 
QuestionCollection Serialization Error: unable to convert to InstanceDescriptor [modified] Pin
FocusedWolf6-Jul-06 10:00
FocusedWolf6-Jul-06 10:00 
AnswerRe: Collection Serialization Error: unable to convert to InstanceDescriptor Pin
led mike6-Jul-06 10:32
led mike6-Jul-06 10:32 
GeneralRe: Collection Serialization Error: unable to convert to InstanceDescriptor Pin
FocusedWolf6-Jul-06 10:54
FocusedWolf6-Jul-06 10:54 
GeneralRe: Collection Serialization Error: unable to convert to InstanceDescriptor Pin
led mike6-Jul-06 11:06
led mike6-Jul-06 11:06 
GeneralRe: Collection Serialization Error: unable to convert to InstanceDescriptor Pin
FocusedWolf6-Jul-06 11:20
FocusedWolf6-Jul-06 11:20 
GeneralRe: Collection Serialization Error: unable to convert to InstanceDescriptor Pin
led mike6-Jul-06 11:48
led mike6-Jul-06 11:48 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.