|
Hi Guy
why u r try get from the graphics?
try like this
Bitmap s = Bitmap.FromResource(listview.Handle);
i hope this is help to u.
|
|
|
|
|
Does that really work ?
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
|
hello
i want to get forms list in the solution of another solution.
i found that maybe i can do it by Reflection namespace but i dont know how!
plz help me.
thanks.
|
|
|
|
|
Yes, if you can do it at all, it will be via reflection. But, I doubt you can iterate over the classes of another running process ( is that what you're saying ). Can you even be sure it's a .NET project ?
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
hello. i have 2 .net project. i want to access form's name of first poroject in second project . i want to definite authentication and authorize of users to that forms.
if you have beter idea, plz help me.
|
|
|
|
|
laleh.rajabi,
All you need to do is add a reference to the dll in your project. Right click on References -> Add Reference-> your dll
Regards,
Gareth.
|
|
|
|
|
Solution or assemblies?
If what you mean is assemblies(dlls & exe), you can get the list of classes via reflection, then look at the base class name for forms. If the form's base class is an inherited form, look for the inherited form class name.
|
|
|
|
|
By world time i mean a time of a server or anything, NOT THE COMPUTER'S TIME, it could be the Greenwich time or anything but i want it to be the same in any computer i log in.
thanks.
|
|
|
|
|
There are webservices around that do this. You're going to end up with the time on SOME computer, somewhere. But, one would assume it was going to be correct.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
|
How does that help ? He wants to sychronise time between PCs, DateTime.Now is not going to do that, no matter what time zone he converts it to.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Mr Christian Graus
OK Cool
don't worry, yahoo offer a url for time sync.
we can get time in long , after we want to add that with our datetime object.
thanks for ur help.
|
|
|
|
|
See this[^] article.
/ravi
|
|
|
|
|
I have an autocomplete textbox. When i press a certain key , it lists out several items.
But i have to scroll down the list to see all the items.What i want to know is that how can we increase the height of the listing?
Any idea guys?
|
|
|
|
|
try combobox
Becoming Programmer...
|
|
|
|
|
Hello every body, I want to do a library wich has to conect throw rs232 port, but I need to made it conection with code, because as I said, is a library, and i can´t use any component.I know is posible using delegate methods and events, but I have no idea of how i can do it. If somebody can help me with some code I will be very gratefull.
|
|
|
|
|
Delegate methods really have little to do with RS232, do you know what delegates are ?
I googled C# RS232 and got tons of information, including articles here on CP. VS2005 has a serial port class as far as I know. Perhaps it uses delegates to hook up to events on the port.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Christian Graus wrote: VS2005 has a serial port class as far as I know.
Yes it's there. just drag-and-drop serialPort from toolbox to a form and start playing with it...
|
|
|
|
|
hi there,
i m trying to add a CMS in listview component class,
steps i did:
1. add a class and inherit listview
2. add CMS and add a menu item in it
3. add this line in InitializeComponent()
this.ContextMenuStrip = contextMenuStrip1;
4. add this listview in form
5. run but nothing appear when right clicked on listview
anyone know how to solve it?
thanks
Becoming Programmer...
|
|
|
|
|
xmen,
Does contextMenuStrip1 have any items?
Regards,
Gareth.
|
|
|
|
|
yup!!!
Becoming Programmer...
|
|
|
|
|
xmen,
You could try listening to the ContextMenuStrip.Opening event and then you'll find out if its actually being opened.
Regards,
Gareth.
|
|
|
|
|
nothing happend
Becoming Programmer...
|
|
|
|
|
i have done it
Becoming Programmer...
|
|
|
|