I have a program that has several tabs. There are some things in the program that require admin rights[elevation].1- Is there a way I can just elevate just to complete the one task2- If I can not elevete to complete the one task, and have to eleveate to whole program, how cann I eleveate the program and have it remember which tab the user was on, and possible what items where selected in a listview box.
I have a program that has several tabs.There are some things in the program that require admin rights[elevation].
1- Is there a way I can just elevate just to complete the one task?
2- If I can not elevete to complete the one task, and have to eleveate to whole program, how cann I eleveate the program and have it remember which tab the user was on, and possible what items where selected in a listview box.
I have created a VB 6.0 Active-x control for an ASP.NET application.The control is responsible for downloading files from Server to Client machine and installing them.In general will have a set of applications needs to be run in sequence order.Every time i try to install an application it asks for UAC prompt and then proceeds to installation.Functionally it is working fine.But my client requirement is UAC prompt should come for the first process only and should not prompt for the following installations.I am using CreateProcess() API method for installations.
How can I get my app. to remember a path to an folder that has been enterd into a TextBox?
on Form1 there is a SettingsButton, clicking it opens a SettingsDialog, on the Dialog I have a TextBox.
Dubble bclicking on the Dialog opens a FolderBrowserDialog, in that Dialog I select D:My DocumentsTest Pics or enny other folder by clicking on OK that path is desplayed in the TextBox.
If the SettingsDialog is closed or the app. is closeed the contens of the TextBox is lost.
I’m righting a VB program that has some check boxes and radio buttons. How can I have the program remember the user settings of these so they will be the default
using VB net(2005) in Win Forms, I would like to remember the state of my checkBox1 (checked or unchecked) as BindingSource change position.I read that I could use the "Tag property" I have never use it and further more do not know how.
I'm working on program that has two forms. The main form is called 'frmMain'. Second form is called 'FrmHistory'. In the History form, you can check a number of combo boxes to set settings for a grid.
This works.Now, when I close the FrmHistory form and then open it again, I have it so those combo boxes (Settings) are how I left them. This works. I do so via this.
my project uses my.resources + my.settings, + both are working perfectly in debug, but when i move the exe to my desktop, some of the my.settings variables aren't saving. has anyone seen this before? i checked + my project is setup to save settings on exit...
I've been working on a little project recently which is a music player (unoriginal I know, but I'm just learning ). Basically, I want the items that have been added into the listbox to be remembered for the next time the application is opened so that you don't have to re-add the items. The items show up like this (because they are added from my documents): C:UsersEthanDocumentsMusicCage The Elephant - Aint No Rest For the Wicked.mp3?
I would like to change the dropdown list and whenever I make some changes it should auto post back and triggers a selectedindexchanged event for drop down list. I am having problem where it does auto post back but doesnt remember what I selected, it refreshes my page and item that i selected gets lost. I would like to do this without AJAX call. But, if AJAX is the only option, I am open to it.
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load If Not Page.IsPostBack Then Dim F As facility = utilities.lookForFacility 'Option to add Project information in editor _config =
I have a weird question and I honestly hope you understand what is happening here: I design my form (using VB.NET) and put on it a few textboxes, comboboxes and a listview. After the design, I want to adjust the TabIndexes for each control on the form. On the right-hand side of the interface is the property box.
I then select the 'TabIndex' property item and enter a number key (for instance 0) for that selected item. I then select the next textbox control and enter the next number (for instance 1) WITHOUT re-selecting the 'TabIndex' property item. As soon as I select the combobox or listview control, the currently selected property item jumps to 'Items' or 'Collections' and does NOT remain on the 'TabIndex' property item. Why is this happening? Everything worked fine and all of a sudden this starts happening. Should I reset the editor settings or how can I resolve this matter?
i am using an unbound datagridview so i can dynamiclly add rows. all that is working fine. but the grid is not is the location i have coded.. i am using the defualt form as a base then coding the unbound stuff in.. should i just create a blank class file and do everything? the only problem i am having is the grid must bees in the correct location according to the pixel point that i have given it. Right now it is placing the grid at point (0,0) no matter what point is entered on the line for location. so what am i missing??????
I have 2 group box components and both are same size,font,location and visible is false. When i click button2, the groupbox1 won't appear(the group box2 is on bottom n group box1 is on top).
Example:
button1
groupbox1.visible=false
groupbox2.visible=true
button2
groupbox1.visible=true
groupbox2.visible=false
Because i want to show the different,so the location have a little different(actually both are same location). I think my code is no problem. The problem i guess is both component cannot locate at same location?
we have a user that my program works fine for.. and another that it just crashes for.. they get this error
"You cannot start application <App_Name> from this location because it is already installed from a different location."
then they run it up again and it comes up.. and then just closes..in reading some stuff online it says its a framework 2.0 sp 1 issue ?these pc's have 3.5, but my program uses all 2.0 stuff..so is this a 2.0 sp level issue ? or should I make my programs start to use framework 3.0 instead ?
I was using this old method of creating a bunch of rectangles when I need to get the location of a certain point within a grid so I could draw images on the grid. The thing is, I don't want to use rectangles, I want to be able to just round the location as if I were using rectangles. I need it to be able to round the point (66,70) to (50,50) so if you can imagine a grid and the mouse position being within that square in the grid, I need to get the location of the upper left corner of that square.
I have encounterd a problem when trying to re-enstall a program i have writen in vb 2008.I get the following message:"You cannot start application Shell from this location because it is already installed from a different location."This program is to be used on many workstation computers and i need to be able to update any changes by just reinstalling the program, no uninstalling needed first. If the program was installed from a cd first and needs to be updated from a flash disk this error will be a problem, if the update is from a cd as well then there is no problem.Is there a way to change the installation package to ignore where the program installs from and just update itself?
I'm currently working on a project that has a simple game . I want to change the location of a label ( middle ) to another location when a key is pressed down. But there is something wrong with the first of the If statement .I've underlined "point " because it has the error.
Private Sub Space_Navigator_KeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles Me.KeyDown If e.KeyCode = Keys.Up Then If middle.Location = [u]Point[/u](156, 655) Then middle.Location = New Point(156, 547) End Sub
i need to developer project from vb.net to vb 6.0 and i have already project in vb.net and i have to convert in into vb 6.0 but i need same GUI format,but i get problem that is in vb.net control height and weidth is in pixel formate and there is vb 6.0 i dont know so i copy control's height and weidth or size so i got there is difference in vb 6.0 so any one have idea how to convert vb.net location pixel to vb 6.0 location format .
I have the following code inside my MDI parent form:For Each crl As Control In me.Controls
crl.????? Next
The code mainly used for getting some info from all child forms.I can get all the general property like size, location by crl.size or crl.location. But if all the forms have an own variable like myTxt. How could I get this own variable by this For Each method?
Trying to add a image by location. I have it working kinda but its not adding according to point location. I think i could use picture boxes to add it but Id preffer using a point click method were i dont have to make a picture box grid. Here is what I have so far.
Private Sub pb_Canvas_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles pb_Canvas.Click If ActiveTank = True Then
i am trying to copy a dll from one location to another. i have a combobox from which i select a option then i want the program to copy my dll to another location acoording to the option i have selected. But Vb doesn't seem to copy it.it stays the same. for experiment i tried to copy a image. it worked perfectly.