Loosely Couple A Process To A User Interface For VBA And / Or .Net?
Sep 22, 2011
In fact, the process is being written into a library to be pulled in from other applications. However, how do I provide a way for a WinForm to subscribe to the process to update as the process gets executed? I've open this question from both VBA/VB6 and .Net because its part of the gamut for UI development.It's also worth mentioning that these are subroutines and not classes that are running the methods, so event raising appears to be out of the question.[code]
I'm just trying to figure VB out from a couple tutorials. I thought I was doing this right, but apparently not. Can anone tell me what it is?Public Class Form1 Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Dim g As Graphics = Me.CreateGraphics() g.DrawLine(Pens.Black, 0, 0, 50, 50) End Sub End Class
I am a sys admin for a company and our programmer left several months ago. a program they wrote is now failing and i am struggling to work out why. the program basically pulls data from a csv file into a readable form, written in visual basic. the application works on a couple of machines but not on a couple of others. i have matched up .Net framework versions, MS Primary Interop Assembly versions, still no joy. As the app works on some pc's i am wondering what other differences could cause this?
The error output is:
see the end of this message for details on invoking just-in-time (JIT) debugging instead of this dialog box.
Exception Text
CODE:
JIT Debugging
To enable just-in-time (JIT) debugging, the .config file for this application or computer (machine.config) must have the jitDebugging value set in the system.windows.forms section. The application must also be compiled with debugging enabled.
For example:
CODE:
When JIT debugging is enabled, any unhandled exception will be sent to the JIT debugger registered on the computer rather than be handled by this dialog box.
I have written a windows service that is meant to launch a notepad when a specific action happens. The problem i have is that even though the service launches notepad, the actual notepad it self is NOT visible. I know that it has been launced because i can see the process in the task manager. By the way the process is listed as a SYSTEM process rather than a process under my user name (i believe that is because my process is a "LocalSystem" one).
I want to do is make a notification system, kind of like aim were a new little box will show up to alert the user of a couple different things.
This is how far i have gotten :
Dim popups As ArrayList
Public Sub newEvent(ByVal title As String, ByVal description As String) popups.Add(New Form())
[CODE].........
I use an arraylist because i dont know how many messages will come around the same time, but i could switch to an array if i must. this is the form that i made as kind of a template :
[CODE]..........
Its just got a couple text boxes for now. how can i make these new forms every time i have a new message to display and the clean up after them when they are done.
I'm working on a design project where I have to use a Graphical User Interface that contains a drag and drop form. It consists of having a window dropped on a wall. Both of them are images to scale. I would like to know what kind of code I would have to use to show the x and y coordinates of one of the points of my window when dragged so when I drop it, I'm dropping in it on the desired coordinate of the wall.
The idea is to scan a folder of images and then let the user navigate back and forth through the images using a couple of buttons.The problem is, I can only get it to return a single image, and not the whole lot. It's looks to me as though the images are getting assigned to the same index in the array. [code]
I thought I postet this yesterday but I can't find my thread so if this is a duplicate please point me at the original one. Background: I need to create a user account and Modify it's registry before the user logs on the first time. Creating the account is done by using the Winnt provider (works great). To create the profile I'm trying to use Process.start to launch a process as the newly created user. With the use of loaduserprofile property the users profile gets created and i can do my regwrites without problem.
I'm trying to get a process (wmplayer) started with a maximised main window. I've tried:
Dim VidPROC As System.Diagnostics.Process Dim startInfo As New ProcessStartInfo("wmplayer", "C:MyVideo.mpg") startInfo.WindowStyle = ProcessWindowStyle.Maximized VidPROC = Process.Start(startInfo)
but the process starts with a standard, small empty mplayer window, NOT maximised. (If I change .Maximised to .Hidden it starts hidden, but seems to ignore it when set to .Maximised).
I'm in the process of developing an application to keep track of employee's shifts. the top of the grid should display the days, the left side the employee name. The grid will display the type of shift (N for night, D for day) I just need some direction as to how to develop the calendar grid...I have a database with all the required information (I have a "Shifts" table, which contains the employee name, the date of shift, and the type of shift). Times are not relevant since employees will be either working a night or day shift (type of shift). I'm using VB9 for this project.
I have an interface class (IUser) which is the interface of class User. Now, i want to put these into an IList but am confused as to how i should declare the IList:Dim userList As IList(Of IUser) = New List(Of IUser) Dim userList As IList(Of User) = New List(Of User) Dim userList As IList(Of IUser) = New List(Of User) Dim userList As IList(Of User) = New List(Of IUser) when instantiating should you always use its implementation; and when using it as a type use its interface?
And when im creating a new user should i use: Dim myUser as IUser = new User?
I'm learning how to use visual basic and come from a background in Java. In Java I use the swing class to build my interface and code all of it. Is there a way to do this with visual basic, or is the designer the only way to create an interface?
I want input from user and when he click on view report button report should come in report viewer. May be my design is not good but my aspect is to design a user interface so that user should able to pass parameter in all the ways and get desired report.
Drop downlist Radio Button Check box and other countrols Gaurav
I'm making a VB.net program via a text file and I'm compiling it using vbc.exe via command line. I'm trying to get just a simple program to run in the background of my computer. Problem is, it displays the annoying console window. How do I get nothing to show? No form, no console?
How can I customize the user interface in Visual Basic .NET and is there stuff you cant do in Vb.net that you can in higherj level languages usch as Java and C and C++?
i want the user interface to be kinda similar to the jQuery UI. This means themed buttons and windows(preferabely the ones form jQuery UI) Also, i'm looking for nice sliding and morphing windows.
I am using Visual Basic 2005 for an Operator Interface in an industrial setting. Where should I be looking to help make my Operator Interface even more eye pleasing and practical?
i have few questions about the user interface when working with a VS setup project
1. i have added a Checkboxes dialog, i have 3 checkboxes they are used to select upon 3 tools to be installed, so during the progress of the instilation, how should i let the project know which of the 3 tools was selected ? (i hope i was clear)
2. a bit of silly question - is it possible to edit something in a dialog ? like in my case in the "finished" dialog my customer didnt like the the end button is named "close" and he wants it to be named "Finish"
finally, this is an extra non programing but it would be good if i was able to find an answere :P, when i plug a USB in the computer it opens the autoplay, and i have my instilation file in the USB (it will be distributed on a USB rather than a CD), so i want to add to the autoplay a button that runs the instilation file
I'm writing a program in which I'll receive data using serial port using Comport.DataReceived event which I've written in seperate class. Once I receive data from my comport I need to display that data in my listbox in the form. What is the best way to do this?? I don have much knowledge on using delegates. An
I would like to make an application where there is no form, only controls, this way theuser can see what they are doing on top of their work. How could I for instance put a textbox on the screen, just like form1, but without it being a parent of form1, almost as if it was form1. Basically form1 is hidden.
I have a generic question regarding file paths and user interfaces. I am trying to build a user-interface to accommodate various file locations. I typically build interfaces which deal with files on drives. As such, I use a directory tree for this. I usually work with files on local drives. However if I wanted to ensure that all file locations were dealt with I would want to ensure that I was accommodating files in all drives (local, network, mappped etc.). I am assuming that the treeview would support all of these drive option.
However if the files are on a sharepoint site or in some other type of enterprise content system, then am I correct to assume that these file paths will be URLs? If so, then am I correct to assume that a directory tree is not the correct control to use for these locations? Should I be providing a textbox to the user and prompting them to enter this URL? Or is it better to have the URL loaded into a ListView or ListBox (i.e. "My Connections") and then provide these as options via a dropdown box. I am trying to picture a typical user interface. Is it a directory tree AND a text box/dropdown box.
Basically the question is, Why are NONE of the changes I've been making in the designer reflecting on the program when it runs ?'none' is in bold because I've tried moving everything around and nothing seems to be affecting it, it's like it's reading from a different design file, I tried reloading the project and that did nothing, and none of my code affects position of any items on the form (way too much to post it all)
I am designing a database using access 2010 and I ve been asked to design the user interface with Visual basic.I actually have designed tables and their relationship and did some queries according to the requirements. how do I create user interface in VB from this point knowing I don't have any form and report designed in access?
I have to develop a software able to perform some scientific calculations in the field mechanical engineer; to be more precise, this software must be able to predict the torsional vibration behaviour of crankhsfts and drive-trains.To build my model I need a library of pre-configured elements (organised in a toolbox), that I can drag&drop in my working area and then link together properly to build the model itself.Also the load cases and the input data should be organised in a toolbox as pre-configured elements that I can chose and fill-in accordingly.Here my questions:
1. how can I develop such a toolbox?
2. how can I develop my working area?
Many commercial software are organised like that but I have no idea how to do it.
I'm having problems with coding in VB 2010 Express. One of the many errors I am dealing with is the user interface form. It says it's a component, so I have to use it in a form.