MSFN Forum: [VB.NET] Advice for a Newbie - MSFN Forum

Jump to content



Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

[VB.NET] Advice for a Newbie Rate Topic: -----

#1 User is offline   DaveXP 

  • The One
  • PipPipPipPipPipPip
  • Group: Members
  • Posts: 1,295
  • Joined: 15-July 03

Posted 28 October 2003 - 05:29 AM

Has anyone have any good advice or site's that i can learn from.

:)

Thanks


#2 User is offline   b0r3d 

  • Friend of MSFN
  • PipPipPipPipPip
  • Group: Members
  • Posts: 821
  • Joined: 03-August 03

Posted 28 October 2003 - 05:49 AM

http://www.planetsourcecode.com
is a good place for resources.

#3 User is offline   DaveXP 

  • The One
  • PipPipPipPipPipPip
  • Group: Members
  • Posts: 1,295
  • Joined: 15-July 03

Posted 28 October 2003 - 06:04 AM

Thanks bor3d looks like some useful stuff

:)

#4 User is offline   Doggie 

  • I'm very inactive :(
  • Group: Patrons
  • Posts: 2,676
  • Joined: 13-October 02

Posted 28 October 2003 - 06:43 AM

well Google is always the best source for tutorials.. as u can see, theres heaps to choose from.. agree that Planet source code is great, also try Abstract VB as well :)

#5 User is offline   DaveXP 

  • The One
  • PipPipPipPipPipPip
  • Group: Members
  • Posts: 1,295
  • Joined: 15-July 03

Posted 29 October 2003 - 05:59 PM

thanks Doggie :)

but i do have another question, say i had some check boxes and i tick 2 out of 5 and then i want to click the next button how do i tell it only to use that two options.

#6 User is offline   DaveXP 

  • The One
  • PipPipPipPipPipPip
  • Group: Members
  • Posts: 1,295
  • Joined: 15-July 03

Posted 01 November 2003 - 08:03 AM

know one? :)

#7 User is offline   Doggie 

  • I'm very inactive :(
  • Group: Patrons
  • Posts: 2,676
  • Joined: 13-October 02

Posted 01 November 2003 - 08:20 AM

well i not using vb.net but in vb 6 its something like for eg;
If Check1.Value = 1 Then
MsgBox "Woot!"
Else
MsgBox "none selected"
End If

not sure if it works like that in vb.net

#8 User is offline   DaveXP 

  • The One
  • PipPipPipPipPipPip
  • Group: Members
  • Posts: 1,295
  • Joined: 15-July 03

Posted 01 November 2003 - 09:24 AM

Thanks Doggie from your exmaple i work it out.

       If CheckBox1.Checked Then
            MsgBox("Woot")
        Else
            MsgBox("none Selected")
        End If


thats how it looks in VB.NET

#9 User is offline   Doggie 

  • I'm very inactive :(
  • Group: Patrons
  • Posts: 2,676
  • Joined: 13-October 02

Posted 02 November 2003 - 03:21 AM

ahh good stuff :), nothing much has changed hehe

#10 User is offline   DaveXP 

  • The One
  • PipPipPipPipPipPip
  • Group: Members
  • Posts: 1,295
  • Joined: 15-July 03

Posted 02 November 2003 - 10:17 AM

hehe, does anyone know the command to tell it to copy something instaed of a Message box, would be grateful for it.

Thanks

#11 User is offline   b0r3d 

  • Friend of MSFN
  • PipPipPipPipPip
  • Group: Members
  • Posts: 821
  • Joined: 03-August 03

Posted 02 November 2003 - 10:32 AM

What do you mean by "copy something instead of a message box" ?
Copy something to where ?

#12 User is offline   DaveXP 

  • The One
  • PipPipPipPipPipPip
  • Group: Members
  • Posts: 1,295
  • Joined: 15-July 03

Posted 02 November 2003 - 10:45 AM

When i check a box the then press the button which will run the command i want it to copy some file to my HDD from my XPCD

#13 User is offline   b0r3d 

  • Friend of MSFN
  • PipPipPipPipPip
  • Group: Members
  • Posts: 821
  • Joined: 03-August 03

Posted 02 November 2003 - 10:54 AM

try using:
Shell("XCOPY X:\FILES\ C:\FILES\")

#14 User is offline   DaveXP 

  • The One
  • PipPipPipPipPipPip
  • Group: Members
  • Posts: 1,295
  • Joined: 15-July 03

Posted 02 November 2003 - 11:13 AM

ummm... that does something but not want i wat i am not sure wat it does mind

#15 User is offline   b0r3d 

  • Friend of MSFN
  • PipPipPipPipPip
  • Group: Members
  • Posts: 821
  • Joined: 03-August 03

Posted 02 November 2003 - 11:24 AM

If you want to copy some files from your XP CD to your HDD, than that is the command you want.

#16 User is offline   DaveXP 

  • The One
  • PipPipPipPipPipPip
  • Group: Members
  • Posts: 1,295
  • Joined: 15-July 03

Posted 05 November 2003 - 11:49 AM

Thanks bored i got it working now a little typeo on my part. One last thing is how do i setup a tree contol to display a new windows when i click one of the items in it.

Thanks

#17 User is offline   maxXPsoft 

  • MSFN Master
  • Group: Developers
  • Posts: 2,519
  • Joined: 14-November 03
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 27 November 2003 - 12:53 AM

This is an example of a listview in VB6, not sure whats changed in .Net and VB6
It can be used in a treeview also with modification.

Private Sub Regview_ItemClick(ByVal Item As MSComctlLib.ListItem)
Dim GoJump, xDt As String
GoJump = Item
ClickedItem = Val(Item.Tag)
Debug.Print "RegItemClick:"; Item.Bold = True, ClickedItem

If GoJump = "HKLM Run" Then '1
xDt = "My Computer\HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Run"
Reg_Write HKEY_CURRENT_USER, "Software\Microsoft\Windows\CurrentVersion\Applets\Regedit", "LastKey", xDt, REG_SZ
End If


BTW
both your statements about the checkboxes were exactly the same
In VB6 you can also use the .Checked or vbUnchecked
I believe if you have Option Explicit you must use the .Checked instead of = 1
I'm sure theres ways around this but its just what I've come across myself.

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2011 msfn.org
Privacy Policy