VS 2008 Discover A Window Class Name
Jun 21, 2009how can i Discover a Window Class Name ?
View 3 Replieshow can i Discover a Window Class Name ?
View 3 RepliesI am developing a system where multiple client apps are going to communicate with a server app. I will probably use TCPIP classes to facilitate the communication.
However, is there a way that a client install can automatically discover the location of the server software on another machine?
I have VSTO Excel addins (.net 3.5) and need to know when the Excel wookbook is being opened in a Browser rather than the Excel client. I haven't figured out a way to do this nor found a solution online and I suspect I am just not using the right seach words. Does anyone know how to do this?
View 2 RepliesI'm making a little application in visual studio which loads a ROM in an emulator. I have two emulators and 20 ROMs.I made a form and added a few buttons. When you click the Button it opens a new form and closes the old one. Then on the new form I have four buttons: each one loads a different ROM in an emulator. So when you press Button1 this code is triggered:
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles yellow.Click
Shell("C:UsersshiftyDesktoppokemon gamesEmulatorVBAVisualBoyAdvance.exe ""C:UsersshiftyDesktoppokemon gamesRomsYellowPokemon Yellow.gb""", vbNormalFocus)
End Sub
It works fine - I click it and it loads the game in the emulator. The bit im having trouble with is the file paths. If I send this application to a friend, it would still look for "C:UsersshiftyDesktop" - but that's on my computer, not his.Is there a way to make the application look for the file on his computer (without changing the file path to (C:Users""his user name""Desktop))
I am trying to make a program that is able to find out where it has been saved on the computer, and take that directory and save the output of the program, which is a text file, to the same folder that it is in.
I have already made it so that I can type in the directory in my code, but i want it to be more adaptable.
When I run project splashscreen is popup and then Logon window is run. But unfortunately when Logon window is run the splashscreen still open like maximized window and I cannot see Logon window. How to fix that problem?
View 1 RepliesI would like to create my own application that will simply discover the wireless networks in the area, similar to how the wireless card software works. I don't really know where to start, except with maybe the System.Net namespace.
View 2 RepliesI'm new in WPF and C#. I know a lot of VB.NET and I'm used to the way when I call a form object like textboxes, etc. I'm calling it from another form. Now, I'm using WPF, I'm confused. Because I have a Main Window. And I want to add and item to a listbox in the Main Window from a Class. In VB.Net , its just like this.
[Code]...
I created a modal dialog as a WPF window that changes some settings in the main window application. How can I refer to a member of the main window?
View 2 RepliesI have two forms that are called by the main form. One is named frmEdit, and is invoked by the ShowDialog (modal) method. The other is named frmSearch and is invoked by the Show (non modal) method. In both cases I want to preserve the last window position so each form (class) begins with Public Class frmEdit (or frmSearch):
Dim lastx as Integer = -1
Dim lasty as Integer = -1
in the Shown event handler for each form I have the code
If lastx >= 0 Then
Me.Left = lastx
Me.Top = lasty
End If
and in the FormClosing handler I do
lastx = Me.Left
lasty = Me.Top
What I don't understand is why the frmEdit (modal) form remembers its previous position but the frmSearch (non-modal) does not. frmSearch always invokes with lastx and lasty equal to -1.
I am writing a custom class file which I intend to use with a WPF application. How can I refer to a WPF window from the class file?
View 2 RepliesI'm trying to use one project as a reference for writing another project, and I want to see as much code as I can from that project on another monitor. Since Code is only so wide (assuming you break-lines), I have a lot of wasted horizontal space. Is there any way in the IDE to do a vertical split of a class code window? I know you can do a horizontal split, but although that shows you two sections of code at once, it doesn't increase the amount of code you see, because it sacrifices one code's space for another.
View 5 RepliesI am trying to create an list or an array of a class.Here is my "Ingredient" class that I am trying to create a list of:[code]In my "recipe" class, I am want to create a list (or array) and I am drawing a big blank on how to do it. Can anyone point me in the right direction?
View 2 RepliesI am searching for the Component Class. When I go to "Add New Item" ,in my project their is no Component Class Item in VS 2008. I would like to Drag and Drop control onto my new class and I can't see how to do this ?
View 6 RepliesI have a 'property management class' that contains several functions and properties. I have several other classes that use the 'management class' as a property to derive the value of several of its other properties.Is there a way for me to reference the outer class from the 'management class' functions without having to pass it as a parameter? I ask because several different classes can have this 'management class' as a property and am having a hard time typing the parameter.
View 7 Repliesi have a class call it clsFamily this class contains properties that make up a family object. This class works fine with no issues. Now i need a new class (called MyAccount) which contains 3 properties, an ID a user name and a clsFamily object. I have declared both classes as Friend from within my globals Module and define the clsFamily as family, however when i try to put this type within my 2nd class i get an error "Type 'family' is not defined" what am i doing wrong? i know i could get it to work fine by adding the ID and User Name properties to the clsFamily object but i need to define this as a new type of object as the ID and User name are not normally part of this class.
View 12 RepliesIf Class X is within the scope of Class Y, is X a subclass of Y?If Class A is a sub Class of B, then is Class B considered a super class of A?if Class C inherits Class D is Class D a superclass or parent of Class C?if Class E extends Class F then we can consider Class E a child of F?if Class G inherits Class H and is within the scope of Class I then who is the parent of Class G? Classes that inherits Class J and classes that are within Class J are all sub classes of Class J?
View 1 RepliesI have put this code in the global form Inherits System.Windows.Forms.Form. And then in the form that will inherit this from the global Inherits MenuStrip. "MenuStrip" is what the global form is called. But keep getting this error: Error1Base class 'MenuStrip' specified for class 'Lesson2' cannot be different from the base class 'System.Windows.Forms.Form' of one of its other partial types.
View 5 RepliesIm wounder how would I find the name for a window and place the name in a textbox, EX: The form will look for all the window name running an paste all the names in the textbox1, I looked on google theres only VB6 O.o, How would I do this?
View 3 RepliesI've been looking for the API to put a different window on top of everything and focus but I only found a vb6 version [URL].
View 3 RepliesIm using sendmessege to send key "h" to notepad, it works fine SendMessage(notepad, WM_CHAR, 104, 1)Im wanting to know how to get the hwnd of the top running program and send h to it.
View 1 RepliesI am not able to find the Exclude Command in VB 2010 Express. I have no idea which version of Visual Studio it is working with. I've got one 217MB VB 2010 Express file and many 2008 VB Express files with one of them measuring 31 MB. There many other SQL files and .Net Files.
View 4 RepliesI have a class (see below)
Imports Microsoft.VisualBasic
Imports System.Data.SqlClient
Public Class ClientProfile
#Region "Variables"
[CODE]...
It is in the file ClientProfile I have placed in both App_Code and also App_Code/Models
In my code behind I have the following
[CODE]...
The last word, "ClientProfile" has the scary squiggly red line below it. It is not recognizing my class.Even the Intellisense is not picking up te class. Do I have to register the class file in any way?
I have a 3rd party program that puts up a pop up box and asks the user for input. In Spy++ the original program (I'll refer to this as Window A from now on) is a top level window, and the popup (Window B) is also a parent window. However, when I use FindWindow(Nothing, "Captcha Challenge") it returns 0. I've also used a code snippet from the forums
[Code]....
I wan my other app window (not vb form) to appear on top of all other windows and give it top priority (with focus or without don't matter). And when I'm done working with it, take priority away and select another window. What commands should I use?
[Code]....
I have a simple piece of code that checkes if the connection to the database failed or not.
[Code]...
For Each MyProc As Process In Process.GetProcesses If MyProc.MainWindowTitle <> "" Then ListBox1.Items.Add(MyProc.MainWindowTitle) Next How can I get the Process name of the Window?
View 3 RepliesHow can I see if a specific window is in focus?
View 6 Repliesafter installing the program, I want to have a setup dialog (for configuring the app) to display (maybe on first run, or before, not sure yet) But this only needs to run once, so how would I do this?
View 3 RepliesI was wondering if it is possible in VB8 to create a GUI that over-lays over a full-screen application (IE, a movie full screen, games or something that takes over the entire screen)
What I want to know is it possible to be watching a movie and click a button and without minimizing or losing focus on the movie a GUI is displayed. This could be handy in many ways to me to create say.. a clock that I can display so I don't have to minimize etc. to check.
I don't want to interact with the GUI, just display it!