|
check out www.mathschallenge.net
register free for "project euler" lots of good programming problems.
Best regards
//
Daniel Persson
|
|
|
|
|
|
hello
Could you please tell me how to delete entries in HKLM of windows registry(regedit) in c#.NET
Yogesh_T
|
|
|
|
|
Microsoft.Win32.RegistryKey.DeleteSubKey(String)
|
|
|
|
|
Hi!!
During my trainship I have to write a code that allows you to scroll the image using the arrow keys and, unfortunately, it's the first time I'm working with C#.net. Moreover, there should also be a button-quartett-structure, that is, 4 buttons each scrolling the image into different directions (up, down, right, left). To be more precise:
private void btnUp_Click(object sender, System.EventArgs e)
{
moveUp();
}
private void moveUp()
{
}
I'm familiar with C-language, but I have little more than no experience with object-oriented languages. Has anyone any idea which could be helpful to me??
|
|
|
|
|
An easy way would be to add a PictureBox (pictureBox2) to your PictureBox (pictureBox1). pictureBox2 will display the actual image. In the moveUp() handler, set you can change the location of pictureBox2:
private void moveUp()
{
Point currentLocation = pictureBox2.Location;
pictureBox2.Location = new Point(currentLocation.X, currentLocation.Y - 1);
}
Tech, life, family, faith: Give me a visit.
I'm currently blogging about: Goof around music jam with my brothers (with video)
The apostle Paul, modernly speaking: Epistles of Paul
Judah Himango
|
|
|
|
|
I did it in a very similar way as you suggested, and it really worked!!
Thanks a lot!!!
|
|
|
|
|
hello
i want bind only one row with the textboox is it possible like i am doing that when user selects a data from the data grid all its columns values displayed on the realted textboxes plz help me and tell me the how i can so this.
" i have find the reference of the current row clicked by the user and store it into a datarow object but what should i do further to diplay its values on the textboxes"
reply as soon as possible
|
|
|
|
|
u can try
textbox1.text = datarow["column1 name"].tostring();
textbox2.text = datarow["column2 name"].tostring();
textbox3.text = datarow["column3 name"].tostring();
.
.
.
.
.
rahul
|
|
|
|
|
Hi,i have a DateTimePicker DateTimePicker1 in my Form,when user enters a future date a message "Date cannot be in the future" displays
in my DateTimePicker ValueChanged event i have this code
TimeSpan ts = (DateTime)DateTimePicker1.Value - DateTime.Now;<br />
if (ts.Milliseconds > 0)<br />
{<br />
MessageBox.Show"Date cannot be in the future".);<br />
DateTimePicker1.Value = DateTime.Now;<br />
return;<br />
}
The message Displays twice,which makes me think the event fires twice.
how can i make it fire just once?
or is there something i am mssing?
thanks
regards paula
|
|
|
|
|
Hello
I can think of another way to do the job. Why don't you change the MaxDate property? something like:
DateTimePicker1.MaxDate = DateTime.Now;
It'll work even without messages -sometimes they are annoying to beginner users-
If you insist on showing a MessageBox, just ignore the first time , maybe:
bool SecondTime = false;<br />
void MyEventHandler(params)<br />
{<br />
TimeSpan ts = (DateTime)DateTimePicker1.Value - DateTime.Now;<br />
if (ts.Milliseconds > 0 && SecondTime)<br />
{<br />
MessageBox.Show"Date cannot be in the future".);<br />
DateTimePicker1.Value = DateTime.Now;<br />
SecondTime = false;<br />
return;<br />
}<br />
SecondTime = true;<br />
}
|
|
|
|
|
Paula,
The reason it is firing twice is because you are changing it twice; once when you select on the form and another with your line of code just before your return where you change it back to the current date.
HTH
|
|
|
|
|
The one time I experienced something like that, I found that I had done a subscription to the event twice for that event handler. So do a search in your code for += and make sure you haven't done that.
|
|
|
|
|
Do you know that how to implement new tricks in the registry through coding
if u have solution then reply as soon as possible
PRADEEP
|
|
|
|
|
Uhhhh... "new tricks"??? What does that mean?
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
Hi
means Tips & tricks which r available on the net. they give the menual implementetion but i want to implement them with the coding
(NOW ITS OK???)
-- modified at 10:55 Monday 19th June, 2006
|
|
|
|
|
"Tips & Tricks" still means anything. What are talking about??????? Just changing values in the registry?? Coding these depends on exactly what needs to be changed and what the possible values or range of values are. Most of what you write will be user interface code. Changing the values in the registry is easy, example of which you can find here[^].
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
Don't reply to a post, then delete it.
If you know about using the Registry class, then changing a value in the registry should be very simple for you. I havev no idea what you're having a problem with, and there's no way on earth you're going to get me to write something for you. That's not what CP is here for.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
Hello everybody
I'm using TAPI3 to send and receive data between computers, but I've got two problems.
1- I intialize the modem by TAPI, but I need to know on which port the modem is? That's which port to write the data to
2- I can send the data by writing it to the port, but how can I know when I've received data?? I mean what event will be fired?
I'll really appreciate an opinion here. Hope you have some bright ideas folks!
|
|
|
|
|
Serial Ports are stored in this registry key: HKLM\HARDWARE\DEVICEMAP\SERIALCOMM, since I don't have a modem connect I can't investigate further but maybe there's some string value or something which indicates if a modem is connected.
Formula 1 - Short for "F1 Racing" - named after the standard "help" key in Windows, it's a sport where participants desperately search through software help files trying to find actual documentation. It's tedious and somewhat cruel, most matches ending in a draw as no participant is able to find anything helpful. - Shog9
|
|
|
|
|
Thank you for your reply.
I found the Key you mentioned, but I'm quite concerned about variations in Windows versions -eg Home edition, NT, ME, the new Vista??-, besides -as you said- it doesn't mention if that modem is connected or not?
Thanks again for caring. I really appreciate it.
|
|
|
|
|
Nader Elshehabi wrote: I'm quite concerned about variations in Windows versions -eg Home edition, NT, ME, the new Vista??
I hasn't changed through from 98SE to XP, I don't know about Vista, wern't they supposed to do away with the registry all together ?
Nader Elshehabi wrote: it doesn't mention if that modem is connected or not?
I don't have a modem to try it on since all my stuff is done through the ethernet, but after Thursday I can investigate (exams will be over).
Formula 1 - Short for "F1 Racing" - named after the standard "help" key in Windows, it's a sport where participants desperately search through software help files trying to find actual documentation. It's tedious and somewhat cruel, most matches ending in a draw as no participant is able to find anything helpful. - Shog9
|
|
|
|
|
Thank you Ed. I really appreciate your efforts. I also hope you do well in your exams.;)
By the way, when I said "it doesn't mention if that modem is connected or not?" I meant that, if there are more than a modem on the computer -such as the case of some telephony centers or switches-, we won't know which modem is which , and which modem we are using now in our program, see?
Anyway, I'm grateful for your concern.
|
|
|
|
|
Take a look at this[^]article, there's a registry key in there that might be of some help to you.
Formula 1 - Short for "F1 Racing" - named after the standard "help" key in Windows, it's a sport where participants desperately search through software help files trying to find actual documentation. It's tedious and somewhat cruel, most matches ending in a draw as no participant is able to find anything helpful. - Shog9
|
|
|
|
|
Thanks again ED. You are really a good guy. I owe you one;)
|
|
|
|