Click here to Skip to main content
16,019,873 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: resizing contols in a form Pin
sa_runner1-Jul-09 3:40
sa_runner1-Jul-09 3:40 
Questionhow to connect a database to VB.net with codes Pin
myperacq30-Jun-09 4:16
myperacq30-Jun-09 4:16 
AnswerRe: how to connect a database to VB.net with codes PinPopular
Tom Deketelaere30-Jun-09 4:27
professionalTom Deketelaere30-Jun-09 4:27 
GeneralRe: how to connect a database to VB.net with codes Pin
JC.KaNNaN30-Jun-09 18:20
JC.KaNNaN30-Jun-09 18:20 
QuestionDesktop background Pin
The real $M@30-Jun-09 3:35
The real $M@30-Jun-09 3:35 
AnswerRe: Desktop background Pin
Tom Deketelaere30-Jun-09 4:18
professionalTom Deketelaere30-Jun-09 4:18 
AnswerRe: Desktop background Pin
Sk9330-Jun-09 5:43
Sk9330-Jun-09 5:43 
AnswerRe: Desktop background Pin
chilinhhacker13-Jul-09 19:17
chilinhhacker13-Jul-09 19:17 
I'm not good at English.

Look at this registry key
HKEY_CURRENT_USER\Control Panel\Desktop
You can find a lot of values in this key. The value named "WallPaper" contains path of the desktop background image. Some of other values describe how should the image be displayed.

Use My.Computer.Registry.SetValue(keyname as String, valueName as String, value as Object) to change the registry.

This is an example code
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        My.Computer.Registry.SetValue("HKEY_CURRENT_USER\Control Panel\Desktop", "WallPaper", "D:\1.jpg")
End Sub


When you click the Button1, it changes your desktop background image path to "D:\1.jpg"

Good luck!

chilinhhacker

GeneralRe: Desktop background Pin
The real $M@14-Jul-09 5:25
The real $M@14-Jul-09 5:25 
Questiontv tuner and directShow Pin
gsipes30-Jun-09 3:30
gsipes30-Jun-09 3:30 
QuestionMultithreading confusion Pin
Sonhospa30-Jun-09 2:59
Sonhospa30-Jun-09 2:59 
AnswerRe: Multithreading confusion Pin
Luc Pattyn30-Jun-09 3:19
sitebuilderLuc Pattyn30-Jun-09 3:19 
QuestionRe: Multithreading confusion Pin
Sonhospa30-Jun-09 10:04
Sonhospa30-Jun-09 10:04 
AnswerRe: Multithreading confusion Pin
Luc Pattyn30-Jun-09 10:24
sitebuilderLuc Pattyn30-Jun-09 10:24 
GeneralRe: Multithreading confusion Pin
Sonhospa1-Jul-09 10:31
Sonhospa1-Jul-09 10:31 
GeneralRe: Multithreading confusion Pin
Luc Pattyn1-Jul-09 11:03
sitebuilderLuc Pattyn1-Jul-09 11:03 
GeneralRe: Multithreading confusion Pin
Sonhospa1-Jul-09 20:20
Sonhospa1-Jul-09 20:20 
QuestionHow to connect DB in Lan Connection? Pin
JC.KaNNaN30-Jun-09 2:25
JC.KaNNaN30-Jun-09 2:25 
AnswerRe: How to connect DB in Lan Connection? Pin
Aman Bhullar30-Jun-09 3:25
Aman Bhullar30-Jun-09 3:25 
GeneralRe: How to connect DB in Lan Connection? Pin
loid grey manuel24-Mar-11 6:20
loid grey manuel24-Mar-11 6:20 
AnswerRe: How to connect DB in Lan Connection? Pin
Dave Kreskowiak30-Jun-09 3:47
mveDave Kreskowiak30-Jun-09 3:47 
QuestionAlgin Left in Excel Export from VB.net Application Pin
maddylein29-Jun-09 21:30
maddylein29-Jun-09 21:30 
AnswerRe: Algin Left in Excel Export from VB.net Application Pin
dan!sh 29-Jun-09 21:48
professional dan!sh 29-Jun-09 21:48 
GeneralRe: Algin Left in Excel Export from VB.net Application Pin
maddylein29-Jun-09 22:21
maddylein29-Jun-09 22:21 
QuestionHow to convert an exe into a service Pin
RK11@200929-Jun-09 19:29
RK11@200929-Jun-09 19:29 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.