|
I need to draw a rectangle to the screen and then be able to remove it. I would like to have it filled with white but FillReversibleRectangle doesn't seem to allow it (at least not over the standard gray form background). Is there a way around this problem?
Thanks
|
|
|
|
|
You cannot control the color of the rectangle that is drawn, because it uses a method of drawing called XOR (output = src ^ dest [for each bit]).
This does two things: It ensures that whatever is drawn can be undrawn by drawing it again, and it is generally a very efficient way of ensuring that the rectangle is visible on the background.
The effect is that the rectangle drawn is an inverse of what was there before.
James
"And we are all men; apart from the females." - Colin Davies
|
|
|
|
|
Hey James,
Thanks, I was hoping for a different answer. So I guess that means I can't use FillReversibleRectangle.
-------------
|
|
|
|
|
1. I have a string containing a number. Any way to convert that number to an intregfer value (without manually converzing to a char array and checking letters, thus code an own function for that)
2. If i receive a message with UdpClient how to look up the ip?
|
|
|
|
|
1)
string x = "6";
int y;
y = Convert.ToInt32(x);
|
|
|
|
|
can any bode tell if user generate or produce any message on a button how to get information about that message?
r00d0034@yahoo.com
|
|
|
|
|
Do you mean you would like to know when a button has been clicked?
If that's the case then you need to create an event handler. If you are using VS.NET simply double click the button that you've placed on the form in the form designer and enter your code into the method that the IDE creates for you.
If you're not using VS.NET then you might want to look at this article in MSDN (as weel as the "See Also" articles)
http://msdn.microsoft.com/library/en-us/cpguide/html/cpconeventsdelegates.asp
(You might want to look at that article even if you are using VS.NET)
|
|
|
|
|
Does anyone know what messages are sent to a RichTextBox when a new line is created? - i.e. when the enter and delete buttons are pressed?
Email: theeclypse@hotmail.com URL: http://www.onyeyiri.co.uk "All programmers are playwrights and all computers are lousy actors."
|
|
|
|
|
Hi
Cant you just get that on the keypress event?
Look at Spy++, oops forgot you dont have VS
Does anyone know of a freeware version of Spy++?
MYrc : A .NET IRC client with C# Plugin Capabilities. See
http://sourceforge.net/projects/myrc for more info.
|
|
|
|
|
leppie wrote:
Does anyone know of a freeware version of Spy++?
Is Spy++ not free?
Rickard Andersson@Suza Computing
C# and C++ programmer from SWEDEN!
UIN: 50302279
E-Mail: nikado@pc.nu
Speciality: I love C#, ASP.NET and C++!
|
|
|
|
|
I assume so
In the about box it has text about no unauthorised reproduction or distribution.
MYrc : A .NET IRC client with C# Plugin Capabilities. See
http://sourceforge.net/projects/myrc for more info.
|
|
|
|
|
|
|
|
Had a look at it, quite nice esp the way u can just apply messages on the fly, but ir doesnt seem to show incoming messages like spy++, will look some more for something that can do that.
MYrc : A .NET IRC client with C# Plugin Capabilities. See
http://sourceforge.net/projects/myrc for more info.
|
|
|
|
|
hey hey, i need to catch another event - when the person moves the scrollbar, and i dont mean pressing the buttons.
Email: theeclypse@hotmail.com URL: http://www.onyeyiri.co.uk "All programmers are playwrights and all computers are lousy actors."
|
|
|
|
|
I'm Zafer
I have started to learn C# Lrogramming Language. But I have some problems about this language.
Firstly,
I wrote some programs.But I don't know, install application. For instance, when i write program in VBasic,
i convert it to setup program. But now I did not solve this problem.How can I solve this problem? Because
I need to install another computers.
Secondly,
In VBasic, I am using movenext,movefirst, movelast (etc..) commands for reading DataBase file.
If you know, ADO.NET has these commands, or similer commands?
Thirdly,
Some other my programs, I need to use Barcod reader, Printer and plotter. Furthermore,
I need to use parallel or serial ports. Other wise how can I take information from wireless cameras.
How can I use these devices in C#.Net.
If you help me about thise problems, I will so happy.
If you can't help me, who can help me please say me.
Thank you so much.
|
|
|
|
|
I am going to answer these questions, however out of order.
ZAFER BALLI wrote:
In VBasic, I am using movenext,movefirst, movelast (etc..) commands for reading DataBase file. If you know, ADO.NET has these commands, or similer commands?
ADO.NET replaced the Recordset object for several others. This allowed the new objects of ADO.NET to be more efficient and powerful. If you want to loop through a "recordset", you might want to look at a datareader.
ZAFER BALLI wrote:
I wrote some programs.But I don't know, install application. For instance, when i write program in VBasic,
i convert it to setup program. But now I did not solve this problem.How can I solve this problem? Because
I need to install another computers.
In VB6 you would use the PDW to create install packages. When you load into VS.NET next time, take a look and there should be an option to create an installer package. I haven't used this yet, however I have seen the results which look nice.
ZAFER BALLI wrote:
Some other my programs, I need to use Barcod reader, Printer and plotter. Furthermore,
I need to use parallel or serial ports. Other wise how can I take information from wireless cameras.
How can I use these devices in C#.Net.
I am assuming that you had some type of interface to access this before .NET. You may need to look at COM Interop to gain access.
HTH
Nick Parker
|
|
|
|
|
I'm Zafer
I have started to learn C# Lrogramming Language. But I have some problems about this language.
Firstly,
I wrote some programs.But I don't know, install application. For instance, when i write program in VBasic,
i convert it to setup program. But now I did not solve this problem.How can I solve this problem? Because
I need to install another computers.
Secondly,
In VBasic, I am using movenext,movefirst, movelast (etc..) commands for reading DataBase file.
If you know, ADO.NET has these commands, or similer commands?
Thirdly,
Some other my programs, I need to use Barcod reader, Printer and plotter. Furthermore,
I need to use parallel or serial ports. Other wise how can I take information from wireless cameras.
How can I use these devices in C#.Net.
If you help me about thise problems, I will so happy.
If you can't help me, who can help me please say me.
Thank you so much.
|
|
|
|
|
Hi everyone,
I need to write a shell extension in C#. Particularly, anytime someone right clicks on a WORD file, there should be an entry in the context menu and it should do something. I really do not have much idea about how to do this? Can someone out there help me? Links to some source code/explanations would be greatly appreciated
Thanks,
Pankaj
Without struggle, there is no progress
|
|
|
|
|
Hello Friends,
Is anybody having any idea, how to associate progress bar with status bar and how to use it exactly.
Basically i'm having Save Button Click method. During the process of saving data, I want to show the progress in progress bar, which should gradually increase and should reach to maximum after completion of data saving. This progress bar should be on status bar.
Thanks in advance.
Pranoti
Pranoti
|
|
|
|
|
check out:
http://www.sellsbrothers.com/tools/genghis/[^]
This is a library with a ton of interesting things for .NET. Look at the ContainerStatusBar class; it allows any form control to be dragged and dropped on to it and then associated with a ContainerStatusPanel . It is pretty cool (IMHO).
Hope it helps,
Nathan
---------------------------
Hmmm... what's a signature?
|
|
|
|
|
Hello
First, does anybody know a more useful component than MSChart ? Because it seems to be very unsafe and hard to use.
Otherwise, I've two big problems with this properties :
grpGraphique.Plot.SeriesCollection[Col].Pen.VtColor.Set(Color.Maroon.R,Color.Maroon.G,Color.Maroon.B);
Sometimes, when I set this property VtColor, it handles the exception :
"System.Runtime.InteropServices.COMException (0x800A045F): Object is uninitialized or invalid.
at MSChart20Lib.VtColorClass.Set(Int16 Red, Int16 Green, Int16 Blue)"
It seems very unsafe and unsteady
This is the problem with VtColor
The other is with :
grpGraphique.Plot.SeriesCollection[Col].DataPoints :
this returns a collection of Datapoints, that can be counted, that can be accessed in their totallity by DataPoints[-1], but I can't access any single DataPoint, even if I use the method Datapoint.get__Item(short Index) ...
Does anybody already saw these problems ? It would be so helpful...
Thanks
Troz
|
|
|
|
|
I am looking for an example using a datagrid, and using an array of strings to populate the grid. I have a need to present configuration based information that gets transformed before being stored to a database. This transformation means that I need to manipulate and even duplicate some of the data I need to display. I would be very thankful for any help.
|
|
|
|
|
I know there are examples on ASP.NET [^] under the tutorials link.
Soliant | email
"The whole of science is nothing more than a refinement of everyday thinking." -Albert E.
|
|
|
|