|
Demachina just released a new tool that exposes a large number of Device and Compact Framework statistics remotely using the standard windows performance monitor.
Get it at www.demachina.com/products/perfy
|
|
|
|
|
Cool - thanks for your act of goodwill.
Oh, wait. It's $50. In that case, pull your head in. If you want to advertise on this site, contact the people running it, and pay for your ads like everyone else.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
hi
i want to connect a property grid to a button and only show BackColor in this property grid but not with caption "BackColor" and instead of this i want to show for example "ColorButton"
when user changed this property like changing backcolor , color of button must be change.
i can declare my own property but i can't connect that to my button???
how can i do this ????
Best Regards
-------------
MkhProgrammer
|
|
|
|
|
Because all the properties of a control are visible in a Properties window by default you actually need to force the hiding of any that you don't want to appear. Create your own button class inherited from Button and add a public property called ColorButton that sets the BackColor on the base class.
To remove all the button properties from the PropertyGrid you need to override the properties of the base class and set their Browsable attribute to False. This attribute determines if the property will be displayed in a Properties window. You must import the System.ComponentModel namespace in order to use the Browsable attribute.
I hope that you are not so mad now...although it is a lot of code to hide all of the other properties.
If you are simply trying to create a color selection control of sorts check out The ColorPicker WinForms Control Revisited and do a search for others.
|
|
|
|
|
Hi,
Have anybody tried inheriting from CommonDialog class
I want to know, how to implement the RunDialog() function
in my derived class?
Thanks
|
|
|
|
|
Ive never done it but you could use Reflector to look how Microsofts developers did it
|
|
|
|
|
Hi Robert,
This is a good tool. (for the source code view)
I will try it.
Thanks.
Zor
|
|
|
|
|
Dear Sir/Madam,
I Karuna, Iam an MCA, I want the sourcecode for - connecting to the FTP server using VB.net and upload and download files from and to the FTP server using VB.net
Send me(kurasala3@yahoo.com) as early as possible,Please help me for my project
Thank you
yours sincerely
Karuna Das
|
|
|
|
|
I want to create an Access database on my PocketPC (WinCE4.2, PocketPC 2003 OS). Then using C# to populate tables, query tables, ...
From a simple search on Google.com I find that I must use ADOCE.NET but I didn't succeed to download it and also didn't see any control that I can use from Visual Studio 2003 (I created a project for Smart Mobile Device).
Is there any one has experiences doing such kind of work?
Best regards,
A. Riazi
|
|
|
|
|
I am trying to send mouse right click event thru SendInput API.
Its working on XP but not on longhorn.
Can anybody tell me why so?
Is there any other way to simulate mouse right click event on longhorn using win32 APIs or .net freamework classes?
Please Help !!!
|
|
|
|
|
Hi,
Here's the problem. We have an XP Embedded box that is mobile and goes in and out of Wireless (Cisco) coverage. Occasionally the box will roam from one Access Point to another and sometimes this causes a "LEAP Authentication" problem. That is, a bunch of dialog boxes pop up and the user has to click "OK" and re-enter their network password.
Now I've successfully implemented a Windows Service in C# that will call FindWindow() and SendDlgItemMessage() etc to do all the work; testing on my laptop while I'm logged on has made me a happy camper. Note that it is very similar to the article here:
Using P/Invoke to Automate Database Signon
The biggest problem is that the series of dialog boxes that pop up can pop up while Windows does not have a user logged in. That is, the logon prompt is showing with these Cisco dialog boxes patiently waiting for user input. My service runs while this is happening, but it never ever sees these dialog boxes. And I even have the service set to "Interact with Desktop".
Has anyone had any luck with a similar problem? Do I have to do more than "FindWindow()". Is this a service setting?
I apologize if this isn't the correct forum for these problems.
Thank you for your time!
-Chris
|
|
|
|
|
For those of you who are interrested, I just started my blog (yes, even me!). It's about my experience with Whidbey Beta 2 (and up). We just started using it internally and I'd like to share my problems, workarounds, thoughts, tips, tricks and so on with the world.
If you feel like it, come and see http://whidbeybeta.blogspot.com/[^]
I will use this mainly as a log of the bugs and problems I experienced and how I managed to fix them.
|
|
|
|
|
I have a problem with setting the datasource property of a datagrid in the compact framework 1.0.
Here's the senario:
I'm making an asyncronous web service call that returns a dataset with one table. This could be any data in the table. From within the thread for the web service call, I want to get the data and then set the datasource property of the datagrid to ds1.Tables[0];. When reaching that line of code the entire application hangs. I have to stop debugging to return to normal state. Now I at first thought this was a problem with my coding, but the more I delve into it I find that it seems to be a threading problem in the framework. I do not have this problem with any other control, be it a listview, combobox... I can set their display member property while in the other thread with no problem. Now I can change the web service call syncronous and it works fine. The problem seems to center around the thread issue. Has anyone seen this before on a datagrid? Also this problem is inherited by ComponentOne's mobile datagrid since it does the same thing. I have tried converting the dataset to an arraylist and loading it that way... no juice... I have tried creating another dataset at intialization and creating a dumby table with the same charitoristic as the one coming from the web service. set the datasource property of the datagrid to the table, then in the asycronous web service call actually use the dataset.ImportRow in a foreach statement from the dataset the webservice call returns and it will hang on the first record. I guess because the secondary thread is trying to change the datagrid...
Any suggestions?
|
|
|
|
|
hi everybody,
i want to install MS SQL Reporting Service at 64 bit platform.
Could it be running well, or does anyone ever do before ?
thank you
email : sukasukabo@hotmail.com
|
|
|
|
|
I'm looking for a way using C# or VB.net to reference variables. More specificly, I have a loaded hashtable that was created on my main form. When I open a new form, I need to have access to that information in the hastable. I don't want to pass the table between forms as this would create copies of the original and end up using more memory.
What is the best way to accomplish this??
|
|
|
|
|
No it wont take up much memory! If you pass your HashTable to another form only a reference to that single HashTable is passed. So the memory usage is just 4 byte (on a 32 bit os). This also means changing the HashTable in one place also changes it everywhere else you passed the reference to.
If you still dont want to pass the HashTable around and you only need one instance of it in your whole application declare the variable in your main form public static. This way everyone can access it with MyMainFormClassName.MyPublicHashTableVariable .
|
|
|
|
|
|
KaptinKrunch wrote:
don't want to pass the table between forms as this would create copies of the original and end up using more memory.
Except for value types, everything in .NET is an object (and even value types can be boxed to be objects). All objects are already passed as references. That's why you don't need pointers, or * to dereference a pointer, and that's why you don't need new and delete--the GC keeps track of the references to an object.
Marc
MyXaml
Advanced Unit Testing
YAPO
|
|
|
|
|
Hi ,
How to get Registry key value from 'search target machine'? How you access it in launch condition?
I have to read registry key, get location of old installed software, Add my files to that location and update some configuration files.
Thanks.
|
|
|
|
|
Just in your setup project set the Search for installed versions to true .
|
|
|
|
|
Hi,
I would like to know if there is any way to perform a deserialization from a binary file that has not been serialized first.
Actually, I've got a binary file produced by a VC++ app using some structure dumping. I have all the code and the structure of the file and I now need to get it in a C# .NET app.
I naively wanted to recreate the structure dumped in the file as struct/classes in c# and read the data into them.
Thanks in advance for the help
|
|
|
|
|
You can always create your own C# class that has the same structure as the C++ class. You can then use a Stream to read data from the binary file byte by byte and fill in your class variables.
Regards
Senthil
_____________________________
My Blog | My Articles | WinMacro
|
|
|
|
|
Thanks for your reply
Actually that's exactly what I wanted to avoid, the byte to byte reading of my file.
There should be an more elegant and maintenable way to read structured data from my file.
|
|
|
|
|
where can i find out the .Net file format?
as in where's the IL asm code, etc.
|
|
|
|
|
If you have Visual Studio .NET 2003, see under Program Files\Microsoft Visual Studio .NET 2003\SDK\v1.1\Tool Developers Guide.
Stability. What an interesting concept. -- Chris Maunder
|
|
|
|