|
In case you're using Framework 2.0 you should use the generic Dictionary instead of HashTable as it provides the same functionality and additionally makes your code type-safe.
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook www.troschuetz.de
|
|
|
|
|
|
I have a C#/OpenGL screensaver I've been working on. First I tried CsGL, now I have it working with the Tao library. I've always been a fan of Taoism, so hopefully I'll have better luck this time. I had one problem where it would freeze after rendering a few frames, but wouldn't let me catch an exception or anything. I would love it if anyone has heard of this problem, please let me know what caused it. Also, please try the screensaver and see if it works for you. There's a page for it here:
http://www.smoothjazzy.com/prog_screensaver.htm[^]
I really need to get this working so any help would be appreciated. I can send source code but I wouldn't know which part to start with... BTW, the problem is not occurring now - not for me at least
"Quality Software since 1983!" http://www.smoothjazzy.com/ - see the "Programming" section for (freeware) JazzySiteMaps, a simple application to generate .Net and Google-style sitemaps!
|
|
|
|
|
Hi, Im kinda new here.
I was just wondering if there was a way to watch outgoing connections (ie if program a wants to connect to 239.349.12.34 port 3309 then I could watch all data it sends and recieves) is it possible?
|
|
|
|
|
Hi,
I have problem with my DataSet ebhabiour.
In my program, I created a public static myDataSetObj which holds all the tables in my active database in MySQL.
I place that DataSet in a class named clsGlobal. inside clsGlobal, I also make some public static procedures, procedure X to read all tables from MySQL database, procedure Y to read all tables found and insert the tables into DataSet.
Procedure X and Y are executed in MainFormObj.onLoad.
After that, I pressed ProductButton in MainFormObj to display ProductFormObj. Inside ProductFormObj, there is a public DataGrid and an UpdateButton.
In ProductButton click event, I instruct that DataGrid.DataSource in ProductFormObj is pointed to clsGlobal.MyDataSetObj.Tables["product_table"];
When ProductFormObj launches, I can see that the DataGrid displays nicely the content of table "product_table".
Then, in UpdateButton click event, I place this code:
if(clsGlobal.MyDataSetObj.Tables["product_table"].getChanges() != null){
MessageBox.show("Data Changed");
}
else{
MessageBox.show("DATA NOT CHANGED");
}
The problem is, when I change the content of DataGrid and press UpdateButton, Message "DATA NOT CHANGED" keeps displaying. This is not right?? because the content of "product_table" has changed.
BUT, when I closes the ProductFormObj and opened it again, my new value in DataGrid still exist and this time a directly pressed UpdateButton (without editing data in DataGrid) the message "Data Changed" appear!
In the other hand, I also have another project that works with similar system as abvove. But much simpler in code and structure.
Well, many thx for any helps.
|
|
|
|
|
Well, I just solved it. I change the TOOLSTRIPBUTTON to BUTTON. same code.
and it works!!
What is this...
BUG ????
|
|
|
|
|
Hi,
I have a problem when using BackgroundWorker in MDI child Form.
Each MDI child in my application has its own BackgroundWorker, which is use for downsampling image. The backgroundworker in MDI child will auto start after the Child Form created.
The problem I found is, when I open more than one MDI child(that means mulitple downsampling process is running at the same time), but some process of MDI child will be stopped.
I don't know why it will stop. Is there any limitation of BackgroundWorker?
Can anyone know this issue? How can I solve it?
Thanks a lot.
|
|
|
|
|
How many threads are you trying to run? Too many can just slow things down.
"Quality Software since 1983!" http://www.smoothjazzy.com/ - see the "Programming" section for (freeware) JazzySiteMaps, a simple application to generate .Net and Google-style sitemaps!
|
|
|
|
|
I just try to open 2 child Form.
Both of them are starting the downsample process.
slow down problem we can understand, and is acceptable . But one thread suddenly stop, it makes us feel a big problem.
Btw, each child Form, just starting one BackgroundWorker.
I really don't know why it will stop? Did I get something wrong?
|
|
|
|
|
There's a lot that can go wrong with multiple threads. How are they invoked? Are they started by the main form or something else? Do they have any shared object? Send code...
"Quality Software since 1983!" http://www.smoothjazzy.com/ - see the "Programming" section for (freeware) JazzySiteMaps, a simple application to generate .Net and Google-style sitemaps!
|
|
|
|
|
To all,
I have read and implemented the suggestions by Asif Sayed in Reporting Hierarchical Recursive Data using MS Reporting Services here at Code Project. This seemed to work really well until I noticed that data was missing...
In my dataset, the analogy is that a single employee can report to more than one manager. And for those times the data is missing for the second and third managers.
Has anyone run across the same problem? If so, what was the technique that you used to work around the problem.
I am using .Net 2.0, C# SQL 2005 and Reporting Services.
Thanks in advance for the help!
Rob
|
|
|
|
|
Rob, if you haven't already, you might want to post this question onto the article itself, as the author might have a better idea about what could be wrong.
|
|
|
|
|
I have about a week or two aga but have not gotten any responses. Therefore, I thought of posting it here. If anybody has any leads please forward them to me.
Thanks
|
|
|
|
|
Can anyone point me to some documentation covering what events are triggered when?
Thanks!
David Wilkes
|
|
|
|
|
amatbrewer wrote: Can anyone point me to some documentation covering what events are triggered when?
Have you looked in MSDN?
|
|
|
|
|
What events are you interested in, David? There are many events on Windows Forms controls...I've never seen an exhaustive source of docs on the order of events on Win Forms controls. Most of them are pretty straightforward though (Disposing before Disposed, etc).
|
|
|
|
|
Judah,
Thanks for the reply.
Primarily I am looking for the sequence of events for the Text box, Masked Text box, & numeric up/down.
A loooong time ago when I was trying to learn Visual C++ I found documentation on exactly what triggered each event and when. I have not been able to locate anything like that for Visual C#.
Background.
I am just learning C# after being away from programming for quite a while. I am trying to validate (and limit) user input, and allow controls to change each other depending on which one the user is entering data into (e.g. change in text box1 changes text box2 and vice versa).
David Wilkes
|
|
|
|
|
Maybe I have to use a form to do that rather than using a messagebox. It seems like a message box depends on the form it is being called.
I do have a form where I have a line of code to call a dialog. From that dialog, I open another form. When the user click ok, I want the first form to close, however it does not close.
here is what I am talking about
for example, assume that my form is form 3, inside my form 3, I have a dialog to open form two. When the user clicks ok, form 2 will open where form 3 will close, however form 3 never closes
inside form 3 I have
if (dialogresponse == dialogresult.ok)
form3.activeform.close();
then create an open form 2
The way to look at it, form 3 only close after form 2 open and close
it does not work, it seems like I have to do that in another form. I don't want fo have a form for that only. Maybe I am missing something.
-- modified at 20:02 Thursday 14th December, 2006
|
|
|
|
|
Hi,
are you using MDI interface style. if yes then try using ActiveMdiChild property.
if not then see if your ActiveForm is not returning null reference. further if you are running this code inside form3, can you not simply call this.close().
Regards.
|
|
|
|
|
I am not using MDI, my application is simply single document or single form. Also I already tried this.close but it does not work
by the way this is the simple code
<br />
<br />
DialogResult myMessage;<br />
messageResponse = MessageBox.Show("message", "title", MessageBoxButtons.OKCancel, MessageBoxIcon.Question);<br />
if (myMessage== DialogResult.OK)<br />
{<br />
Form2 form2= new Form2();<br />
form2.ShowDialog();<br />
Form3.ActiveForm.Close();
}<br />
<br />
|
|
|
|
|
how to change caption bar colour
SAS
|
|
|
|
|
In XP Pro right click the desktop and select "Properties" from the menu.
Select the "Appearance" tab and click the "Advanced" button.
click on the "Active Window" caption bar which will select "Active Title Bar" in the "Item" Combobox. Then select your colour.
led mike
|
|
|
|
|
sajid.salim.khan wrote: how to change caption bar colour
AFAIK, you can only change caption color through the display properties.
Some people have a memory and an attention span, you should try them out one day. - Jeremy Falcon
|
|
|
|
|
SAS
|
|
|
|
|
Hi, Can anybody tell me how can i put the same pages per sheet document property as we have available on either notepad or wordpad. I can print my contents/data but I also want to display an option to print 2 pages contents on 1 page. I tried to instantiate an object from PrintDialog class and also tried from PageSetting class but neither of them have the property to print on 2 pages.
a general sample
open notepad or wordpad:
Print->Preferences->Layout->pages per sheet.
Thanks
|
|
|
|