Click here to Skip to main content
12,629,107 members (35,419 online)

Visual Basic

 
QuestionButton text related to click event [solved] Pin
econy9-Apr-13 4:59
memberecony9-Apr-13 4:59 
AnswerRe: Button text related to click event Pin
Kenneth Haugland9-Apr-13 5:26
professionalKenneth Haugland9-Apr-13 5:26 
GeneralRe: Button text related to click event Pin
econy9-Apr-13 6:06
memberecony9-Apr-13 6:06 
AnswerRe: Button text related to click event Pin
David Mujica9-Apr-13 5:26
memberDavid Mujica9-Apr-13 5:26 
QuestionTime in and time out windows form in vb.net Pin
NOORULLA KHAN9-Apr-13 0:16
memberNOORULLA KHAN9-Apr-13 0:16 
Question[SOLVED] Word 2010 VBA - Change font color by RGB by find and replace Pin
Bart Van Eyndhoven8-Apr-13 23:31
memberBart Van Eyndhoven8-Apr-13 23:31 
AnswerRe: Word 2010 VBA - Change font color by RGB by find and replace Pin
Kenneth Haugland9-Apr-13 3:01
professionalKenneth Haugland9-Apr-13 3:01 
GeneralRe: Word 2010 VBA - Change font color by RGB by find and replace Pin
Bart Van Eyndhoven9-Apr-13 4:42
memberBart Van Eyndhoven9-Apr-13 4:42 
GeneralRe: Word 2010 VBA - Change font color by RGB by find and replace Pin
Bart Van Eyndhoven9-Apr-13 22:07
memberBart Van Eyndhoven9-Apr-13 22:07 
Questionconversion to exe Pin
karthick.RR8-Apr-13 22:12
memberkarthick.RR8-Apr-13 22:12 
QuestionRe: conversion to exe Pin
Richard MacCutchan8-Apr-13 22:25
mvpRichard MacCutchan8-Apr-13 22:25 
QuestionFileNotFoundExpection Error! Pin
Member 99702866-Apr-13 23:59
memberMember 99702866-Apr-13 23:59 
AnswerRe: FileNotFoundExpection Error! Pin
Kenneth Haugland7-Apr-13 2:21
professionalKenneth Haugland7-Apr-13 2:21 
QuestionShare local/network printer Pin
Robert Kadar5-Apr-13 5:09
memberRobert Kadar5-Apr-13 5:09 
Hi,

I'm relative new in vb.net programming, so I have some questions about printer settings, printer properties.
How could I share a local printer? Also I would like to access another PC and share a printer installed on that computer. How could I do that?


I used the following vbscript code, but I can't convert it to vb.net:

strComputer = "w20hy050"
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2")
 
Set colInstalledPrinters =  objWMIService.ExecQuery _
    ("Select * from Win32_Printer Where Name = 'Customer'")
 
For Each objPrinter in colInstalledPrinters
    objPrinter.Shared = TRUE
    objPrinter.ShareName = "Customer"
    objPrinter.Put_
Next

Thanks for your help.

modified 5-Apr-13 11:32am.

