Get A Open Dialogue To Select A Program For App Called Winhome?
Aug 22, 2011
Ok ive managed to figure our most of my problems, and get help , from u nice people. i have 88 buttons and 1 is visible by default the rest are invisible so if you click the first button you get a open dialogue to select a program for my app called winhome after that i need the second button to become visible, and so on,any quicker way to do this instead of manually copying/pasting if statements?
After the download dialogue opens I need a series of changes to happen on the page, but I have noticed all the code after this code will not run. Anyone know how I can make the page changes occur AND get the download dialogue to pop up?
i would like to do FILE I/O without a dialogue. the file always be the same and the location will always be the same, therefore i dont need a dialogue. i would like to know how can i do this? what is the code to open, write, and save to a file without the dialogue.
I recently found an awesome tool called "Freemind" that is called a 'mind mapping' program. It's similar to MS Visio but way cooler and more automated.I reeeallly would like to integrate this into a VB.net Form, but how?
Has anyone seen or heard of mind mapping inside VB.net before? Are there programs out there already that work with VB.net or anyone have an example they have seen / built that works?
Is there a better way of finding the path of a file that was opened with the open file dialogue? This is what I did. It works, but it seems like there should be a way to get the path through one of the open dialogue options.
Code: 'm_PicSource = OpenFileDialog1.FileName 'm_PicSource is a global var Dim strCnt As Integer = m_PicSource.Length - 1
I'm getting ok connection to the database... but it's always telling me that I don't have permission to use the SELECT command with some table called 'proc'.
This is just a general question, I need help with something on Visual Basic 2008. I do not know why, but as of late every time I open up a project in Vb it gives me something called an object browser. I try to find my forms so I can work on my program, but I can't find them. Has anyone else had this problem or knows how to fix it? I can't get to my forms!!
Is there a possibillity to get in a vb program information from a called vb program?For example: Dim id As Integer = Shell("C:program.exe id_1") program.exe is a vb windows form program and must return a value back.
im making a tabbed web browser for private use which is basicly done apart from the fidly bits however i want to be able to hold down the "ctrl" key and press t to open a new tab like google chrome and firefox, im verry new to programing and dont even know where to start, so far i have been watching youtube tutorials and reading tutorials on here which has got me to the point where i can actualy use the browser and its verry handy but this would be an excelent feature.the way i open new tabs at the moment is by click a button called "new tab" using the following code. [code] these i could probably work out with google searching but im not to bothered if i can get it to work.
i am very new @ visual basic just worked in php and html before this i downloaded visual studio 2008 with sp1 before a few days and made my first steps whit it. i want to make something like an software package for myself just to trie out some things, and i would like to add (firefox.3.1.exe to MY RESOURCES, and after that i want to make something like a button and a button click event that when i clikc the button it opens the .exe file in my resourses and i can install it)so i know how to add it to my resources. so is there maybe any way to use SHELL to open a file called firefox_setup.exe in MY.RESOURCES?
I have used the Process.start function to open an Excel file as shown in the code
Process.Start("report.xlsx") and it works perfectly well.
My question is can this function be used to open a particular worksheet called Report1 in the report.xlsx file. If so what would the code be.I have spent many hours trying to research this topic but without success.
I have an event callback that I created to respond to the value change of a numeric control. For some reason this sub is called event before my first Frm_Load submethod is called. Grrrr...why is this sub being called first before anything else?? The event passed appears to be "Empty".
I have a function to pull data from a XML, and to report a specific number based on a value in one of the elements in the XML. Unfortuntately, I can't get any break points to work, so I've been debugging with a trace.he strange this is that when i take out the function itself it works like it should, otherwise the Service freezes when it gets to the function and never uses it. I'm calling the function in while loop which is also within a Try Statement, here's example of the code.
Public Shared Function GetXNumber(ByVal audit As Audit.API)
Hows it going. Im in some need some help. Im trying to make a Program called process master, and one of it's features is When clicking an item in Listbox1, It will show on the side in Label 11 the path of that process.
System.IO.Directory.GetCurrentDirectory.listbox1.selecteditem = label11.text As you can very well see, im new with System.IO commands. Been wanting this as one of the main features!
I'm writing a program and have run into a bit of a snag. I have the code perform a button click on certain buttons, the reason for this is I have a bunch of buttons that each do something and one that does everything automatically. I suppose I could rewrite everything under that one button but that would essentially double the size of my program, I could use an if statement to catch the fact that the program is in automatic mode but that would be about 15 conditions (not looking forward to writing that statement ;p)
Clicking the buttons is a nice simple, clean solution. The exception being the program performs the click then continues on executing the rest of the code in the actually clicked button while at the same time executing the code called by the code click. Main problem with this is the data that needs to be populated by the code click isn't being populated fast enough for the code in the main button so then there is errors, blank data, program doing nothing. A simple sw timer to delay could work (I know how to make one of those) but the problem with that is the program is executing against a webpage and if the webpage takes a few seconds longer to load then anticipated everything is out of wack again. I'm looking for a simplish way to cause the program to wait for ALL code called by any raised event to finish before proceeding.
i.e. Call Button.clickEvent > Wait for code and subroutines executed by Button.clickEvent to finish > continue with rest of code in button.
Below is the code I'm using so far for the user clicked button.
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click Button4.PerformClick() 'Need to wait for all code executed by Button4 and anything it calls to finish x = 0
I'm playing around with VB.NET once again since college and I'm trying to recreate a program that GeekSquad uses called the MRI for a friend.Upon doing so, I have run into a few snags. The must present one is once I publish my application to a particular spot that also includes already setup folders with portable apps setup in them. I want to use Process.Start("App Path") where App Path is the drive letter of where the Custom Program exe is located and calling file Test1.exe in the test1 folder in the root.
i was wondering if it possible to have a condition where lets say you have a column in the datatable called amount and a textbox acting as the filter called say maxamount to set it so the rowfilter when filtering the table will sum the number in the amount column until the number in maxamount is met, then stop and only return the rows where the total sum of the amount column is equal or less than the maxamount value, so i guess if the next row takes us over the maxamount it discards this row and returns the rows previous to it. is this possible using datagridview rowfilter or should i be loooking elsewhere to achieve this?
I have an sql table called Stock with two fields called StockID and StockCode. I want the user to select the stockcode from a combo which in turn populates the stockid for that item into a lable on my form. I have already populated the stockcode into the combo but dont know how to compelte the rest.
Imports System.Data.SqlClient
Public Class cbo2 Private Sub cbo2_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
I have a form called FrmPracDetails which is built up with a List view called LvwColProc. Therefore when you click a field on the LvwColProc it takes you to another form called FrmColProcessing, here you can make changes to certain fields which are also present on FrmPracDetails. What I want to do is when you make changes on FrmColProcesing and Click the Save Button (which calls the Save function)the changes appear instantly on FrmPracDetails. Please note, FrmColProcessing will always be open next to FrmPracDetails. I have tried to put this code in the Save function present in FrmCol Processing as shown below, but it doesnt Refresh FrmPracDetails form. [code]
For a class, I have to create a delegate and use the function in my program called DoStuff(). There is an error tht says "Method 'Public Sub DoStuff(stringVal As String)' does not have a signature compatible with delegate 'Delegate Sub MyDel()'.
i'm creating a program called Workshop Selector. It has 3 list boxes, one with the 5 workshops, second with 6 locations, and the final is the list of costs. The user selects a workshop, a location, then hits the Add Workshop button, which calculates the costs and adds the cost to the third listbox. Soo, to my question.
There is an additional button called Calculate Total that adds the values of the costs in the cost listbox and displays the total in a textbox. The code i currently have that works just fine is --
Dim one, two, three, four, five, total As Integer lbCost.SelectedIndex = 0 one = CInt(lbCost.SelectedItem.ToString) lbCost.SelectedIndex = 1 two = CInt(lbCost.SelectedItem.ToString) etc..etc.. total = one + two + three + four + five tbxTotal.text = total
While this works, i have no idea of knowing how many times the user will add a cost to the cost listbox. therefore id have to make many many variables, and other issues occur.So is there a way i can do this with a for loop? declare a global variable like
Dim costcounter as integer
then at the end of the add workshop cost btn click procedure use: costcounter = costcounter + 1
That way i kno the exact amount of times the person added a cost?
Then create a for loop like
Dim intcount As Integer For intcount = 1 To costcounter code.... Next
Would this work somehow? but what code would i have to input within the for loop to scan each selected index, and then return values that can be added together and displayed in a textbox?
I need to create a setup project, the main project can't be installed without a program called infragistic.
How can I do ask for infragistic program before to install the main project? If infragistic is not installed, the setup project must install it, I mean execute the infragistic installer before the main installer.
This JCL_History object is basically a Generic.List encapsulated in a wrapper and has the following method:
Public Sub Enqueue(ByRef value As String) If Members.Contains(value) Then Me.RemoveAt(Members.IndexOf(value))
[Code].....
In my testing I have 2 items in this JCL_History list. When I call that first line of code I posted (the one that invokes Enqueue) with I = 1 I expect the first item to be shuffled to the bottom and the second item to be shuffled to the top.
After the thread returns from Enqueue I notice that this is exactly what happens to my list, HOWEVER if I hit the "step_in" button after the execution of Enqueue I go into the Default Property's set method where Index = 1 and value = and it screws everything up, because the item that got shuffled to the end (index 1) gets overwritten by the item value shuffled to the top.
So basically the set method on the default property is getting called at what I think to be a completely ridiculous time. What gives? By the way I'm running VS2005 on XP.
I have been developing a calculator for complex math. (Much more complicated than +,-,/,*, and above your usual scientific calculator)Its works quite well .In past programs I have used "private functions". I know that you give them a value and it returns on back. But what if you dont want to recive or send value? My example for this is a function I am attempting to make called "Autopi".The idea of Autopi is that whenever a mathimatical operation is about to be performed textbox(s) are cheked to see if they contain pi. (3.14 or 3.141) If they test positive Autopi will continue pi to however many places have been specifyed in the program. (Currently 300 places just beacuse i can :) Before the Autopi function does this it chekes to see if variable "pi" = 1. If it does it proceeds if it doesent its job is done
How would I create a code that can be called apon to activate but not recive or send any information through the program.And just to clarify what I mean by that is it will read information out of a textbox and write into it. But it wont actualy recive anything or send anything back from where it was called apon.
Anyone can help me? i have several active windows (msWord, notepad, windowsmediaplayer) , and when i run my vb program, it will do calculation then copy the calculation into one of my Word file that already open. i know how to copy the calculation, but i dont know how to select the Word file that already open.
I am trying to open a Dialog box to select a file. I then need to drop that value into a FileStream StreamReader to read it so the combo box will show a list of values in the selected .ini file. I've got pieces of it but I am not sure of the glue that will connect the two. I am posted what code I have below.
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Dim FileParser() As String
I have created a tab control and few forms. Each form opens in a separate tab when a button is clicked
I have take care so that the form does not open again in a new tab if its already open. But I am having trouble bringing the tab to focus.I want to Select the From in the tab and bring it to focus if its already in the tab list.