Click here to Skip to main content
15,889,096 members
Home / Discussions / C#
   

C#

 
AnswerRe: DataGridView and DataSets Pin
Xmen Real 10-Mar-09 16:26
professional Xmen Real 10-Mar-09 16:26 
AnswerRe: DataGridView and DataSets Pin
Samuel Cherinet10-Mar-09 17:45
Samuel Cherinet10-Mar-09 17:45 
QuestionASCII character conversion - this is driving me nuts Pin
Bryden.Murdoch10-Mar-09 14:12
Bryden.Murdoch10-Mar-09 14:12 
AnswerRe: ASCII character conversion - this is driving me nuts Pin
harold aptroot10-Mar-09 14:28
harold aptroot10-Mar-09 14:28 
AnswerRe: ASCII character conversion - this is driving me nuts Pin
Luc Pattyn10-Mar-09 15:14
sitebuilderLuc Pattyn10-Mar-09 15:14 
AnswerRe: ASCII character conversion - this is driving me nuts Pin
Alan N10-Mar-09 16:18
Alan N10-Mar-09 16:18 
GeneralRe: ASCII character conversion - this is driving me nuts Pin
Bryden.Murdoch11-Mar-09 9:21
Bryden.Murdoch11-Mar-09 9:21 
QuestionGraph Disappear Problem vol 2 Pin
StuffyEst10-Mar-09 12:15
StuffyEst10-Mar-09 12:15 
I have returned with my "small" problem.
Short overview:
1) Problem was/is that my graphics disappeared when you move them out of screen borders and pull them back or put some other window over them.
2) Graphics are updated every time I move my trackbar (which gives values to function to draw the graphic based on the values)


So I've made some progress, but still stuck on other part.

I have 3 different functions, one for graphic, second for graphic and third for axis.

I solved the paint problem with Axis, since its static and never changes, so it was quite easy to convert to paint event. On the other hand, graphs have both 2 parameters that they receive and the graph changes after that according to the values given.

Example : public void JoonistaGraafik(int k1, int k2)

now when I want to make it to paint event "public void JoonistaGraafik(object sender,PaintEventArgs e, int k1, int k2)"

I have problem calling out in InitializeComponents();

this.GraphPanel.Paint += new System.Windows.Forms.PaintEventHandler(JoonistaGraafik(slider_a, slider_b));

the thing is that, my two values "slider_a" and "slider_b" are generated in the trackbar_scroll event and then JoonistaGraafik(slider_a, slider_b); was called out.

I'm pretty bad in explaining, but I hope that made a bit sence.

In conclusion, the question is, how can I call out
"this.GraphPanel.Paint += new System.Windows.Forms.PaintEventHandler(JoonistaGraafik(slider_a, slider_b));"

if the slider_a and slider_b values have to change when I move the trackbar.

Or how can I make a paint event which gets values from trackbars (means the graphic has to update itself every time trackbar is moved).

Thanks for reading, and I hope someone can help me out (again).
AnswerRe: Graph Disappear Problem vol 2 Pin
Yusuf10-Mar-09 12:25
Yusuf10-Mar-09 12:25 
GeneralRe: Graph Disappear Problem vol 2 Pin
StuffyEst10-Mar-09 12:29
StuffyEst10-Mar-09 12:29 
AnswerRe: Graph Disappear Problem vol 2 Pin
Luc Pattyn10-Mar-09 15:28
sitebuilderLuc Pattyn10-Mar-09 15:28 
GeneralRe: Graph Disappear Problem vol 2 Pin
StuffyEst11-Mar-09 4:25
StuffyEst11-Mar-09 4:25 
QuestionProgrammatically Setting the Application's Privilege Level? Pin
That Asian Guy10-Mar-09 11:33
That Asian Guy10-Mar-09 11:33 
AnswerRe: Programmatically Setting the Application's Privilege Level? Pin
Ravadre10-Mar-09 13:14
Ravadre10-Mar-09 13:14 
QuestionOleDB UPDATE command throws exception Pin
Matthew Klein10-Mar-09 11:03
Matthew Klein10-Mar-09 11:03 
AnswerRe: OleDB UPDATE command throws exception Pin
Yusuf10-Mar-09 11:33
Yusuf10-Mar-09 11:33 
AnswerRe: OleDB UPDATE command throws exception Pin
Matthew Klein10-Mar-09 12:23
Matthew Klein10-Mar-09 12:23 
QuestionUpdate Database(ACCESS) from ASP page Pin
daks90610-Mar-09 10:11
daks90610-Mar-09 10:11 
AnswerRe: Update Database(ACCESS) from ASP page Pin
led mike10-Mar-09 10:25
led mike10-Mar-09 10:25 
QuestionRe: Update Database(ACCESS) from ASP page Pin
daks90610-Mar-09 12:08
daks90610-Mar-09 12:08 
AnswerRe: Update Database(ACCESS) from ASP page Pin
Yusuf10-Mar-09 11:38
Yusuf10-Mar-09 11:38 
QuestionDirectsound Sine wave Pin
Eja Beja10-Mar-09 9:33
Eja Beja10-Mar-09 9:33 
AnswerRe: Directsound Sine wave Pin
Luc Pattyn10-Mar-09 9:48
sitebuilderLuc Pattyn10-Mar-09 9:48 
AnswerRe: Directsound Sine wave Pin
Ravi Bhavnani10-Mar-09 13:19
professionalRavi Bhavnani10-Mar-09 13:19 
QuestionHow to prio-hide controls when window gets too small? Pin
ioctl5110-Mar-09 7:44
ioctl5110-Mar-09 7:44 

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.