Click here to Skip to main content
15,887,267 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
QuestionRegarding Dialog boxes Pin
Sameer Chaudhari6-Mar-06 19:38
Sameer Chaudhari6-Mar-06 19:38 
QuestionCustom BindingNavigator as Default for DataGridViews? Pin
Pink Floyd6-Mar-06 9:27
Pink Floyd6-Mar-06 9:27 
QuestionrEADING dATA FROM SOUND CARD Pin
t4ure4n6-Mar-06 0:31
t4ure4n6-Mar-06 0:31 
AnswerRe: rEADING dATA FROM SOUND CARD Pin
t4ure4n8-Mar-06 3:56
t4ure4n8-Mar-06 3:56 
AnswerRe: rEADING dATA FROM SOUND CARD Pin
t4ure4n8-Mar-06 4:09
t4ure4n8-Mar-06 4:09 
QuestionLoad a Page Object from a filename Pin
ZiggY815-Mar-06 22:29
ZiggY815-Mar-06 22:29 
GeneralRe: Load a Page Object from a filename Pin
Guffa6-Mar-06 0:04
Guffa6-Mar-06 0:04 
QuestionGDI+ Pin
badge19865-Mar-06 13:12
badge19865-Mar-06 13:12 
I'm having trouble with the Graphics class. I developed a class and gave it a method called Draw which takes a Graphics class as an input then draws itself to this. Fairly obvious stuff I thought.
In the parent forms onpaint call I loop through all the instances of my class calling the Draw method and passing it the eventArgs.Graphics object but for some reason it only displays the last class in the array. This is my current code. I even tried taking the contents of Draw(Graphics g) and putting it in the for loop but even this didnt help.What am I doing wrong? Any help would be greatly appreciated...

private void canvas_Paint(object sender, System.Windows.Forms.PaintEventArgs e)
{
int i;

e.Graphics.SmoothingMode = System.Drawing.Drawing2D.SmoothingMode.AntiAlias;
for(i=0;i<n;i++)
{
pArray[i].Draw(e.Graphics);
}

if(adding)
{
tempParticle.Draw(e.Graphics);
}
}
AnswerRe: GDI+ Pin
Guffa5-Mar-06 22:16
Guffa5-Mar-06 22:16 
GeneralRe: GDI+ Pin
badge19865-Mar-06 23:46
badge19865-Mar-06 23:46 
GeneralRe: GDI+ Pin
Guffa6-Mar-06 0:00
Guffa6-Mar-06 0:00 
GeneralRe: GDI+ Pin
badge19867-Mar-06 0:52
badge19867-Mar-06 0:52 
QuestionPropertyGrid - Replace "Property value is not valid" message Pin
nick_xenacom5-Mar-06 12:53
nick_xenacom5-Mar-06 12:53 
QuestionHow to get Open button event of Word in addin Pin
Anil_gupta5-Mar-06 5:14
Anil_gupta5-Mar-06 5:14 
QuestionHow can I use a native DLL in .Net 2005? Pin
a_kiani5-Mar-06 3:15
a_kiani5-Mar-06 3:15 
AnswerRe: How can I use a native DLL in .Net 2005? Pin
soma42011-Mar-06 6:54
soma42011-Mar-06 6:54 
AnswerRe: How can I use a native DLL in .Net 2005? Pin
liRetro3-Apr-06 5:37
liRetro3-Apr-06 5:37 
QuestionSerialization Doubt Pin
manivannan.p5-Mar-06 1:20
manivannan.p5-Mar-06 1:20 
AnswerRe: Serialization Doubt Pin
Guffa5-Mar-06 2:07
Guffa5-Mar-06 2:07 
QuestionHow does StringBuilder Work? Pin
manivannan.p5-Mar-06 1:13
manivannan.p5-Mar-06 1:13 
GeneralRe: How does StringBuilder Work? Pin
Guffa5-Mar-06 2:08
Guffa5-Mar-06 2:08 
AnswerRe: How does StringBuilder Work? Pin
Vasudevan Deepak Kumar6-Mar-06 22:24
Vasudevan Deepak Kumar6-Mar-06 22:24 
QuestionUse sytem icons Pin
Viktor Nilsson4-Mar-06 1:49
Viktor Nilsson4-Mar-06 1:49 
AnswerRe: Reading data samples from sound card Pin
Dan Neely3-Mar-06 6:42
Dan Neely3-Mar-06 6:42 
QuestionActive X in a Smart Client (is it Possible) Pin
mark_e_mark3-Mar-06 5:15
mark_e_mark3-Mar-06 5:15 

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.