|
...and don't forget to call Application.DoEvents() afterwards, or weird things can happen (at least that's the case with .NET 1.1. Does anybody know if this still hold true for .NET 2.0/3.0 ?)
Regards,
mav
--
Black holes are the places where God divided by 0...
|
|
|
|
|
mav.northwind wrote: Does anybody know if this still hold true for .NET 2.0/3.0 ?
Well.. didn't face this problem in .NET 2.0..
|
|
|
|
|
NOw i can see toolbar images. Using Application.DoEvents();
Thank you.
|
|
|
|
|
Which framework version are you using?
Regards,
mav
--
Black holes are the places where God divided by 0...
|
|
|
|
|
|
Hi Guys, I'm developing an application that sends ICMP echo requests (ping) via the .net Ping Class. I've some informations related to the network such as IP addresses,Urls,SiteNames and so stored in a xml file. I need to use theese informations in my ping method. The ping method will ping the sites and change the background color property of some shapes I've created.
In the first version of the application I created an Arraylist of all the Shape Controls an some arrays to store IP Adresses and SiteNames.The arrays was created at runtime just when the application was started.
So the method had just to iterate throw those arrays.
The question is: Do you think is better to read the values from the xml file each time I call the ping method (say once per second) or should I retrieve the values from the file and store them in a Array or Arraylist or whatever? Which of the two is the better performing way? I guess if I create Arrays I'll use much more memory but if have to read through the xml structure each time this would be processor consuming. Is that right?
|
|
|
|
|
ciriciri wrote: Is that right?
Yes.
Given that RAM is cheaper than disk access, you're better off storing the data in memory and writing any changes to the XML (assuming you want to persist the list across application runs) file.
/ravi
|
|
|
|
|
Hi,
I am getting following error while opening windows form in solution
"Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information..."
I Rebuilt the solution and all references are also fine. But still i am getting the error and could not able to open the form in design view.
I saw an article saying hotfix is available for this problem at MS site (http://support.microsoft.com/kb/912019/en-us), but the page is not available.
Any ideas are welcome
Thanks
kumar
|
|
|
|
|
I was wondering if anybody knew how this dll works?
http://www.deskperience.com/textcapture/index.html
Basically I need to get text information from another application's data grid. I could use api calls to get text from a textbox or list or just about anything but the data grid. Any ideas? Thanks.
P.s. I really want to avoid OCR if at all possible.
|
|
|
|
|
MrWhite340 wrote: I could use api calls to get text from a textbox or list or just about anything but the data grid.
You could do this, but unfortunately I can't remember which APIs you'd need to call, also it'd be fairly specific to your application.
|
|
|
|
|
It doesn't matter how specific it has to be per application, I just need to be pointed in the right direction. Does anybody know the API calls?
|
|
|
|
|
The basic strategy would be to use the Win32 API to get a handle to the required control and then look for functions which can extract text from that handle. I'm not sure which APIs you need to call but I think that if you look through the MSDN documentation the names of the functions are fairly self-explanatory.
|
|
|
|
|
I am getting as far as getting the handle to the control but there aren't any api calls for getting datagrid information. Only listboxes/text boxes, etc... This is where I am stuck! I searched msdn and didn't find a thing.
|
|
|
|
|
Is there a handle for the individual cells of the datagrid?
Are you trying to access a .NET datagrid or is it a "classic" Win32 control?
|
|
|
|
|
.net, and I can't seem to get individual handle to a cell... the handle is for the datagrid itself.
|
|
|
|
|
Are you always going to be dealing with a .NET control or do you also have to interop with "classic" components? If it's just a .NET control then I seem to remember that there's a way which you can deal with getting a reference to the .NET object.
Of course if you're dealing with both then you could just put something like: if(classicComponent) { do Win32 stuff } else { do .NET stuff }
|
|
|
|
|
May not always be .net... If I could get an example of either though, I'm sure I could figure out the other once I have sort of idea of a direction to go in. Do individual cells of data grids have handles?
|
|
|
|
|
MrWhite340 wrote: Do individual cells of data grids have handles?
I have no idea and I'm afraid at the moment I don't have too much time to investigate, I might have some time later in the evening but unlikely.
Formula 1 - Short for "F1 Racing" - named after the standard "help" key in Windows, it's a sport where participants desperately search through software help files trying to find actual documentation. It's tedious and somewhat cruel, most matches ending in a draw as no participant is able to find anything helpful. - Shog9
Ed
|
|
|
|
|
Hello,
I've read the following article:
http://support.microsoft.com/kb/319401[^]
It actually worked very nicely with my project but when I grouped listView items (using Group property) it stopped working completely.
Can you please tell me how can I fix that?
Your help would be greatly appreciated.
|
|
|
|
|
Hi,
Can abstract class implement any interface, if not, Why?
Anyone can help?
Thanks..
|
|
|
|
|
Abstract classes can implement interfaces.
|
|
|
|
|
Hello,
I am trying to set background image to listview, but when I load image it doesn't get adjusted to listview size (stretch - auto size adj.)
I using following code to load image
mListViewUI.BackgroundImage = Image.FromFile(@"c:\jpeg\image1.jpg");
Any help is appreciated.
Thanks in advance.
|
|
|
|
|
Isn't there a BackgroundStyle (or something similarly named) property which handles this, it's an enumeration with Stretch, None, Fixed, etc as values.
|
|
|
|
|
Bitmap bmp = new Bitmap(mListViewUI.BackgroundImage, mListViewUI.Width, mListViewUI.Height);
mListViewUI.BackgroundImage = bmp;
Mark
|
|
|
|
|
hi guys...
i'm having a hard time on how to convert a user-defined data types in vb6 to c#. Here's my user-defined data types code in vb6. I hope u can help me of this guys...
Private Type udtEmployee
strIdno as String * 12
strFName as String * 30
strLName as String * 30
...
....
End Type
Private mudtEmployee as udtEmployee
dickhead
|
|
|
|