Click here to Skip to main content
15,890,717 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: I Need Some Help In Visual Basic - msflexgrid Pin
Bernhard Hiller13-Nov-14 20:56
Bernhard Hiller13-Nov-14 20:56 
AnswerRe: I Need Some Help In Visual Basic - msflexgrid Pin
Richard MacCutchan13-Nov-14 22:07
mveRichard MacCutchan13-Nov-14 22:07 
QuestionSync textbox movement with grid display view movement Pin
josephls13-Nov-14 7:52
josephls13-Nov-14 7:52 
AnswerRe: Sync textbox movement with grid display view movement Pin
Eddy Vluggen14-Nov-14 8:27
professionalEddy Vluggen14-Nov-14 8:27 
Questionvb.net Pin
kusuma.d13-Nov-14 0:53
kusuma.d13-Nov-14 0:53 
AnswerRe: vb.net Pin
Dave Kreskowiak13-Nov-14 2:14
mveDave Kreskowiak13-Nov-14 2:14 
AnswerRe: vb.net Pin
Richard MacCutchan13-Nov-14 2:54
mveRichard MacCutchan13-Nov-14 2:54 
AnswerRe: vb.net Pin
Sheepings13-Nov-14 4:34
professionalSheepings13-Nov-14 4:34 
Under your Solution in your project name, (Click show all files button above your solution) there is a folder called my project, expand it and open the app.config. Change this line:
HTML
<requestedExecutionLevel level="asInvoker" uiAccess="false" />
to one of these:
HTML
<requestedExecutionLevel  level="requireAdministrator" uiAccess="true" />

HTML
<requestedExecutionLevel  level="highestAvailable" uiAccess="true" />
You can elevate your application to admin level by using the below code:
.NET
VB
Dim RunAdminMode As ProcessStartInfo = New ProcessStartInfo()
        RunAdminMode.UseShellExecute = True
        RunAdminMode.WorkingDirectory = Environment.CurrentDirectory
        RunAdminMode.FileName = Application.ExecutablePath
        RunAdminMode.Verb = "runas"
        Try
            Dim p As Process = Process.Start(RunAdminMode)
        Catch RunAsAdmin As Exception
            Return 'If cancelled, do ....
        End Try

C#
C#
ProcessStartInfo RunAdminMode = new ProcessStartInfo();
RunAdminMode.UseShellExecute = true;
RunAdminMode.WorkingDirectory = Environment.CurrentDirectory;
RunAdminMode.FileName = Application.ExecutablePath;
RunAdminMode.Verb = "runas";
try {
	Process p = Process.Start(RunAdminMode);
} catch (Exception RunAsAdmin) {
	return;
	//If cancelled, do ....
}

Regards,
CodingK

QuestionI am just starting and need direction Pin
Member 1122645911-Nov-14 19:33
Member 1122645911-Nov-14 19:33 
AnswerRe: I am just starting and need direction Pin
Chris Quinn11-Nov-14 21:06
Chris Quinn11-Nov-14 21:06 
GeneralRe: I am just starting and need direction Pin
Member 1122645912-Nov-14 22:28
Member 1122645912-Nov-14 22:28 
AnswerRe: I am just starting and need direction Pin
Richard MacCutchan11-Nov-14 21:07
mveRichard MacCutchan11-Nov-14 21:07 
GeneralRe: I am just starting and need direction Pin
Member 1122645912-Nov-14 22:29
Member 1122645912-Nov-14 22:29 
AnswerRe: I am just starting and need direction Pin
Mycroft Holmes11-Nov-14 21:43
professionalMycroft Holmes11-Nov-14 21:43 
GeneralRe: I am just starting and need direction Pin
Member 1122645912-Nov-14 22:27
Member 1122645912-Nov-14 22:27 
GeneralRe: I am just starting and need direction Pin
Mycroft Holmes12-Nov-14 22:35
professionalMycroft Holmes12-Nov-14 22:35 
GeneralRe: I am just starting and need direction Pin
Member 1122645913-Nov-14 22:17
Member 1122645913-Nov-14 22:17 
GeneralRe: I am just starting and need direction Pin
Member 1122645913-Nov-14 22:22
Member 1122645913-Nov-14 22:22 
QuestionHow to Set Allow Zero Length for Field using OLEDBCommand Pin
gwittlock11-Nov-14 7:35
gwittlock11-Nov-14 7:35 
AnswerRe: How to Set Allow Zero Length for Field using OLEDBCommand Pin
Matt U.11-Nov-14 7:48
Matt U.11-Nov-14 7:48 
GeneralRe: How to Set Allow Zero Length for Field using OLEDBCommand Pin
gwittlock11-Nov-14 7:54
gwittlock11-Nov-14 7:54 
GeneralRe: How to Set Allow Zero Length for Field using OLEDBCommand Pin
Matt U.11-Nov-14 7:57
Matt U.11-Nov-14 7:57 
GeneralRe: How to Set Allow Zero Length for Field using OLEDBCommand Pin
gwittlock11-Nov-14 8:09
gwittlock11-Nov-14 8:09 
GeneralRe: How to Set Allow Zero Length for Field using OLEDBCommand Pin
Matt U.11-Nov-14 8:13
Matt U.11-Nov-14 8:13 
GeneralRe: How to Set Allow Zero Length for Field using OLEDBCommand Pin
gwittlock11-Nov-14 8:16
gwittlock11-Nov-14 8:16 

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.