Adblock breaks this site

a question and is it possible

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

  1. kharg0

    kharg0 Active Member

    Joined:
    Feb 25, 2007
    Posts:
    131
    Referrals:
    0
    Sythe Gold:
    0
    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 :)
     
  2. dodge

    dodge Active Member
    Banned

    Joined:
    Mar 26, 2007
    Posts:
    125
    Referrals:
    1
    Sythe Gold:
    5
    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
     
  3. speljohan

    speljohan Guru
    Visual Basic Programmers

    Joined:
    Apr 24, 2005
    Posts:
    1,450
    Referrals:
    3
    Sythe Gold:
    0
    a question and is it possible

    and if you didn't know, vbCrLf = vbNewLine = A new line.
     
  4. Covey

    Covey Creator of EliteSwitch
    Retired Sectional Moderator Visual Basic Programmers

    Joined:
    Sep 9, 2005
    Posts:
    4,510
    Referrals:
    9
    Sythe Gold:
    9
    Discord Unique ID:
    807246764155338833
    Discord Username:
    Covey#1816
    a question and is it possible

    i thought vbcrlf = clear line feed
    which is slightly different to vbnewline but w/e
     
  5. Swan

    Swan When They Cry...
    Retired Global Moderator

    Joined:
    Jan 23, 2007
    Posts:
    4,957
    Referrals:
    0
    Sythe Gold:
    0
    Sythe's 10th Anniversary Member of the Month Winner
    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?
     
  6. speljohan

    speljohan Guru
    Visual Basic Programmers

    Joined:
    Apr 24, 2005
    Posts:
    1,450
    Referrals:
    3
    Sythe Gold:
    0
    a question and is it possible

    also, making a MSN Client would require learning the MSN Protocol used by the server.
     
  7. X Zero

    X Zero Forum Addict

    Joined:
    Jan 21, 2007
    Posts:
    577
    Referrals:
    0
    Sythe Gold:
    0
    a question and is it possible

    wouldn't it much like an irc chat?
     
  8. dodge

    dodge Active Member
    Banned

    Joined:
    Mar 26, 2007
    Posts:
    125
    Referrals:
    1
    Sythe Gold:
    5
    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
     
  9. kharg0

    kharg0 Active Member

    Joined:
    Feb 25, 2007
    Posts:
    131
    Referrals:
    0
    Sythe Gold:
    0
    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
     
  10. dodge

    dodge Active Member
    Banned

    Joined:
    Mar 26, 2007
    Posts:
    125
    Referrals:
    1
    Sythe Gold:
    5
    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
     
  11. Michael3455

    Michael3455 Active Member

    Joined:
    Sep 11, 2005
    Posts:
    134
    Referrals:
    0
    Sythe Gold:
    0
    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.
     
  12. speljohan

    speljohan Guru
    Visual Basic Programmers

    Joined:
    Apr 24, 2005
    Posts:
    1,450
    Referrals:
    3
    Sythe Gold:
    0
    a question and is it possible

    no point using the i variable though. Just make it:
    Code:
    Me.BackgroundImage = Image.FromFile(TextBox1.Text)
     
  13. kharg0

    kharg0 Active Member

    Joined:
    Feb 25, 2007
    Posts:
    131
    Referrals:
    0
    Sythe Gold:
    0
    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
     
  14. dodge

    dodge Active Member
    Banned

    Joined:
    Mar 26, 2007
    Posts:
    125
    Referrals:
    1
    Sythe Gold:
    5
    a question and is it possible

    shoot, what is that?
     
  15. kharg0

    kharg0 Active Member

    Joined:
    Feb 25, 2007
    Posts:
    131
    Referrals:
    0
    Sythe Gold:
    0
    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
     
  16. dodge

    dodge Active Member
    Banned

    Joined:
    Mar 26, 2007
    Posts:
    125
    Referrals:
    1
    Sythe Gold:
    5
    a question and is it possible

    hey np, any time i can help lep me know
     
  17. kharg0

    kharg0 Active Member

    Joined:
    Feb 25, 2007
    Posts:
    131
    Referrals:
    0
    Sythe Gold:
    0
    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 ? >


 
 
Adblock breaks this site