AnswerRe: Share local/network printer Pin
Eddy Vluggen5-Apr-13 8:12
mvpEddy Vluggen5-Apr-13 8:12 
AnswerRe: Share local/network printer Pin
Bernhard Hiller7-Apr-13 22:00
memberBernhard Hiller7-Apr-13 22:00 
QuestionPlease help me, this program does not work. Pin
Zubair Khalid4-Apr-13 21:44
memberZubair Khalid4-Apr-13 21:44 
AnswerRe: Please help me, this program does not work. Pin
Tim Carmichael5-Apr-13 4:08
memberTim Carmichael5-Apr-13 4:08 
AnswerRe: Please help me, this program does not work. Pin
Eddy Vluggen5-Apr-13 8:10
mvpEddy Vluggen5-Apr-13 8:10 
JokeRe: Please help me, this program does not work. Pin
Mycroft Holmes7-Apr-13 0:31
professionalMycroft Holmes7-Apr-13 0:31 
GeneralRe: Please help me, this program does not work. Pin
Eddy Vluggen7-Apr-13 7:51
mvpEddy Vluggen7-Apr-13 7:51 
QuestionArgumentOutOfRangeException Pin
IgaBaro4-Apr-13 18:51
memberIgaBaro4-Apr-13 18:51 
AnswerRe: ArgumentOutOfRangeException Pin
frazzle-me5-Apr-13 6:55
memberfrazzle-me5-Apr-13 6:55 
Questionsearch a excel document Pin
staticstate2-Apr-13 8:00
memberstaticstate2-Apr-13 8:00 
AnswerRe: search a excel document Pin
Kenneth Haugland2-Apr-13 10:13
memberKenneth Haugland2-Apr-13 10:13 
GeneralRe: search a excel document Pin
Maciej Los10-Apr-13 4:38
mvpMaciej Los10-Apr-13 4:38 
AnswerRe: search a excel document Pin
Maciej Los10-Apr-13 6:10
mvpMaciej Los10-Apr-13 6:10 
QuestionSearching Data Pin
Ahmad Rifai Yusuf2-Apr-13 4:45
memberAhmad Rifai Yusuf2-Apr-13 4:45 
AnswerRe: Searching Data Pin
Kenneth Haugland2-Apr-13 10:15
memberKenneth Haugland2-Apr-13 10:15 
GeneralRe: Searching Data Pin
Ahmad Rifai Yusuf3-Apr-13 14:01
memberAhmad Rifai Yusuf3-Apr-13 14:01 
QuestionHello All, need help to SET 5 days in a weeks in VB 2010 EXPRESS Pin
annoer02121-Apr-13 23:08
memberannoer02121-Apr-13 23:08 
AnswerRe: Hello All, need help to SET 5 days in a weeks in VB 2010 EXPRESS Pin
Bernhard Hiller1-Apr-13 23:47
memberBernhard Hiller1-Apr-13 23:47 
GeneralRe: Hello All, need help to SET 5 days in a weeks in VB 2010 EXPRESS Pin
annoer02122-Apr-13 9:53
memberannoer02122-Apr-13 9:53 
GeneralRe: Hello All, need help to SET 5 days in a weeks in VB 2010 EXPRESS Pin
Maciej Los10-Apr-13 4:33
mvpMaciej Los10-Apr-13 4:33 
GeneralRe: Hello All, need help to SET 5 days in a weeks in VB 2010 EXPRESS Pin
Yazid Aura Robbani10-Apr-13 12:16
professionalYazid Aura Robbani10-Apr-13 12:16 
Question[SOLVED] Word 2010 VBA - reading classical wordarts Pin
Bart Van Eyndhoven1-Apr-13 22:58
memberBart Van Eyndhoven1-Apr-13 22:58 
AnswerRe: Word 2010 VBA - reading classical wordarts Pin
Kenneth Haugland2-Apr-13 10:19
memberKenneth Haugland2-Apr-13 10:19 
GeneralRe: Word 2010 VBA - reading classical wordarts Pin
Bart Van Eyndhoven2-Apr-13 22:25
memberBart Van Eyndhoven2-Apr-13 22:25 
GeneralRe: Word 2010 VBA - reading classical wordarts Pin
Bart Van Eyndhoven7-Apr-13 22:52
memberBart Van Eyndhoven7-Apr-13 22:52 
AnswerRe: Word 2010 VBA - reading classical wordarts Pin
Kenneth Haugland8-Apr-13 0:02
professionalKenneth Haugland8-Apr-13 0:02 
GeneralRe: Word 2010 VBA - reading classical wordarts Pin
Bart Van Eyndhoven8-Apr-13 23:19
memberBart Van Eyndhoven8-Apr-13 23:19 
QuestionMybase.New problem Pin
Christoffer Svensson31-Mar-13 7:42
memberChristoffer Svensson31-Mar-13 7:42 
AnswerRe: Mybase.New problem Pin
Dave Kreskowiak31-Mar-13 8:11
mvpDave Kreskowiak31-Mar-13 8:11 
QuestionEditable Grid for Windows 7 (32 or 64 bit) Pin
h0k3n931-Mar-13 7:12
memberh0k3n931-Mar-13 7:12 
AnswerRe: Editable Grid for Windows 7 (32 or 64 bit) Pin
Dave Kreskowiak31-Mar-13 8:09
mvpDave Kreskowiak31-Mar-13 8:09 
GeneralRe: Editable Grid for Windows 7 (32 or 64 bit) Pin
h0k3n931-Mar-13 16:10
memberh0k3n931-Mar-13 16:10 
GeneralRe: Editable Grid for Windows 7 (32 or 64 bit) Pin
Dave Kreskowiak31-Mar-13 16:14
mvpDave Kreskowiak31-Mar-13 16:14 
GeneralRe: Editable Grid for Windows 7 (32 or 64 bit) Pin
Eddy Vluggen1-Apr-13 2:51
mvpEddy Vluggen1-Apr-13 2:51 
AnswerRe: Editable Grid for Windows 7 (32 or 64 bit) Pin
Kenneth Haugland31-Mar-13 19:37
memberKenneth Haugland31-Mar-13 19:37 
AnswerRe: Editable Grid for Windows 7 (32 or 64 bit) Pin
JRodeo1-Apr-13 13:32
memberJRodeo1-Apr-13 13:32 

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.


Advertise | Privacy | Mobile
Web02 | 2.8.161205.3 | Last Updated 7 Dec 2016
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid