Click here to Skip to main content
15,913,758 members
Home / Discussions / Visual Basic
   

Visual Basic

 
Questiondrog & drop Pin
Member 996929014-Nov-14 16:25
Member 996929014-Nov-14 16:25 
QuestionHow to analyze last data from clipboard ? Pin
dilkonika14-Nov-14 7:53
dilkonika14-Nov-14 7:53 
AnswerRe: How to analyze last data from clipboard ? Pin
Eddy Vluggen14-Nov-14 8:24
professionalEddy Vluggen14-Nov-14 8:24 
AnswerRe: How to analyze last data from clipboard ? Pin
Mycroft Holmes14-Nov-14 11:56
professionalMycroft Holmes14-Nov-14 11:56 
Question3d walls ib vb6.0 Pin
Otekpo Emmanuel14-Nov-14 3:54
Otekpo Emmanuel14-Nov-14 3:54 
AnswerRe: 3d walls ib vb6.0 Pin
Eddy Vluggen14-Nov-14 4:03
professionalEddy Vluggen14-Nov-14 4:03 
GeneralRe: 3d walls ib vb6.0 Pin
Otekpo Emmanuel14-Nov-14 6:14
Otekpo Emmanuel14-Nov-14 6:14 
GeneralRe: 3d walls ib vb6.0 Pin
Eddy Vluggen14-Nov-14 7:25
professionalEddy Vluggen14-Nov-14 7:25 
Question3d animation Pin
Otekpo Emmanuel13-Nov-14 20:08
Otekpo Emmanuel13-Nov-14 20:08 
AnswerRe: 3d animation Pin
Richard MacCutchan13-Nov-14 22:09
mveRichard MacCutchan13-Nov-14 22:09 
GeneralRe: 3d animation Pin
Otekpo Emmanuel13-Nov-14 22:45
Otekpo Emmanuel13-Nov-14 22:45 
GeneralRe: 3d animation Pin
Richard MacCutchan13-Nov-14 23:01
mveRichard MacCutchan13-Nov-14 23:01 
GeneralRe: 3d animation Pin
Otekpo Emmanuel13-Nov-14 23:26
Otekpo Emmanuel13-Nov-14 23:26 
GeneralRe: 3d animation Pin
Richard MacCutchan13-Nov-14 23:34
mveRichard MacCutchan13-Nov-14 23:34 
GeneralRe: 3d animation Pin
Otekpo Emmanuel13-Nov-14 23:44
Otekpo Emmanuel13-Nov-14 23:44 
QuestionI Need Some Help In Visual Basic - msflexgrid Pin
akmckd13-Nov-14 19:04
akmckd13-Nov-14 19:04 
AnswerRe: I Need Some Help In Visual Basic - msflexgrid Pin
Mycroft Holmes13-Nov-14 20:09
professionalMycroft Holmes13-Nov-14 20:09 
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

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.