Jump to content
Xtreme .Net Talk

Ralphzehunter

Members
  • Posts

    12
  • Joined

  • Last visited

Ralphzehunter's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. That's great! If there was a rating system here, I would give both of you a ++!
  2. Ok, thanks! I will try that out. Thanks for replying so quickly, also!
  3. This is probably a really simple question, but what do "/r" and "/n" togethor ("/r/n") signify in C#? If you know what they mean, do you know what the equivalent of that string is in vb.net? I am actually a vb.net programmer, and trying to learn how to use sockets. As there aren't exactly many tutorials in vb.net, I decided to look up tutorials in C#. I can translate it all, except for this one piece. So could you help me?
  4. Well, I figured out most of it, but one thing I can't figure out is how to do the preview box of the screensaver. I read somewhere that you have to make the preview form a child of the handle you get from the second argument you get when your program gets called from the display. I tried lots of stuff, but I can't figure out how to do this. How do you that?
  5. I got it! Ok, I got how to do it. I declared a new screen, then set it to Screen::PrimaryScreen::get(). Then I could get the bounds of my screen I declared, which was a copy of the PrimaryScreen.
  6. How do I get the resolution? I tried to do Screen::PrimaryScreen::Bounds, but there is no such thing there named bounds. BTW, I'm using the beta express edition, so that might have something to do with it.
  7. Hope this helps. Hmm, there is probably a better way to do this, because I made this off the top of my head, but : vbcode: Dim this As Integer = 1010101777 Dim mystring As String = System.Convert.ToString(this) For x As Integer = mystring.Length - 3 To 1 Step -3 mystring = mystring.Insert(x, ",") Next c++ code: int this1 = 556654; System::String ^ mystring; mystring = System::Convert::ToString(this1); for(int x = mystring->Length-3; x > 0; x -= 3) { mystring = mystring->Insert(x,","); } This will do the job for you. I was surprised it actually works, but it does. Edit: Oh yeah, you probably know this but the "this" and "this1" are just used as an example, you can use any numbers you want. Sorry I don't know how to do for loops in C# if that's what your using, but you should get the idea. There I go again, making functions for thing that already exist(tostring("N")).
  8. Sorry I didn't explain myself Sorry, I just meant how to handle events, for example a button's click event, I realized after looking that Connected for a socket is not an event. I found that handling events is done like this: this->button1->Click += gcnew System::EventHandler(this, &Form1::button1_Click); Sorry about confusing you. Is that the proper way to do it?
  9. Does anyone know any good resources on how to make a screensaver in C++.net?
  10. Connected isn't an event....is it. So the only way to check if a socket is connected is by putting a timer on the form, and checking to see if Connected == true? At least by this mistake I found out how to handle events. (Thanks Windows Form Designer!)
  11. This is probably a really stupid question, but how can I handle events for an object I create in the code? For example: I have a Client, and Server, and using sockets, I can get them to connect, but how can I handle the Connected event? btw I'm a real newbie at this....I got C++.NET yesterday lol
×
×
  • Create New...