Search Results

Showing results 1 to 27 of 27
Search took 0.01 seconds.
Search: Posts Made By: nikola.rosic
Forum: C# Feb 11th, 2009
Replies: 0
Views: 211
Posted By nikola.rosic
Well i have an application which is connecting to a certain device over tcp/ip.The connection sometimes gets broken so i have made a reconnect function which is then called and does the reconnect and...
Forum: C# Jan 27th, 2009
Replies: 12
Solved: redrawing panel
Views: 2,409
Posted By nikola.rosic
Well one more thing.This is just from curiosity.As i have seen the formPaint_event is firing on almost anything.I have tried to find an explanation on the msdn and it says the event is firing every...
Forum: C# Jan 27th, 2009
Replies: 12
Solved: redrawing panel
Views: 2,409
Posted By nikola.rosic
Well this are the results:

The sizechanged event wasn't good because it was only working when i manually changed the form size.In other cases it didn't fired.

The Form_paint event was a cure...
Forum: C# Jan 27th, 2009
Replies: 12
Solved: redrawing panel
Views: 2,409
Posted By nikola.rosic
Well thank you all for your help.I will try to test all of your suggestions.I hope it will work
Forum: C# Jan 26th, 2009
Replies: 12
Solved: redrawing panel
Views: 2,409
Posted By nikola.rosic
OK i will do that but you didn't understood what is bodering me.I think i know how to redraw the graph but i don't know how will i know when to do it.I don't know how to tell the code:"OK the graph...
Forum: C# Jan 26th, 2009
Replies: 12
Solved: redrawing panel
Views: 2,409
Posted By nikola.rosic
I have a panel on form and i'm drawing a graph on it with a pen.When i open something on top of that form or i minimize the form and maximize it, the panel goes white until i draw something on it...
Forum: C# Dec 11th, 2008
Replies: 39
Views: 2,699
Posted By nikola.rosic
I have managed to solve the problem thanks to you.Well the problem was in my event which is in charge for updating of the child form as you have told me.All i did i put a new event BGW report...
Forum: C# Dec 10th, 2008
Replies: 39
Views: 2,699
Posted By nikola.rosic
Well if you think that this is your article on this link i tried to open it but i have opened some stuff on chinese or something like that and that's a problem because my chinese is not so good :)
...
Forum: C# Dec 10th, 2008
Replies: 39
Views: 2,699
Posted By nikola.rosic
As I said earlier this is my first Application i don't have any experience with it so one thing is to read an article and the other is to have made.I have a lack of experience
Forum: C# Dec 10th, 2008
Replies: 39
Views: 2,699
Posted By nikola.rosic
Well to be honest i read a bunch of articles on that matter

Did i said something stupid???

:)
Forum: C# Dec 10th, 2008
Replies: 39
Views: 2,699
Posted By nikola.rosic
OK!!!

The function that does the update is in the Form2 class.

In it i have a:
public void Update()
{
lock(locker)
{
}
Forum: C# Dec 10th, 2008
Replies: 39
Views: 2,699
Posted By nikola.rosic
Well yesterday i tried to do something new.After i open one of the child forms and when i wish to close it I also stop the BGW which is for that child form.And then i tried to open an another child...
Forum: C# Dec 8th, 2008
Replies: 39
Views: 2,699
Posted By nikola.rosic
in myevent i'm comparing data and i change a color of my pictures.So this data is not shown but on the child form(instance of Form2) i have a panel and on it my drawing an graph

Graphics g =...
Forum: C# Dec 8th, 2008
Replies: 39
Views: 2,699
Posted By nikola.rosic
Well my question is:

Should i stop the background workers when i'm switching between instances of form2.I really can't see the reason why should i do this but i'm now really out of clue why my...
Forum: C# Dec 8th, 2008
Replies: 39
Views: 2,699
Posted By nikola.rosic
OK i am going to do this.

thanks
Forum: C# Dec 8th, 2008
Replies: 39
Views: 2,699
Posted By nikola.rosic
Well thats true so!!!!

Is this the right way to solve this problem:

form1.MyEvent -= new MyDelegate(form1.OnEvent);

should i put this after I call clicked();

Do you think that this is...
Forum: C# Dec 8th, 2008
Replies: 39
Views: 2,699
Posted By nikola.rosic
1.The background workers are working all the time.I thought that that's the idea that BGW are collecting data all the time.I'm not stopping them even when i click to open one of those 2 instances.
...
Forum: C# Dec 5th, 2008
Replies: 39
Views: 2,699
Posted By nikola.rosic
Well i have tried what have you told me but unfortunately the problem is not here.I still got the freeze when i change the instances on the button click event of the main form application.

I'm...
Forum: C# Dec 4th, 2008
Replies: 39
Views: 2,699
Posted By nikola.rosic
Thanks, i will put locks in the code that all 3 background workers use so maybe this will help

Also i will instance all 3 instances of Form2 in main() and not in the BW-s maybe this will give some...
Forum: C# Dec 4th, 2008
Replies: 39
Views: 2,699
Posted By nikola.rosic
Thanks for your advice but I forgot to tell you that i already have the part of code which is checking the invoke required and I have the invoke.Before when i didn't had it the visual studio...
Forum: C# Dec 3rd, 2008
Replies: 39
Views: 2,699
Posted By nikola.rosic
So if I understood this correctly. I shouldn't do update of an instance with get,set properties which have been defined in the Form2 class but after i gather all the informations in one cycle i...
Forum: C# Dec 3rd, 2008
Replies: 39
Views: 2,699
Posted By nikola.rosic
Form2(0) and Form2(1).
I use this argument because variables that the constructor needs to draw (sizes and stuff) are in a array so in this way the constructor knows that for first instance he must...
Forum: C# Dec 3rd, 2008
Replies: 39
Views: 2,699
Posted By nikola.rosic
well the first background worker
this code is in main:

BackgroundWorker bw1 = new BackgroundWorker();
bw1.DoWork += new DoWorkEventHandler(BWClass1.bw1_DoWork);

this code down is in...
Forum: C# Dec 3rd, 2008
Replies: 39
Views: 2,699
Posted By nikola.rosic
Well instance of Form2 is being made in Background worker class as public static.Each background worker has his own class.ALL the data is beeing sent to the Form2 class via get,set properties also...
Forum: C# Dec 3rd, 2008
Replies: 39
Views: 2,699
Posted By nikola.rosic
Thank you for your effort i will try to answer your questions the best i can.

1.the main program only creates the main form from which 3 other forms are opened.
Each of the background workers...
Forum: C# Dec 2nd, 2008
Replies: 39
Views: 2,699
Posted By nikola.rosic
Well i have one main form which i run like an application.On that main form i have 3 buttons which are opening another 3 forms(instances of Form2 class) which are of the same class Form2.

So i...
Forum: C# Jul 15th, 2008
Replies: 0
Views: 2,111
Posted By nikola.rosic
I'm connecting with C# to a device over ethernet and sending him messages and reading from it.Everything is working fine for one specific message i'm getting a message compressed with RFC 1950.I have...
Showing results 1 to 27 of 27

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC