a question and is it possible

Discussion in 'Programming General' started by kharg0, Apr 2, 2007.

a question and is it possible
  1. Unread #1 - Apr 2, 2007 at 7:51 PM
  2. kharg0
    Joined:
    Feb 25, 2007
    Posts:
    131
    Referrals:
    0
    Sythe Gold:
    0

    kharg0 Active Member

    a question and is it possible

    is it possible to make like an msn with visual basic and how do you make it so when you press a button the button will bring up a form called options and in options there's a textbox1 witch i want to make it so when you press that button it opens yada yada yada..you type a place like E:\My Documents\My Pictures\start.bmp then it makes panel1 change its backround to that image???


    thx :)

    probably an easier question i knew how to do this with a listbox but not with a multiline textbox i want to press a button and that button will copy textbox1.text to textbox2

    thx :)
     
  3. Unread #2 - Apr 2, 2007 at 9:38 PM
  4. dodge
    Joined:
    Mar 26, 2007
    Posts:
    125
    Referrals:
    1
    Sythe Gold:
    5

    dodge Active Member
    Banned

    a question and is it possible

    the first question, i guess what you are trying to do is setup a bacground image to the form?

    Me.BackgroundImage = Image.FromFile("E:\My Documents\My Pictures\start.bmp")

    that will set the back ground image, if you are not in the same form then instead of "me" use the form name

    the second one, if you have a multiline text box just copy the text, the lines will be separated by a vbcrlf
     
  5. Unread #3 - Apr 3, 2007 at 12:50 AM
  6. speljohan
    Joined:
    Apr 24, 2005
    Posts:
    1,450
    Referrals:
    3
    Sythe Gold:
    0

    speljohan Guru
    Visual Basic Programmers

    a question and is it possible

    and if you didn't know, vbCrLf = vbNewLine = A new line.
     
  7. Unread #4 - Apr 3, 2007 at 3:13 AM
  8. Covey
    Joined:
    Sep 9, 2005
    Posts:
    4,510
    Referrals:
    9
    Sythe Gold:
    9
    Discord Unique ID:
    807246764155338833
    Discord Username:
    Covey#1816

    Covey Creator of EliteSwitch
    Retired Sectional Moderator Visual Basic Programmers

    a question and is it possible

    i thought vbcrlf = clear line feed
    which is slightly different to vbnewline but w/e
     
  9. Unread #5 - Apr 3, 2007 at 3:51 AM
  10. Swan
    Joined:
    Jan 23, 2007
    Posts:
    4,957
    Referrals:
    0
    Sythe Gold:
    0
    Sythe's 10th Anniversary Member of the Month Winner

    Swan When They Cry...
    Retired Global Moderator

    a question and is it possible

    Yer. vbCrlf stands for Visual Basic Carriage Return Line-Feed. vbNewLine is just a new line ... however both do their jobs.

    The above questions have been answered I presume?
     
  11. Unread #6 - Apr 3, 2007 at 9:35 AM
  12. speljohan
    Joined:
    Apr 24, 2005
    Posts:
    1,450
    Referrals:
    3
    Sythe Gold:
    0

    speljohan Guru
    Visual Basic Programmers

    a question and is it possible

    also, making a MSN Client would require learning the MSN Protocol used by the server.
     
  13. Unread #7 - Apr 3, 2007 at 6:02 PM
  14. X Zero
    Joined:
    Jan 21, 2007
    Posts:
    577
    Referrals:
    0
    Sythe Gold:
    0

    X Zero Forum Addict

    a question and is it possible

    wouldn't it much like an irc chat?
     
  15. Unread #8 - Apr 3, 2007 at 6:07 PM
  16. dodge
    Joined:
    Mar 26, 2007
    Posts:
    125
    Referrals:
    1
    Sythe Gold:
    5

    dodge Active Member
    Banned

    a question and is it possible

    Nop, MSN now uses a different protocol, I remember doing some stuff like that a few years ago and it was similar to IRC but then MS changed all of that

    here are some samples on MSN

    if you go to like http://www.planetsourcecode.com and search for MSN you will find some nice code there
     
  17. Unread #9 - Apr 3, 2007 at 8:53 PM
  18. kharg0
    Joined:
    Feb 25, 2007
    Posts:
    131
    Referrals:
    0
    Sythe Gold:
    0

    kharg0 Active Member

    a question and is it possible

    ok thanks every one but dodge you said for the first question ..... i want to type like e:\blahblahblah in the textbox and press ok then the backround image will change to that image
     
  19. Unread #10 - Apr 3, 2007 at 10:23 PM
  20. dodge
    Joined:
    Mar 26, 2007
    Posts:
    125
    Referrals:
    1
    Sythe Gold:
    5

    dodge Active Member
    Banned

    a question and is it possible

    ok sry man, my bad then. I guess I did not get your question right, I thought you wanted to change the background image on a form
     
  21. Unread #11 - Apr 4, 2007 at 4:52 AM
  22. Michael3455
    Joined:
    Sep 11, 2005
    Posts:
    134
    Referrals:
    0
    Sythe Gold:
    0

    Michael3455 Active Member

    a question and is it possible

    Erm, without being able to test it (I use linux, but vb.net is what we're currently being taught at school) I think you could something like this...
    dim i as string
    i = textbox1.text
    Me.BackgroundImage = Image.FromFile(i)

    Might not work, but try it anyway... I'll have a looky next time I'm at school for you if you still need a solution.
     
  23. Unread #12 - Apr 4, 2007 at 5:20 AM
  24. speljohan
    Joined:
    Apr 24, 2005
    Posts:
    1,450
    Referrals:
    3
    Sythe Gold:
    0

    speljohan Guru
    Visual Basic Programmers

    a question and is it possible

    no point using the i variable though. Just make it:
    Code:
    Me.BackgroundImage = Image.FromFile(TextBox1.Text)
     
  25. Unread #13 - Apr 5, 2007 at 10:55 PM
  26. kharg0
    Joined:
    Feb 25, 2007
    Posts:
    131
    Referrals:
    0
    Sythe Gold:
    0

    kharg0 Active Member

    a question and is it possible

    thx and sry about how that sounded dodge i meant thanks everyone, but dodge i have a question for u
    sry
     
  27. Unread #14 - Apr 6, 2007 at 10:56 AM
  28. dodge
    Joined:
    Mar 26, 2007
    Posts:
    125
    Referrals:
    1
    Sythe Gold:
    5

    dodge Active Member
    Banned

    a question and is it possible

    shoot, what is that?
     
  29. Unread #15 - Apr 6, 2007 at 11:17 AM
  30. kharg0
    Joined:
    Feb 25, 2007
    Posts:
    131
    Referrals:
    0
    Sythe Gold:
    0

    kharg0 Active Member

    a question and is it possible

    no like wat i said sounded mean like i as saying thx everyoneBUT DODGE but what i maent was that and the question was answered thx sry man
     
  31. Unread #16 - Apr 6, 2007 at 3:36 PM
  32. dodge
    Joined:
    Mar 26, 2007
    Posts:
    125
    Referrals:
    1
    Sythe Gold:
    5

    dodge Active Member
    Banned

    a question and is it possible

    hey np, any time i can help lep me know
     
  33. Unread #17 - Apr 6, 2007 at 5:14 PM
  34. kharg0
    Joined:
    Feb 25, 2007
    Posts:
    131
    Referrals:
    0
    Sythe Gold:
    0

    kharg0 Active Member

    a question and is it possible

    k thx man

    alright i figured something out if you can use microsoft minsock control to make an msn with vb 6 then it should work for 2005 it does but i don't know the code..
     
< Sending Emails? | Hi! know about xrumer ? >

Users viewing this thread
1 guest


 
 
Adblock breaks this site