Created An Application Where From The Starting Class A Modless Dialog Box Is Called?

Jun 4, 2009

I have created an application where from the starting class a modless dialog box is called. Once the dialog box is called then the program will close instead of waiting on the dialog box to call the appropriate functions.

A couple of notes: This was originally written in VB 2005, and I was successful by manipulating the automatically generated code for the starting and clean up for the class. I cannot find this section of code in my VB 2008 project.

I cannot start the program from inside the dialog box, since there are multiple dialog boxes and which one starts depends on what is currently running on the computer.

The program will run with a modal dialog box, but it does not function properly, so I must use modless.

Please help me to prevent the application from closing when it reaches the end of the code in the main subroutine. I want to have a function to explicitly close the application.

View 4 Replies


ADVERTISEMENT

Service Created In VB Not Starting

Aug 24, 2010

We have service developed in Visul Basic .NET. This service utilizes some COM objects provided by SAP to access SAP database. This has been working fine till yesterday. On this Sunday, we upgraded the SAP system, and subsequently all other programs were also re-builded using the new DLL files (for the COM object). We tried doing the same for the service also. But it is not starting now. When started, it shows a message saying service terminated unexpectedly. This is probably due to the fact that it is not able to load the requisite DLL file.

View 1 Replies

Avoiding Print Dialog When Printdialog() Called For .rdlc?

Mar 4, 2011

I am using Printdialog() to get my report printed (.rdlc)I want to avoid this dialogue and send the report directly to the printer without user interference.

View 1 Replies

Invoke Or BeginInvoke Cannot Be Called On A Control Until The Window Handle Has Been Created?

Mar 5, 2009

i AM TRYING TO USE A THREAD TO UPDATE SOME CONTROL during runtime using invoke and i get this message.here is my scenario:im trying to build a performance monitor tooli have a mainform that is MDI parent and i create mdi child using

[Code]...

View 4 Replies

Application :: Display A Message To The User Whilst The Application Is Starting Up?

Nov 4, 2010

I have recently created an application where a lot of data is loaded into objects when the application starts up, and other data as it is required. For example if the user requests the catalogue page then it will load all the top level category data into objects of type Category. This will then stay there to be used by other users (who will therefore not have to load this data into objects) and can be altered by admin if they happen to login during the same application instance. I know this is not the most efficient solution, as pointed out below, but it works and the page load, at the moment, is not too long. It is very quick if most of the required data is already loaded into objects. It is also tailored to the business' needs - unlike other techniques such as Linq-to-SQL.

View 1 Replies

VS 2010 Retrieve Currently Active Application Window From Another Application Just Starting Up

May 26, 2011

I am in need of a small application, that will allways be topmost and will send keystrokes to the last active application (typically notepad or an explorer window). My problem is retrieving the current active form (or application), when my application is started up. Every search seems to return old and rather complex solutions using Win32 library functions, but I was kinda hoping, that .Net allowed for a neater and more simple solution.I need a code example or link on how to retrieve the currently active application window from another application just starting up.

View 2 Replies

Starting An Executable From An Installer Class

Dec 20, 2010

I have added an installer calss in one of my projects that is used to start the aplication (when the setup project is run). To do this I use the commited event of the class and then I use Process.start("...MyApp.exe").This works fine and starts the application however, on Windows Vista the process that gets started is running as a system user rather than the logged in (desktop) user. This is causing me all sorts of problems when it comes to using "User special folders" as they are returned as empty strings since the user is the system.Does anyone know how I can start the application as the current user?

View 4 Replies

VS 2010 Created New Class And Require Text-box Field Within A Sub In New Class

May 9, 2012

can someone please help me with a textbox? I have created a new class and require this textbox field within a sub in the new class but i get Error1 'TextBox1' is not declared. It may be inaccessible due to its protection level.I have tried MyClass.TextBox1 = Form1.TextBox1 but I get declaration expected.

View 23 Replies

Declaring A Object - Instance Of An Object To Be Created When A Form Loads Or Another Class Is Created

Oct 5, 2009

If you want a instance of an object to be created when a form loads or another class is created, you have two options:

Public class example

private IAmAObject As IAmAObject

public sub new()

[CODE]...

Or like this:

public class example

private IAmAObject as new IAmAObject

public sub new()

[CODE]...

I always use the first one. It's more type work but I think it's neater. How about you people and is there any real difference between the two?

View 4 Replies

[02/03] Base Class Called PageBase And Then A Derived Class TestPage That Inherits From PageBase

Feb 4, 2009

I have a base class called PageBase and then a derived class TestPage that inherits from PageBase. In PageBase I have overridden the OnInit() and when it is called and I inspect the value of 'Me', it is of the type of the derived class and not the base class. My question is how does inheritance really work? For instance, when instantiating TestPage does an instance of PageBase get created too?

Here is my code;

Partial Public Class TestPage
Inherits PageBase

Public Sub New()

[code]...

View 7 Replies

Class Diagram - Called Control Fields Not Object In The Class Diagram ?

Nov 11, 2011

if I put controls on form1 like button,textbox....etcwhy called this control fields not object in the class diagram ?

View 7 Replies

Could Instance Also Be Called As State Of Class?

Aug 22, 2010

When we create an instance of a class we also provide its state so are these both same and if not same what's the difference? And also what's the difference when we use equals method for instance or for state?

View 3 Replies

Pass A Function To A Class To Be Called Later?

Dec 11, 2010

Okay so what im trying to do is make a simple particle system in VB (Yes i know this isnt a ideal setup). Im going to have particles dieing and spawning new ones tho, To do this i need to be able to pass a function to the particle when its created then call that function when it dies. Is there a way to do this by passing function pointers?

View 9 Replies

Use A DLL That Has A Public Class Called FileCleanUp

Mar 8, 2011

I am trying to use a DLL that has a public class called FileCleanUp..Inside this class is a procedure called ProcessFiles as shown [code] In VB.Net how do I access the ProcessFiles events so I can inform the user on progress etc from my VB.net application that calls this DLL.By using Reflector have found that the DLL uses the Background Worker if this is of help.

View 1 Replies

Class Called Appmgr Which Runs At Startup Of App?

May 12, 2011

This is code i have in a class called appmgr which runs at startup of app

[Code]...

View 2 Replies

Dispose Method - Why Class Destructor Not Being Called

Jun 22, 2011

I have a class that has a destructor and a Dispose method (I also inherit IDisposable). Why is it that the only time my destructor gets called is when I call GC.Collect()?

View 2 Replies

Method To Be Called In Child Class Constructor

Nov 11, 2009

How do I force the Visual Studio compiler to generate an error when a required method is not being called in the constructor of a child class? Like when you edit the form designer code, the compiler complains when InitializeComponent()isn't the first call in the constructor of a form. Is this even possible in VB.NET?

View 2 Replies

Programatically Retrieve The Class That Called A Method?

Sep 11, 2010

I'm wondering if there's a way to programatically reference the class that called a method in another class. Let me give you an example:

Public Class OriginalClass
Private Sub Main()
Log.PgInit()

[Code]....

View 1 Replies

Rising Events From Class Library Called From Module

Jan 26, 2010

I've an app that starts to work from a module wich should load a form an do other things with a class library who raise an event an the form shoud cath it.The problem is that applicarion.run(frmMain) displays the form in the same thread the the code stops work while the form is open. And I need that the app works in this way because the user need to send files to the app using args and this avoid that the app init another instance of it (in other code) and update the form with the info when the event is raised.[code]

View 9 Replies

Deployment :: Starting One Application From Within Another?

Feb 17, 2010

Basically I've written two Apps (A and B) and all I want to do is put a link on the menu of App A which when clicked will fire-up App B.

Normally what I'd do is something along the lines of...

Shell("C:PathAppName.exe")

However, both of my apps are installed on the target machines via a Setup-Kit generated by the Publish Wizard in VB.NET. As far as I know, after you've run the Setup you don't get an EXE file for the actual application - you just get an 'Application Reference' on the Start Menu and/or Desktop.

My problem is that I don't really understand what the Application Reference is and how my application is actually deployed onto the target machine after setup has finished...

Given that I don't seem to have an EXE file after running Setup, I need another way of telling App A to fire App B, because I'm guessing I can't use my Shell command anymore?

View 2 Replies

Error When Starting My Application

Oct 20, 2010

Unhandled exception has occured in you application. if you click continue, the application will ignore this error attempt to continue. if you click Quit, the application will close immediately Access to path "C:Program FilesRipplEsoftwareMy Product[code]...

View 3 Replies

Starting The Application To Send Sms?

Aug 17, 2009

I have this application to send sms but the reason is that when i start to click on the send button, it does not send. but when I start the application again to send sms by clicking on the send button, it is sending. when i send again using a different number, it cannot send.

View 6 Replies

InvokeRequired Returns False When UpdateLabel Function Is Called From A Different Class?

May 10, 2012

I am working with tasks, so I've got the following code to update a label on my form:

Private Delegate Sub UpdateLabelDelegate(ByVal s As String)
Public Sub UpdateLabel(ByVal s As String)
If Me.InvokeRequired Then

Me.BeginInvoke(New UpdateLabelDelegate(AddressOf UpdateLabel), New Object() {s})
Return

View 2 Replies

VS 2008 Rising Events From Class Library Called From Module

Jan 26, 2010

I've an app that starts to work from a module wich should load a form an do other things with a class library who raise an event an the form shoud cath it. The problem is that applicarion.run(frmMain) displays the form in the same thread the the code stops work while the form is open. And I need that the app works in this way because the user need to send files to the app using args and this avoid that the app init another instance of it (in other code) and update the form with the info when the event is raised.

[Code]....

View 5 Replies

Starting Another Windows Application In The Same Solution?

Feb 10, 2012

I have two windows applications in the same solution, in different projects. How do I start one from the other? Is it a matter of supplying the expected build path .exe to somewhere, or is there an alternative?

View 1 Replies

Starting Application At Windows Start

Jun 26, 2008

I've made a windows service for the purpose of creating backup's of certain files and directories automatically each day. The service is installed as automatic (so it starts after win startup) and i have an application which monitors the service through a system tray icon (so right-click on it you can start/stop/pause the service, change settings, etc).

[Code]...

View 10 Replies

VS 2008 Starting An Application After Installation

Dec 16, 2010

I have created a setup project that after the installation, starts the app that is being installed. To do that I have added an Installer class to the app I want to get started and I am using it's commited event to start the app (Process.Start("...myapp.exe").

While this works fine on XP, on Windows Vista the application gets started as a "System" user which makes some parts of the app missbehave i.e. retreiving special folders of the user etc...

This is the question: way to start myapp as the logged in user? Mind you I will not have the credentials of the users.

View 2 Replies

IDE :: Modify A Database Class Called TermsDB To Implement The TermsService Interface?

Nov 22, 2010

I created an interface - TermsService.vb and defined the following method : Function GetTermsList() As List (Of Terms)

how do I modify my TermsDB class to implement the TermsService interface I've just created? Here is my code: Have I implemented it correctly?

Imports System.Data.SqlClient
Friend Class TermsDB
Implements TermsService

[Code].....

View 1 Replies

VS 2008 Custom Class Called CustomItem That Holds Name And 'SomeProperty' Properties

Apr 22, 2009

Let's say I have a custom class called CustomItem that holds the Name and 'SomeProperty' properties:[code]Now, on the click of a Button, I want to select the CustomItem whose SomeProperty is equal to "Property 4". Of course, this is just "Item 4", but the names and properties are not that correlated in the real application than they are in this example.I have spent ages a long time ago figuring out how to do this. I could not directly set the SelectedItem, because I first need to get the CustomItem that actually matches my condition (SomeProperty = "Property 4"). My solution was to use a loop, looping through each item in the ListBox, and setting the SelectedItem when the right property has been found.[code]Now, is this the correct way to approach this problem? Is the LINQ query correct, or can it be done easier, without the casting? Also, is the LINQ query faster than the For loop, especially for a large amount of items? I expect it to be, but I don't know how to test this.

View 4 Replies

Win32 Exception When Starting A Process From An Application?

Dec 9, 2009

I have an application that starts one of two external CAD applications depending upon the extension of a file in a ListView. I have been able to start up the application to view the file selected without a problem. I also have a seperate print click event for printing the file that opens the viewer application in the background and prints the file. This works perfectly for one of the CAD viewers but when I select a file that requires the other viewer application to print I get a Win32 exception and an error message stating that the file is not associated with any application and it cannot be opened. This of course is rediculous as it opens fine in the "View File" click event that opens the viewer to check the drawing.

One rather strange observation is that the CAD viewer that does print the associated file will launch the other CAD viewer application (that is associated with the other file extensions) when the "View" click event is handled even though I had not incuded the code to execute the process to start the viewer for that type of file. I realize this rather convoluted and may lie in the ProcessStartInfo arguments that I pass to the application.

Here's a code snippet:

Private Sub PrintFinGoods_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles PrintFinGoods.Click
Dim message As String = "No application is associated with file"
Dim source_exception As New Exception

[code]....

View 1 Replies







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