Is there any way (via code or otherwise) that you can tell what version of the .NET framework a particular EXE or DLL is targetting? I know the long way round would be to try and run it on a machine with just .NET 1.1 on, then if that doesnt work try it on a machine with 2.0 on, etc etc
I am doing a little project to get better at my Vb while I am outside of class and I am making a launcher that lanuches my games from my external harddrive. Now I want it to auto find what the Harddrive is mounted to Like in my Code below this is what I have so far:
If CheckBox1.Checked = True Then Process.Start("u:\Games\Generals\generals.exe") ElseIf CheckBox3.Checked = True Then Process.Start("u:\Games\Counter-Strike Source\Launcher.exe") ElseIf CheckBox5.Checked = True Then [Code] .....
But Instead of having to go into ym actual Code and Changing it from U: to what ever my drive has mounted to on another computer and have it automaticly find what its mounted to and update my code accordingly.
I'm trying to run the "Shell" command in a VB.NET project, to execute an external file. For example: Shell("c: empmyfile.txt").
For some reason this throwing a "file not found" exception, yet the file is there. Now I've looked around and found that others recommend using the "System.Diagnostics.Process" method, which does work, however I don't want the file to run in-process, which is what that does.
I want to run the file out of process, so that when my program ends, the executed program keeps running independently. Hence my attempt to use Shell() but it refuses to work.
Is there another way besides Shell() to run a file out of process?
Ok, most of my Visual Basic experience I admit was with VB 3 and VB 5. I'm just starting with VB 2005 Express, and get this error when trying to connect to a new database.
I'm using Windows Vista and have the latest Microsoft JET version, so I have no idea why I'm getting that error.
I need to manipulate an external edit control from with in my program. (IE: Get new text whenver it's being enter into edit control and parse the infomation in my program).So, is it possible to create an edit control in my program that base on the handle of an existing application using win32 api or something
I am making trial version of my vb .net project but it is not counting the days , date and time . Can u plz give me any suggestions to make it correct. [code]...
I'd like to move my images / icons and wav files (basically, almost all of my internal resources) from an existing project (VB 2005) and put them in an external dll, then reference this from my exe and call the relevant resource as required.
What would be the best way of doing this?I understand that I should create a ClassLibrary and put my resources in that, but how should I expose those resources to an external program and how should I reference and call the dll from my exe?
I've done some searching, but not found anything that seems to explain the process adequately enough.
I've asked this before, but it's just not working out in real life. I need to detect which OS is running. Most of them work, but not all. I define my variable:
[Code]...
Surely that isn't correct? these are the actual results from running the code on a machine and reading what it says. From this information, I can't distinguish between Vista and Win2008. How do I do this? What's the difference?
I am making a little Diagnostic Test app to check that certain folders and files exist.I would also like to list some system specs, i have almost all the ones i need except the currently installed framework version.
I have search the My.Computer libraries and in the help but cannot get the framework version to display in a listbox.How to get the framework version into a string?
I have a multi-threaded client and server application written in VS 2005. The server application runs thousands of SQL Server 2005 stored procedures and a lot of file IO. The client application does a lot of file searching, file IO, and string comparisons.Right now everything targets the 2.0 framework. Would it be advantageous to upgrade one or all 3 of them to the 2010 versions? I'm mostly interested in seeing speed enhancements. I haven't been able to find much saying 2010 is better than 2005.
What do I use to find the position of a certain character in a string? Lets say I had a number 12345.6789 I want to know how far the decimal point is from the left? Of course the position of the decimal will change as the number will change.
I have an existing invoice module that displays its items in datagridview. The datagridview also contains DataGridViewComboBoxColumn. The problem with the datagridviewcomboboxcolumn is that it has too many records which results to performance problems. And the datagridview itself poses some performance problems dealing with the data.
An idea is playing in my mind to redesign the module, and i want to ask some of your suggestions on other alternatives for datagridview that can display and handle many records at the same time and can handle each row that has datagridviewcomboboxcolumn with also many records.To illustrate concretely, the datagridviewcomboboxcolumn contains the Product Items and the datagridview itself contains records and details such as quantity, rate, total amount of the product item selected.
I need to check to see what version of windows is running. How do I do this from VB .NET 2005? and how comprehensive can I get... can I also check for Vista and Windows 7?
Whien I enter "B" in text5 and run following codes then it show error message as IndexOutOfRangeException was unhandeledThere is no row at position 0I have two question
1) Why it does not select name begins with "B"
2) If it has no row then why it does not exit sub.
str = "select sno,name from employees " str &= "where Name Like '" & (TextBox5.Text) & "%'" cmd2 = New SqlClient.SqlCommand(str, con) da2 = New SqlClient.SqlDataAdapter(cmd2)
My code worked find until new .NET(?).Using word interop code (Word 2003) to make word do a mail merge via VB.NET code. I need to search and replace some string. Now this has worked fine before but now whenever the code reaches assigning the string value to the .Selection.Find.Text or .Selection.Find.Replacement.Text it stops dead with SEHexception external component causing error - see full error below.
i use VS 2005 ,so it use ,net framework 2.0 ,so if i look to ,net framework that i have in my computer i see 1.0 1.1 2.0 3.0 and 3.5 so my question is is VS 2005 automatically use the latest version of framework in my pc or i should do it manually ,and if manually how i do it?
Is it possible to retrieve the pervious upgradeCode that was used to install the same application?
I have given our application to many or our clients.
They install our application using the MSI.
Everytime I release a new version for bug fixes or minor upgrades. In the setup project properties I increment the version number and change the product code (I always leave the same upgrade code). And I set the 'RemovePreviousVersion' to true.
However, a few weeks ago, I accidently changed the upgradeCode and released a new version to our customers. It was only now that a customer wanted to know why they have other instances of the same application in their 'add remove programs'. It installs ok, but they have to uninstall the previous version.
I am wondering is it possible to get back the original upgrade that was used to install those versions. As I used the same setup project, I no longer have that upgrade code?
I still have all my original setups.exe that were built with the original upgradecode
am using visual studio 2005 professional edition (vb.net) at front end of my project, my project is completed, i have created the simple setup file, but i want to create its trail version too, i mean a full fledge setup, so how do i made it in vb.net?
So I have my form, I add one combobox (combobox1) and a button that says "Launch..."Button 1's
Process.Start(ComboBox1.SelectedItem)
When you select a program from the combobox (combobox1) and click launch, it launches that program, for example, cmd.exe (command prompt) when I click the button, it launches the command prompt, but if I select a game (for example chess.exe, for vista), it says it can't find the file, this is because the search for the file is only: WindowsSystem32, how can I change that? OR, how can I add a reference that searches the WHOLE Disk, not just WindowsSystem32?
I am using VB 2005. I am trying to open an external program, make it invisible, and then control it. It is fine if the external program shows up in the Windows Task Manager, but I don't want anything showing up in the Windows taskbar. I already know how to open the program I want to use. For that I am using: