|
http://www.getpaint.net/index2.html[^]
I haven't really looked at Paint.NET source but I can imagine there's a lot to learn.
"Throughout human history, we have been dependent on machines to survive. Fate, it seems, is not without a sense of irony. " - Morpheus
|
|
|
|
|
Hello,
I have a tab control and on one of the tabs I have the ListView control that has the ItemCheck event. When application starts, the tab that contains the ListView does not have focus. But if I select that tab, the ItemCheck event fires all the time, but only the first time I select the tab. If I start switching the tabs the event does not fire anymore.
What's going on? How can I suppress that event firing for the first time?
Thank you.
|
|
|
|
|
According to MSDN, "the ItemCheck event occurs when the check state of an item changes or when the CheckBoxes property is set to true". Perhaps the first instance of the event occurs when you set the list view's CheckBoxes property?
/ravi
|
|
|
|
|
I´m working with large xml files(about 100MB) and what I have to do is:
- first validate the xml file against a schema
- then insert data from the file to a database
What is the most efficient way to do this? Can anyone help me with this?
cellardoor
|
|
|
|
|
Efficient at 100 megs may not be that big of an issue. System.Xml.XmlReader is the fast method for reading. System.Xml.XmlValidatingReader will validate.
File Not Found
|
|
|
|
|
Using a DOM reader like XmlDocument is the standard way to read/edit xml documents (at least I think...) because you can use XPATH and stuff. However, if you read a 100MB xml document with a dom reader your program will be suddenly using 100MB of ram. I'm pretty sure you don't want that...
/\ |_ E X E GG
|
|
|
|
|
Yeah, Ennis Ray Lynch, Jr. is right, you want to use a sax based reader like XmlReader because a DOM based reader like XmlDocument would be too slow.
/\ |_ E X E GG
|
|
|
|
|
Thanks I´ll try it
cellardoor
|
|
|
|
|
The following link should be helpful for the validation part: Validating XML Data with XmlReader[^]
"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
|
|
|
|
|
Using Visual Studio 2005, I'm creating an application with floating tool bars similar to that of Photoshop (or most any application with floating tool bars) that share focus amongst each other. I have my tool bars in separate forms, and I call form.Show(ownerForm), to display the toolbar, where ownerForm is the main application's form. The problem is that only one form, the application's main form or the tool bar, can have focus at a time. Is there a property or method I can call to give focus to both the tool bar and the application's main form at the same time?
Skip
|
|
|
|
|
i think if you develop the toolbar as a usercontrol not as a frame it will give you an advantage. cz if you did it as a user control and add it to the first frame it will be as any normal control in your frame. this will allow you to have a double focus. you can drag and drop from it and .........
i am not very sure about the idea i gave you but i think it will be a starting point for you.
good luck
|
|
|
|
|
In VS2005 C#,How to make first item of the Combobox as default selection?
I have tried Combobox.selectedIndex=-1.But its not working.
Is there anyother way?
Thanks in advance
|
|
|
|
|
aruna_koride wrote: I have tried Combobox.selectedIndex=-1.But its not working.
What about:
SelectedIndex=0;
???
Marc
Thyme In The CountryPeople are just notoriously impossible. --DavidCrow There's NO excuse for not commenting your code. -- John Simmons / outlaw programmer People who say that they will refactor their code later to make it "good" don't understand refactoring, nor the art and craft of programming. -- Josh Smith
|
|
|
|
|
Setting the SelectedIndex property to 1 deselects the currently selected item (if any). Use a value of zero to select the first item.
/ravi
|
|
|
|
|
Hi,
Setting the SelectedIndex to -1, will lead to a blank text being displayed as the first item of the dropdown combo. Instead try with setting SelectedIndex = 0;
this.dropdown1.SelectedIndex = 0;
might help u out.
Thanking you in Advance
Regards
Pratik Shah
|
|
|
|
|
How do i access Access Control List on a directory in windows 2000 in C#
|
|
|
|
|
Check out this article[^] from MSDN that goes over how it's done.
|
|
|
|
|
Hi
I developed application using VS2005.I have few questions about UI,
1. I have used the icons provided by the VS2005 to resize the buttons and text boxes.But,now I could not move the controls.Its very hard to even insert or resize a new control, what could be the problem?
2.I have used tabControl with tabPage collection,I changed the backcolor of tabControl , but tabpage buttons still system-color,I am not able to change their color or nor resize them.
3.I have developed an instant messaging application, can I prompt the user using mini icons at bottom of PC when the message comes? how to do that?
|
|
|
|
|
1. ?
2. You can't change the colour/ size of the tabs by default. There are some extended TabControl 's about. Google it.
3. You'll want the NotifyIcon control for this.
|
|
|
|
|
Hello everyone! I have experienced problems with setting the connection string when I try to connect to a file of type DBF (dBase, FoxPro) and OleDbCommand for the insert statement (both by code). I use Visual Studio 2003? Can anybody help me to manage with this?
the source is c:\myTable.dbf
the insert statement:
use myTable
insert into myTable(someColumn)
values ('string')
Thanks in advance!
|
|
|
|
|
|
I know I've read it somewhere here, but I can't seem to find it (now that I'm looking for it).
I want to catch a keystroke outside of the program (like, if a different program is focused and I want to hit a key, like F12 or something, and have my program act on it while minimized). Can someone point me in the right direction please?
-Daniel
Typing too fast fro my owngood
|
|
|
|
|
well, google 'global hooks'
here's some useful articles:
http://www.codeproject.com/csharp/globalhook.asp
http://support.microsoft.com/kb/318804
|
|
|
|
|
You rock. Thank you!
-Daniel
Typing too fast fro my owngood
|
|
|
|
|
No problem, I'm glad i could help (and now i wish someone could answer my thread >_<)
|
|
|
|