|
Hello,
I want to make an easy thing:
if(DOWNKEY is pressed){ do something}
or other keys..
Whats the command to use? How?
Thanks.
|
|
|
|
|
You want the keydown event, I expect. Before that, you should buy a basic winforms book, and perhaps before that a basic C# book, and work through it, so you have a foundation of basic knowledge to build on. For every basic question we answer, there's probably several you never ask. These forums are no substitute for some basic research and book learning.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
Well I know the basics, like Arrays, Lists, Stacks, Queue, classes, for while if switch oop windowsforms...
But it looks like I didnt learn the KeyDown even.
I will google it now and see if there is a tut for that.
Thanks for ur answer tho.
EDIT: Found how to do it, pretty easy. Thanks.
|
|
|
|
|
p3rson wrote: Well I know the basics, like Arrays, Lists, Stacks, Queue, classes, for while if switch oop windowsforms...
My point is more that if you're learning them bit by bit with google, you're not going through it in an ordered way. Do you know what object is ? Do you know what methods all objects have ? Do you know what boxing is ? Do you know the differences between classes and structs ?
If you type in the name of a class instance and hit the ., you will get a list of all the methods and events on that object. Events have a lightning bolt icon. That should be the first thing you do if you want to know how to use an object to do something. All objects will have events for things like keyboard, mouse, state changes, etc.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
Hello Everyone,
I am currently working on a senior project for school and in the process of doing this project I have been designated the person to design the GUI for our project. Basically the reason I am posting here is to ask you of any resources or knowledge I may need for the following thing I am trying to do. I was wondering if one can mount a SD card through serial communication? I am trying to communicate to a micro controller that has the SD card connected to it. Any assistance would be greatly appreciated. Thanks.
tkd
|
|
|
|
|
Hi,
I've never seen or read anything remotely resembling an SD card accessed through a serial port.
Is it the functionality you are after, or is it just an idea for some project?
If your PC doesn't come with a card reader, you could buy one and access the SD files right away, no development involved. Here is one[^] solution, there must be millions like it. Most if not all of them would use USB nowadays.
For a once of, you might even use a digital camera, they often work with an SD card and also allow for USB uploads.
Luc Pattyn
Have a look at my entry for the lean-and-mean competition; please provide comments, feedback, discussion, and don’t forget to vote for it! Thank you.
Local announcement (Antwerp region): Lange Wapper? Neen!
|
|
|
|
|
USB is serial, btw
|
|
|
|
|
Then all computer interfaces are serial, including Ethernet, DVI, and the parallel port.
Luc Pattyn
Have a look at my entry for the lean-and-mean competition; please provide comments, feedback, discussion, and don’t forget to vote for it! Thank you.
Local announcement (Antwerp region): Lange Wapper? Neen!
|
|
|
|
|
But is has serial right there in it's name... so it must be so!
(Dude, I'm so screwin' with ya, lol, see my reply to the op)
|
|
|
|
|
<removed useless="" babble=""> I suggest using a usb controller, TI will send you a student sample for free, to go with your mcu, but if you're tinkering with an mcu, you probably know that
Though, if you -really- want to, I would recommend looking at http://msdn.microsoft.com/en-us/library/c8zc5kah(VS.80).aspx[^] The MSDN's Serial Communication Application Sample, which is likely your best resource
|
|
|
|
|
i have a multiline textbox which consists of many different lines of text. i want to select one line of the text with a click of the mouse then to delete it with a button. Afterwhich, the textbox will refresh and align itself properly (For example, all the remaining text move up the empty deleted line. Can anyone advise me on how to go about it or have a sample code which i could follow as i have no idea on how to do this. I'm new to C#.
|
|
|
|
|
Take a look at some of the examples here[^] on Code Project. You should also read the documentation on MSDN. Whilst not specifically written as a teaching aid, many of the descriptions include good sample code.
|
|
|
|
|
I'm not sure this is the right post to ask this, but...
I'm writting a web service (C#) and already have a coded "server.asmx" with several methods. Some include inserting, deleting and updating MS-SQL tables. Now I have a grid view (webform.aspx) and I want to link it to those methods. I have already configured the data source to access server, the problem comes when assigning the methods to any of SELECT, UPDATE, INSERT, or DELETE.
The question is: after selecting the method, VS prompts for a source for the arguments. Some of the arguments are contants (I'll need these for SELECT), the others I'd like to get from the form's table. Anybody knows how to do this?
Best regards
Fratelli
|
|
|
|
|
I also need to know how to populate the DataGrid for the first time =(
regards
Fratelli
|
|
|
|
|
Hi, forum.
I have several shapes (circles, triangles e.t.c) on the form in my C# project. I'd like to connect these shapes by something like progress bar control to show some "data flow" from shape 1 to shape 2 in dead cycle. Is there any solution to draw polyline- or curved-progress bar, not only straight one? Or some other control (not progress bar) to display "data flow" between shapes.
MS Visual Studio 2008, WinForm project.
Best regards, Vladimir.
|
|
|
|
|
Not sure if there is a control like this. If there is none, I would drawing images\curves in the paint event to show data transfer.
It's not necessary to be so stupid, either, but people manage it. - Christian Graus, 2009 AD
modified on Saturday, September 19, 2009 1:48 PM
|
|
|
|
|
I do not know of any non-straight progress bar control.
However there is nothing to stop you drawing a curve between the items with an arrow head to indicate the direction of flow (EndCaps property, I believe). If you really want to show that flow is happening, you could convert the curve to a GraphicsPath . There are methods in that class to add points and you could then draw a '>' shape at each of those points, erasing the previous one first of course, using rotation/transformation to match it to the angle of the curve at that point.
Just a thought.
Henry Minute
Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”
|
|
|
|
|
Thanks a lot, Henry!
That's the way I will dig.
|
|
|
|
|
Hi folks, Please provide an example showing how to copy data on a daily basis into mssql server from crm using webservices(a scenario which uses only c#.net and another scenario that uses only SSIS) both scenarios would also work. If any specific example related to Eloqua API/Salesforce.com crm would be helpful if not then any crm's example would work. Thank you
|
|
|
|
|
If you want something like this written for you, you should try a site like Rentacoder.com, or even Code Project's own job board. Be careful however, some people bid on those sites, for work they cannot do, and then post their jobs here and hope we will do them for them. I pity the people stupid enough to fall for such a scam, but it happens.
If you want to do it yourself, then you should do some research, and ask *specific* questions, with code samples, to show that you've tried to do sometime more than ask us to work for you for free.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
Hi!
I am new to c# mobile application programming subject. I want to implement simple client(on PDA)/server(on Laptop) application that converts lowercase letters that are sent by the client to uppercase letters and sends back to the client by the server.
socketForServer = new TcpClient();
socketForServer.Connect("ip address of laptop",port number);
textBox1.Text = "connected ";
socketForServer.SendTimeout = 50000;
networkStream = socketForServer.GetStream();
streamReader = new StreamReader(networkStream);
streamWriter = new StreamWriter(networkStream);
according to the given code the network stream stays null so I can not read or write anything to/from the server. could you help me how can I solve this problem ? or could you recommend me better solutions ?
thanks a lot.
|
|
|
|
|
I don't know how take ownership in registry... from other owner(TrustedInstaller) to Administrators.
Not just for in C#, any other solution. For example, regini.exe or something commandline scriptor.
(but not by manually clicking in regedit.exe..)
If you have any idea, please help me out.
|
|
|
|
|
Am still having the same challenge. Any help
|
|
|
|
|
Hi,
I want to change the back color of a row when i click on it (untill here i succeed),
but when i re-order by some row (after i've changed the row's color)
i want the same row will show the color (by value and not by row's number).
10x alot...
|
|
|
|
|
How are you setting the back color? I guess through indices.
Try using CurrentRow property instead to set the back color.
It's not necessary to be so stupid, either, but people manage it. - Christian Graus, 2009 AD
|
|
|
|
|