Calling Some Default Windows Application

Jun 3, 2011

If I wanted to call the RUN prompt and the Command prompt in my application, what exe's would I need to reference?

View 6 Replies


ADVERTISEMENT

C# - Stop Developers From Calling System.Windows.Forms.Application.DoEvents()?

Mar 15, 2009

We just spent 300 man-hours fixing a buggy application in the field. It all came down to calling Application.DoEvents (re-entrancy problem).This was not caught in design reviews, code reviews.The code was inserted two years ago with the first version; the application was always "flaky" but recent changes exposed the re-entrancy problems to a greater degree. This incident is the second time in our organization that Application.DoEvents caused failures and multi-man hours of debugging.It was discovered in this case by simply noticing the call,buried way down in a complex event handler for an asynchronous task.What do you suggest to prevent this issue from happening again:

Add checkin gates to source control?

Developer training?

Code Analysis rules (why is this not already a built-in rule?)

How to I enforce a coding practice?

View 8 Replies

Change Namespace / Class Names For "Windows Application" From Default My.MyApp?

Feb 3, 2012

I'm using SharpDevelop and .NET 4.0.

My question is this: If you start a new project with a "Windows Application" template, it generates a Program.vb with the following contents[code]...

View 1 Replies

VS 2008 Launching Default Application From 2008 Under Windows 7

Nov 5, 2009

Within my application we store objects i.e images,word docs, etc etc. These are stored in a listview and when the user double clicks the item it launches the default application assigned to the file type i.e a bmp will launch paint, doc will launch word etc etc.

Everything works great in all versions of windows except the new Windows 7 where i am getting this error message:

Im guessing this is something to do with permissions etc, but can anybody shed more light on this and where to look?

View 6 Replies

Calling A DLL From .NET - Error Occurs On Windows 7?

Feb 8, 2012

I have a VB6 DLL that wraps a call to a 3rd party component. When I call my DLL from VB6, everything works fine, but when I call it from vb.net (2.0 framework targeted - VS2010) I get this error:

AccessViolationException occurred

Attempted to read or write protected memory. This is often an indication that other memory is corrupt.This error only occurs on Windows 7 (Windows XP clients work fine).I've looked this up and all the articles I found talked about the declaration not being correct.I am not declaring any APIs calls though, the 3rd party component is early bound in my VB6 DLL.I can run the DLL, set a breakpoint,and it goes into my VB6 function, but errors calling a function in the 3rd party component.My VB6 DLL takes 3 string and one 32bit numeric (long in VB6) parameters. The 3rd party's DLL function that I am calling is taking a string (bstrDNSID as string is what Intellisense shows in VB6). This is where it errors.

Update: None of the marshalling has helped, so I tried creating a test sub in my VB6 DLL. I hardcoded all the values within the DLL's test sub. It works fine when called from VB6, but gives the same error as above when running from .NET. Also of interest, when I have the VB6 DLL running from the VB6 IDE, I do not get the error when calling the DLL from .NET.

View 2 Replies

Interop - Calling Windows SDK GetGlyphIndices From .Net?

Aug 19, 2009

I am calling GetGlyphIndices from Vb.Net. I am using a single character string. I get the correct value in the indices array for the character '6' but not for characters requiring 2 bytes to be returned.

Does anyone have any experience with this API call? My next step is to write the C equivalent and make sure I can get it working without interop.

[Code]...

View 3 Replies

Calling Windows Hard Disk Defragmenter

Jan 30, 2009

Can somebody tell me how to call Windows Hard Disk Defragmenter in VB.Net on Button Click.

View 4 Replies

Calling Windows Hard Disk Defragmenter In .Net?

Jan 30, 2009

how to call Windows Hard Disk Defragmenter in VB.Net on Button Click.

View 1 Replies

Calling Windows Hard Disk Defragmenter?

Jan 30, 2009

how to call Windows Hard Disk Defragmenter in VB.Net on Button Click

View 1 Replies

Getting A Default Windows Path For VB?

Apr 15, 2012

