|
Please clearify. Are you trying to create a two state image button?
If so... you just need to write a simple custom control that override OnPaint and paint accordingly.
Alex Korchemniy
|
|
|
|
|
I would like to ask how can I print the windows form by C#? the print screen method doesnt work as the form to be printed may be masked by other applications
|
|
|
|
|
after u print screen u go to paint and paste......from there u can delete the sides by dragging it to make it smaller
|
|
|
|
|
Perhaps, this[^] little tidbit on MSDN may help...
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
The WM_PRINT message is sent to a window to request that it draw itself in the
specified device context.
Alex Korchemniy
|
|
|
|
|
does anybody knows how to get XP key using c#?
|
|
|
|
|
It may be in the registry. Why do you want it ?
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Try using regmon that should revel where the key is hiding ?Then use csharp to access the registry and get the key.
What are u going to do next seems useless to me to get the product key ???Anyway u have ur reason probably
|
|
|
|
|
Trance Junkie wrote:
What are u going to do next seems useless to me to get the product key ???
Seems useless to me too, the guy who asked this question didn't get an email because you repsonded to me instead of him.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
I have about 200 workstations and I need to reenforce the license policy so I need a simple utility that I can create to verify uniqueness of the Key.
|
|
|
|
|
Do you not have a pile of 200 CD's then ?
According to google, it's not stored as clear text in the registry.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
When you right-click on a file, you get the version tab properties. How to include this information when you comple a C# application?
thanX
|
|
|
|
|
You change it in the AssemblyInfo.cs file automatically generated when you create a new project. All those assembly attributes.
-- LuisR
Luis Alonso Ramos
Intelectix - Chihuahua, Mexico
Not much here: My CP Blog!
|
|
|
|
|
Hi All
Export to excel data from ultrawebgrid rows, Each data row contain one worksheet in excel sheet like as
row1 data contain sheet1
row2 data contain sheet2
row3 data contain sheet3
this opertaion getting at a time on pressing one button.
we have pressing one button ultrawebgrid rows data to export excel sheet, In excel sheet each worksheet contain one grid row deatails,
for example grid have 10 rows ,pressing any button,
In excel sheet 10 worksheets will occure and each worksheet contain 1 row data of grid pls send me a solution for this example
sunny
|
|
|
|
|
Suppose I have two custom classes, class A and class B. What I want to do is access the propeties and methods of class B from Class A using index notation e.g. A[index].B_property1, A[index].B_method1, etc.
How do I do this in C#?
Thanks!
|
|
|
|
|
Do you mean to access this form another class other than a and b,
eg:
Class c
{
A[ind].//Method from b ? .
}
|
|
|
|
|
class A needs to contain an array of class B instances, then you need to write your own indexing code. Here[^] is an example.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
I've asked this once before, and got no suggestions that worked. Is there a way to get the SMTP server details from either a COM object or the registry when the user has Outlook ? What about Outlook Express ?
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
I just got done writing an ATL/COM addin for Word and I remember something in the registry that might help. See HKCU\Software\Microsoft\Office\Outlook ... I have a key: OMI Account Manager and under that I have details on each account including the SMTP info.
If you don't see this info there is probably a way of finding it with COM... I can try help.
Alex Korchemniy
|
|
|
|
|
Thanks for your help - that key exists, but it is empty, although I've set up an SMTP account. I've searched the entire registry, and the server is not there. Any info you can give me on the COM objects would be appreciated.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Hello. I have a windows based application in C#, and i am using a reference to Word 2003. My problem is launching time as it takes way too much to start the application. Used the debug to see why and what i have noticed is that the whole problem lies with loading Word interop dll file:microsoft.office.interop.word.dll It takes somewhere between 25 and 30 seconds to get this dll loaded from GAC. Any one has any idea why? How can i speed this up?
Thanks
|
|
|
|
|
Use C++, you won't have this problem.
|
|
|
|
|
Does it take a long time to start _your_ app or to launch Word via automation?
Alex Korchemniy
|
|
|
|
|
Can someone please give me some information on sending data through a USB port. What I am trying to do is use the USB port (I get how to do it on a COM port). I am using VC# 2005. I have searched the internet repeatedly but cannot find anything.
Overall, what I am trying to do is just activate a LED with a transistor via a progam made in C# by hooking up the the BASE pin of the transistor to the DATA+ pin on the USB cable and then powering the circuit with the cable. Sorry if this is a horrible description... Then, theoretically, send data through the data line to flip the transistor on. (btw: this is just an experiment)
Thanks!
|
|
|
|
|
For something low-level like this: C++ is the perfect and most comfortable language to use
Search for DeviceIoControl
Alex Korchemniy
|
|
|
|