VS 2005 - Function To Detect If The Program Is Being Run On Win 7
May 15, 2009
I have a function designed to detect if the program is being run on Win7. However, when it is run on a Win7 machine, it says it is NOT a Win7 machine. [Code]
View 3 Replies
ADVERTISEMENT
Jan 6, 2011
I have a vb6 program which shells and runs a Vb 2005 program, I would like to be able from that VB 2005 program run a function back in the original VB6 program which called it. Callback?
View 1 Replies
Aug 30, 2011
I am using the Process.Start function to open a program based off a registry value. It works, sort of. Here is the snip of the
Imports System.Data.SqlClient
Imports System.Console
Imports System.Configuration
[Code]....
The program opens with the correct registry value, but the program itself does not run quite right. This program feeds into Intergraph and brings up the selected drawing, but there is a feature of intergraph that doesn't work. If I manually start ( double click ) pdsicon.exe the program works just fine. It only when I call the process that it doesn't work quite right.
View 3 Replies
Feb 8, 2012
I am in process to develop an application for Windows Mobile 6.5 using Visual Basic 2005 and .NET Compact Framework. My problem is that I want to know if an instance of my application is already running and, in that case, I want to jump directly to that instance, without starting another one. I tried several solutions found on the internet but I think there are solution for desktop applications not for mobile applications because I have a lot of errors.
View 1 Replies
Jun 12, 2009
So, let's say I have this code (VB.Net)[code]...
What I don't like is:
- relies upon reflection
- loosely typed (no compile time checking)
- I'd rather store the binding information somewhere other than ID, but don't know where else it could go within the aspx definition. Moving the binding declaration to the code behind would be better in some ways, but worse in others.
View 3 Replies
Aug 14, 2009
I'm working on a web browser named Hyvar.NET and i'd like to integrate a form of shutdown detection into it.
Currently, it simply uses a tri-option setting to decide how it opens - like this
If My.Settings.LoadLastOnStart = True Then
frm.wbTab.Navigate(My.Settings.LastOpenedPage.ToString)
ElseIf My.Settings.HomeOnStart = True Then
[Code]....
Each variable is appropriately named for its job as you can see.
However, i want to change this to react to correct and incorrect shutdowns - unexpected and user instigated ones for example. I.E: if the settings variable for the detection contained 0x000000, it could indicate a clean exit and continue as normal with a new session, but 0x000001 would indicate an unclean shutdown and present the user with an option of reopening the last session or continueing as normal, like in IE 7/8
Im 100% sure this will require a windows API call
View 1 Replies
Apr 4, 2009
I have a set of labels with autosize=false and autoellipsis=true.What I would like to do, on the MouseHover event for each of these labels, is to show a tooltip containing that label's text, but only if the ellipsis was necessary in that particular case (i.e. the text of the label was actually too big to fit).
View 2 Replies
Aug 26, 2010
I did a research but I can't find what I wanted. How I can detect the mouse that if I have move it or not?
I hope this is the last things I needs for the day.
View 20 Replies
Mar 4, 2009
I'm making a mario-like clone and I just finished the jumping code. The only problem is that moving while jumping is extremely hard because if you hold down the up key and right key at the same time, neither one activates.
View 10 Replies
May 22, 2009
I have an app written on an xp pc which I want users to run on Vista
The app needs to delete a file on a portable drive in a particular folder
This folder was created on the xp machine and copied to the portable drive
The app will not delete a file in this folder on Vista but it will on xp
When I check folder security on vista (which does not exist on xp) I find that the folder does not have full control assigned
my app will write a file to that folder & delete it but will not delete a file put there from the xp pc
If I change the security in vista to full control it works
what I want to do is see if the folder has full control when the user selects it and advise them they need to alter security as I can not do it in the program
basically I want to advise them the moment they select the folder, not when it fails to delete the file after entering misc details in the app which are reuired before the file is deleted.
View 13 Replies
Oct 22, 2010
How to detect and get the valid html tags?
View 2 Replies
Mar 30, 2012
I am having a problem with the BackOrdered Function of my program. I can`t get it to say anything but 0 when I run the program. Another problem I am having is the input box pops up like 6 times and it`s only suppose to once. [Code]
View 9 Replies
Jul 11, 2010
I need a code to notify my application when a device (flash drive, cd, etc.) is inserted and removed.
View 11 Replies
May 22, 2009
How do I make VB constantly check for keypresses?[code]...
View 1 Replies
Jan 6, 2011
Objective : Time how long a user has been on the internet. I have never delved this deep into Visual Studio. I am suing Visual Basic 2010 Express. Please move it if you need to.
I want to have a program - that will detect running processes. If Internet Explorere EXE or Chrome or FireFox exe or any other browser is installed - as soon as that process starts the timer will appear.
When those processes are closed by the user the timer stops counting. This is possible but i dont know how. But i only want it to time just one internet process because timing them all when they are openend up at different times could cause bugs. Unless on the time form you have 1 timer for IE, 1 for FFox, 1 for Chrome 1 for Opera..
View 5 Replies
Dec 3, 2009
does anyone know how to get my program to scan for a program such as ie then add it to a toolstrip as a button then when i click it it opens ie??I like..... Understandable Answers
[Code]...
View 1 Replies
Feb 14, 2010
How can my program detect if 2 nodes have the same name ?
View 3 Replies
Jul 31, 2010
I have Ln in my function that I write in excel but in vb it doesn't work
0.215*Ln(4.32/0.3)
it should return the value = 0.573
how can I write this function without using log function (I don't know logs functions)
View 5 Replies
Sep 3, 2011
I have Windows XP Pro, SP3 on a Dell Dimension 9150 with VB 3.0 and all other Visual Studios up to and including VS2010 Pro.I'm not exactly an expert VB programmer, but I have written several different programs.I would like to write a VB program to run in the background and detect when the program regedit.exe/regedt32.exe tries to run.Once the regedit program tries to run, I would like my background program to pop up a message with three options. Allow, Do Not Allow and Cancel.
The Allow button would allow regedit to run.The Don't Allow button will not allow regedit to run and continue to run in the background. The Cancel button would not allow regedit to run and would cancel the background program.Can this be done?I would explain why I want to do this, but it would take too much of this thread. However, if anybody really needs to know, I will accommodate their request.
View 1 Replies
Aug 5, 2010
How to detect collision for a game in vb.net ( i using picturebox for every thing ).
View 1 Replies
Sep 29, 2009
How to handle the Network failure error message,and how to simulate it?
View 3 Replies
Oct 29, 2011
In my program I need to make various word replacements but I don't want to replace the word if it's encapsulated[cod]e...
View 1 Replies
May 31, 2010
How do i actually detect a card is being read by a card reader by using events handler?Like the card reader is connected to the PC using USB, and when a card is flash on the card reader, it will be detected.
View 5 Replies
Jun 13, 2009
I have a custom button in IE8 which starts up my program. Now what I wanted to do, was pass an arguement such as: 'myprogram.exe /ie'
From the IE8 button, and well my program will do rest from there. Now my program adds the button just fine, shows up fine, all that works. But each time i'd add an argument after my application path, IE8 would say it can't find the program. If you want to test this out, goto run, type in gpedit.msc, then 'User Configuration'->'Windows Settings'->'Internet Explorer Maintenance'->'Browser User Interface', and double click on 'Browser Toolbar Customizations'. And in the small window that pops up, is an option for adding custom buttons to IE. I was using this for testing purposes, since it was faster to edit a button here than in my program. When you add a button you choose the executable to link it to. But if you add any arguments after it, IE will simply not be able to find the program. Even if that same command works when you type it from 'run'.
So, now my question is, since apperntly you can't have any arguments in the button, is it possible to detect what executable starts your program? For instance, detect if iexplore.exe started up my program?
View 2 Replies
Jan 30, 2009
I spent some time with data modems till I realized it's a voice modem that I'm going to need in my application. I see that there are some other commands for a voice modem, although nothing very elaborate. I would imagine you make the call as you would in a data modem ATDT etc and it looks like there is really just one command to send audio...
AT+VTX
AT#VTX
Not sure what this is all about except maybe just different standards? Still not sure about how to detect when the call is answered though. I won't be talking to another modem. Maybe the serial port itself has a pin change or something? You would think there would be a bit "somewhere" that the modem would generate when it quits ringing. I may have build my own outboard box to do this. (easy enough -- probably more reliable too -- modems sure need rebooting a lot it seems).
Here is the goal though --Voice modem calls out, call is answered, and I inject my audio from the PC sound card for a minute or so and then tell the modem to hangup.
View 5 Replies
Nov 30, 2011
Is there a way to detect a Chinese character in a string which is build like this:
dim test as string = "letters 中國的"
Now I want to substring only the Chinese characters. But my code is database driven, so I can't substring it, because the length is always different. So is there a way I can split the string, from the moment I detect a Chinese character?
View 1 Replies
Oct 27, 2011
How to make program to detect mouse click and run vb script for action?
View 4 Replies
Jul 14, 2009
I am linking VB.2008 with a software called R.
Different people may install R in different directories or different versions.e.g. My R dir is C:Program FilesRR-2.9.0
How can I let VB automatically detect it and return the directory path to me?
View 2 Replies
Feb 10, 2010
Let's say I have only Notepad.exe running. No other items are on my taskbar except "Untitled - Notepad". How do I tell VB that i want it to find notepad and for example, dock itself to the left hand side of the notepad window?
View 3 Replies
Sep 16, 2009
How would I make my VB Program detect mouse clicks? I want the code in a timer. So if I turn the timer on, my program will detect a Mouse click and then do the rest of the Timer code. And after the timer code is done, I want it to do it again until the timer is closed. So if the timer is on, every time I click the mouse, (anywhere on screen) it will do the rest of timer code.
View 2 Replies