So im just wondering, in batch they have a default way of saying the original drive or folderpath like so: %drive% for your C: drive or whatever your drive is or like %windir% for the windows directory. I need this to extract files into the windows folder and some people might have a D: drive instead of C: or Windows.001 instead of Windows. Is there a way for this in vb 2008-2012?

View 2 Replies

[2008] Default Windows UI?

Mar 1, 2009

I'm a newbie at VB.NET and was wondering how I could get the Windows UI on my program without having to go to the properties and changing it because i want to keep the Button the same only change the menubar to the windows default.

View 2 Replies

C# - Calling A Method In A FACTORY Class When Application Is Closed / Disposed Without Using Application's Dispose() Method

Mar 28, 2012

I am indifferent if you are a VB.NET or C# or other .NET developer. I have a FACTORY class like the following:

[Code]...

View 2 Replies

Change Default Windows Printer?

Aug 28, 2009

I really want to do is change the default printer in Windows.No combobox populated with a list, just simply the syntax for changing the default printer.

View 1 Replies

.NET Application Hangs When Calling DLL

Dec 28, 2010

Its been running in production for over a year and this is the first time I saw this behaviour. The application is a VB.NET Console Application which is triggered by MQ server. This application uses a class library which is part of the same project(Say 'abc.dll'). In production around 40+ instances of this exe are running and all of them use the some of the functions from 'abc.dll'.

Last week, we noticed that all the 40 instances were shown to be running in the task manager but they were not doing any activity. There was no exception thrown or error logged in Application logs or System logs. To frantically debug the problem, I tried isolating the problem.

With all these 40+ exes hung up, I wrote a small aplication which would use a reference to this 'a.dll', create an object of one of the classes in that dll and execute a method in there. I was printing console.writelines in between to see to which point it gets to before erroring out.

To my surprise, I found that at the point where I was creating an object of a class in 'a.dll' this sample test application would also hang just like the others. No exceptions thrown. So I killed all those applications as a last resort and then when I restarted all of them, everything worked fine.

I couldn't find any explanation for this behaviour. Since it was a critical error affecting a production system(blanking out the application for 3+ hours), I have to give a very good explanation as to why this would occur. how it can be prevented in future.

(Side note: the servers running these appilcation do not have a maintenance schedule and are supposed to be up for couple of months together.

View 11 Replies

Application Calling Fortran Exe

Nov 18, 2010

I am running one fortran exe in .net application(calling from command line with the help of system diagnostic process). If we directly click on fortran exe, it shows inputs to enter for fortran in command window, after input entered it gets executed. We want same behaviour but want to run fortran exe from .net application, If we click on button in vb.net form, this exe should get called and should show inputs to enter on the command line, once inputs entered it should execute. How to achieve this with .net application? Right now, after clicking on button in vb.net form, exe get's opened in command window, but it is blank, and gets hanged. [code]

View 1 Replies

Calling Another Application From Within A VB Program?

Feb 9, 2011

I have written a VB Program for calculating Power requirements for Heating Water, Air etc. There are some standard formulae, which require inputs in fixed units. The user may have data in other units, which will then need conversion.Example: Formula needs Airflow in Cubic Meters/ Minute, where as user has data in Liters/Second.I do not want to write code to do Unit Conversions from within my Program. There are readily available FREE Applications for doing the conversions. I have one such Application, which I want to bundle with my VB program.How can I Code in my program, so that when the user clicks a Button " Unit Conversion ", the bundled program will open.This is like clicking on a Hyperlink in a Program or Document and a Web Browser opens.

View 1 Replies

Calling Asp.net Function Within Web Application?

Oct 26, 2011

Is it possible to call a function within an asp.net web application from outside that application e.g. with VB.net? If so it would be great to see a hello world type example.

For arguments sake lets say I have my function "helloworld" in a class file within web application: [URL]

My ultimate goal is to enable some reliable / robust scheduling of functions within asp.net. I have read multiple examples about using web services / custom services running on the server etc but I don't really get the implementation.

View 2 Replies

Calling IBM UniVerse Application?

Dec 9, 2010

I have developed IBM UniVerse application before. Now I am developing a .NET application that I want to call the UniVerse application?

View 1 Replies

Calling JS Function From Application?

Jul 6, 2009

I am working on an desktop application in which I am using WEB BROWSER component. There is a Javascript function within the webpage I want to call from my vb.net application. I am not attaching any code with this post because I couldn't find anything relevant on internet as all example involve asp.net server controls, no VB.Net desktop Application example.

way out to call JS function of the webpage loaded in the browser component through VB.Net Form Button.

View 1 Replies

Get GUID From Calling Application?

Nov 29, 2010

I have multiple applications that will be calling a DLL.Is there a way to get the GUID from the calling application without passing it?I would like to use the GUID to verify the parent application and open up rights within the DLL for a specific app but not others.

View 3 Replies

Add A Checkbox To Windows Default Print Dialog?

Mar 31, 2009

Is there any way to add a checkbox to the windows default print dialog or do I have to create my own print dialog?

View 1 Replies

Change Default Windows Keyboard Shortcuts?

Feb 15, 2012

Is there a way to change default Windows keyboard shortcuts like CTRL + C, CTRL + X etc. to my desired shortcuts like CTRL + J, CTRL + Q etc. in .NET ?

I can register the new hotkey easily with RegisterHotkey. I just need to unregister the hotkeys Windows has registered and add their functionality in the new hotkey.

View 2 Replies

Enable The Windows Default  Hot-Track In Listview?

Oct 4, 2011

Im using a listview item in visual basic to display items. How to enable the Windows Default Hot-Track in listview??

View 3 Replies

Play Default Windows Sounds (not Beeps)?

Dec 7, 2011

What is the easiest way to play a sound from windows sounds? Does .NET built-in library for that?

View 1 Replies

Set Default Folder In Search | Looking In Windows Explorer By .net?

Jun 6, 2009

I am using vb.Net 2005 for creating an application for handling windows explorer. In I have open a folder in windows explorer as a root folder. Currenty I need when I click one Search button.And after this click on All files and foldes. In Lookin combo bydefault set my Root Folder which is I set in windows explorer. For opening windows explorer I use this code.

Dim processClass As ManagementClass = New ManagementClass("Win32_Process")
Dim handler As ManagementOperationObserver = New ManagementOperationObserver
AddHandler handler.Completed, AddressOf Me.Completed

[code].....

View 1 Replies

VS 2010 Get Default Window Border In Windows?

Jul 6, 2009

In VB.NET, how can I get the default window border size in Windows, for all standard windows?

View 3 Replies

Winforms : Where Is Default Constructor Of A Windows Form

Jan 1, 2011

where can I find the default constructor of a windows form? I mean:

Public Sub New()

End Sub

I should say that I Use Visual Studio 2008 as my editor.

View 3 Replies

Calling A Method From .dll Globally In C# Application

Aug 26, 2009

I am using a .dll called Kiosk in my application which is resonsible for disabling some keyboard keys. I am doing like this... using Kiosk; public static Kiosk.Kiosk KIOSK = new Kiosk.Kiosk();

[Code]...

View 2 Replies

Change The Default Endpoint Device In Vista And Windows 7?

Feb 18, 2011

I am working in visual studio 2010, framework 3.0.I want to enumerate the Audio Recording devices on Vista and Windows 7 PCs. With the help of Core Audio APIs, this is completed successfully. Now I want to change the default state of devices and also I want to set the state of Disabled device to Enable. In Core Audio APIs, it is not possible. So can I use the Registry to Enable the device or change any device to DEFAULT?On changing the default device from SOUND dialog, windows makes some changes of Binary values in registry Role:0, Role:1,ole:2under HKLMSoftwareMicrosoftWindowsCurrentVersionMMDevicesAudioCapture {GUID}.

View 1 Replies

Find Default Temporary Folder In Windows Xp , Vista And 7?

Oct 13, 2011

how do you find the default temporary folder in windows xp, vista and windows 7?

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved