Form A Compobox Which Listed Agents Name?
Mar 24, 2010
i have in my form a compobox which listed agents name, and when I choose one of them the datagridviw shows the products that agent provide to my company.
in first selection is going without any massage, but in second selection the compiler gives me this massage:Object Reference not set to an instance of an object
[Code]...
View 3 Replies
ADVERTISEMENT
Dec 30, 2008
I have an assignment where I have to design an information retrevial system for estate agents. I have to be able to view the houses for sale, and delete them when there sold. I am new to vb script: Opens the Policy Details file and reads in the
'== records into the arrays (parameters) which are
'== passed back to the calling routine for
'== processing.
'== N.B. Use Sub SavePolicyDetails(...) to write
'==the data back to the file.
[Code] .....
View 2 Replies
Feb 21, 2012
Anyone here has an idea where I can get the ports name listed in my PC? [code]I could get COM26 and etc. if any, but that's not what I want. Instead of retrieving COM26, I want USB-SERIAL CH340 or USB-SERIAL CH340 (COM26). How could I do that?
View 3 Replies
Jan 21, 2011
I want to display a transparent image.where is the imagebox control?all i find in the toolbox is "imagelist"..do i need to downlad any thing from microsoft. BTW i am using Visual Basic 2010 express edition
View 3 Replies
Aug 4, 2009
After some digging around both here and the www in general I have plucked the following code to allow me to install a non listed printer driver to my XP machine. Problem is I am unable to get it to function properly.
The first section of the code creates the port every single time with out fail on any machine that I have tried but doesn't seem to function with the addition of the drivers.
I am trying to install HP driver that have been downloaded for HP site (extracted into C:emp1hp3035 ). I am also trying the same with a HP 4730 printer but neither work. I know i'm over looking something but what??
from most of the sites I need both the .ink and the .dll references but the HP .exe when extracted give a scatter of .cab files. I have tried to extract the EN one and use the dll from there still no joy (this it the .dll reference below.)[code]...
View 5 Replies
Dec 31, 2010
I am attempting to open a cmd.exe process with the 8 arguments listed At this point all this does is open a command window in the correct directory
Microsoft Windows [Version 6.1.7600]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.
F:Python26>
What I want to send to the command window is:
F:Python26> python.exe globalmaptiles_modified.py 17 32.123365 -95.938098 32.266846 -95.789143 F:Python26process_test.txt
[Code].....
I have even tried this with a design Process from the toolbar and set the File, working directory and start info arguments and I get the exact same results. I am not understanding the Argments function or I am doing something wrong and not sending them correctly.
View 2 Replies
Aug 30, 2009
When I run my VB application (as far as I know any application) within Visual Studio I get a bunch of exceptions listed in the Immediate Window. They seem to refer to system files, not the files I generate. They also keep generating as the program processes data. Here is a sample.
Quote:
A first chance exception of type 'System.ArgumentOutOfRangeException' occurred in mscorlib.dll
A first chance exception of type 'System.ArgumentException' occurred in Microsoft.VisualBasic.dll
[Code].....
Any thoughts as to what this is and whether it is a problem. The applications seem to run fine.
View 2 Replies
Sep 7, 2009
I managed to create an application that is listed in the 'open with' list only in debug version. Means, when I right click on a file extension and select "open with..." I get the 'choose program' dialog and can browse for my app, nothing impressive. The weird part is, that when I enter the path to the debug version of my program is works, and when doing the same to the release version my app is not even listed, it is simply not shown...
Does anybody know what it needs to make a simple VB.net app be listed here, any fancy debug/release setting?
View 4 Replies
Mar 14, 2011
how to copy files listed in a listbox to a new specified directory?my code isn't showing any errors but doesn't work..
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
Try
Dim path As String = "c:krishna folderwallpaper files"
Dim di As DirectoryInfo = Directory.CreateDirectory(path)
[code]....
View 4 Replies
Jun 15, 2011
i have programmed a program that send emails but it sent each time one email to one personnow i have a CheckedListBox1 filled with all my contacts emails
View 9 Replies
Jun 2, 2009
I am trying to view PNG files listed in an ACCESS file, the PNG files are on the same path as the application. Including the following syntax: /intro.png in the table is not working.
View 12 Replies
Nov 8, 2011
Can i select multiple items in a Checked list Box? I have been tryng for soemtime now but I just dont seem to get the multipe selectd items even when I put it in a loop! Listbox has the member of being Selected. A checklistBox doesn't why? I need to select mulitple items in a CheckedListBox and save it in a database.
View 2 Replies
Sep 1, 2009
I've tried the following code but it doesn't delete and no error message received.
Private Sub btnDelete_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnDelete.Click
Dim Station As String = ""
For Each sItem As ListViewItem In lvList.SelectedItems
[code]....
View 1 Replies
Sep 3, 2010
I am working on a Windows Service application in VB.net 2008. The main objective of the application is to monitor starting and stopping of applications listed in a file. I build the service as system level by using
mManagementStartWatcher = New ManagementEventWatcher("Select * From Win32_ProcessStartTrace")
AddHandler mManagementStartWatcher.EventArrived, AddressOf
[code].....
View 2 Replies
Aug 2, 2010
I have defined a class with multiple constructors so that the underlying interfaces are immutable once the object is instantiated. I would like one of the constructors to be the "default" constructor for when a user types the following in Visual Studio:
var obj = new MyClass( Dim obj As New MyClass(
Currently when I go to instantiate the object, the constructors aren't listed (in Visual Studio IntelliSense) in the order I declared them in my class. Is there a way to mark up my constructors so that their methods appear in a particular order during instantiation in Visual Studio IntelliSense?
View 4 Replies
Feb 25, 2010
I have a UserControl with a property called "Type". This can have any combination of three values, say
View 1 Replies
Mar 12, 2012
In .NET development and don't really know what to use to do some specific actions. I'm also a newbie in AJAX/JavaScript development. I'm using the mvc3.
I'll have to implement a few things :
-rating systems with 5 stars
-classification of items that are listed inside a table. (e.g. : I want all the people that are older than 20)
-searching inside the whole database (e.g. : I want everything that contains the word "tennis", so, it should give me a table with all the people tha play tennis, than a table with the clubs were people play tennis,...).
-a kind of intellisense (e.g. I add a new person inside the database, and for the field "club", I just want to write the first lettes of the club, and then, I would just have to click on the club to fullfil the field).
I've found plenty of websites that give me a library with some of the things that I need. But, I don't know which one I should choose.
I do need something that is as simple as possible, with examples for razor (I'm using VB.net, but it doesn't matter if it's in c#). If possible, having nothing to install could be great (I know that the Jquery scripts that are installed by default are already great).
View 1 Replies
Apr 11, 2009
in terms of code how would i go about getting a single word listed in a listbox to a appear in a rich text box on a single button click?
View 23 Replies
Nov 5, 2010
I just started using VS 2010. This product is supposed to be so much better than VS 2008 yet I'm noticing a couple of glaring things that are failures if you ask me.
1. When designing a Gridview, after having clicked on Edit Columns, in VS 2008 I could select the first field listed on the left side of the window, set a property--say headStyle-- and set the Horizontal Align to Left. Then if I clicked on the next field, that same property would still be selected on the right side of the window. In VS 2010, I have to go through finding the property and then expanding it and selecting it for each individual field. While it seems like a small thing, it's time consuming and kind of a pain. Is there some reason they couldn't have made it behave the same as in VS 2008?
[Code]...
View 2 Replies
Jul 6, 2010
Our company is developing software projects that use a users windows username/password for program authentication. Our programs encrypt the username /password, send them to a web service. The web service decrypts the username/password and authenticates the user against our LDAP using the System.DirectoryServices namespace. This works well. There are two methods, one that validates the user and passes back the user's LDAP info in a datatable, the other passes back a boolean that indicates the user is on the domain. This is working just fine. Over the 4th of July weekend, our domain server hung. While it slowed down the login process for windows while it re-routed to a secondary domain server across the country, all our programs could not validate the users because our local domain controller was down.So I have been asked to update the web services to include a list of domain controllers that can be used if the local one is not available. Below is a snippet of code I use to validate a user:
[code]...
The getinfo function uses the directory services to create an LDAP entry, then do a search based on the account name (windows username) and populates properties for common LDAP information. How can I extend this function, or re-write it, to run down a list of domain controllers found on the network to validate a username? I was thinking of putting the domain in a database, but that requires administration as they change. Is there a way to cycle through the local domain controllers listed on the machine?
View 1 Replies
Jul 23, 2009
Why is "Pointer" listed under every category in the VS Toolbox?
View 15 Replies
Nov 2, 2009
My DataGridView sorts by date. For grins I entered the date 11-02-2010 fully expecting it to be at the bottom of the list, not listed right after the last 11-02-2009 row and before the first 11-03-2009 row.How do I handle this so that come January 1, I won't see all the 01-01-2009 rows listed first followed by the 01-01-2010 rows then the 01-02-2009 rows, etc?
[code]...
View 6 Replies
Jun 4, 2009
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).
View 4 Replies
Aug 26, 2011
Im Using VB 2008. I have MsgBox() statements in all Mouse & Form Click events to TEST & NOTHING FIRES during Form Load when I click on Form or Button Controls !!! The Form Load event contains code for Displaying the Label.Text control many times with changes in the Text to simmulate annimation.
[Code]...
View 7 Replies
Dec 23, 2008
The following code does create a form within a form and does place NotePad inside the child form. You have to manually start NotePad prior to execution (I work on that later) but the code does workŠ My problem is now I want to manipulate the properties of notepad i.e. focus, size, location, etc. but I cannot figure out how to reference notepad and its properties.
[Code]...
View 8 Replies
Jun 12, 2009
get a button on form A to open form B and then close (not hide) form A when clicked?Background: I am coding a VSTO application for Excel in VB2008.
Private Sub FormAButton_Click(ByVal sender As System.Object, _
ByVal e As System.EventArgs) Handles FormAButton.Click
Dim FormB As New FormB
[code]....
View 1 Replies
Mar 28, 2011
I have a form being called form several forms using ShowDialog().
1. Is there a way for called form to know which form called it by receiving a code or key from the calling form?
2. The calling form has a gridview. How can the called form pick up a column's value from the currently highlighted row in gridview in the calling form?
View 4 Replies
Aug 5, 2010
i have my main child form open. then i show the new form:
[Code]...
but when the form opens it flickers a lot. so i want move the new form behind the main form while it loads so the user does not see the flicker. once it is done loading i will set the form to topmost. how do i move the new form behind the main form?
View 12 Replies
Nov 20, 2009
I have a tool window that I want to stay above the main application form, but not stay on top of all windows forms. Similar to the floating properties window for visual studio - it always stays on top of the main VS window, but if I select another program, like internet explorer, the floating properties window will be behind internet explorer.
What I have is an application that has several forms that may be displayed at the same time. I have a Messages form that displays messages generated by the code in the form, that gives the status of the application. Obviously, the user would not normally be working on this form, but they may want it to be visible to see the status messages from the program (File saved confirmations, etc). So, my two options right now are I can set the form to be on top of all other windows forms or, when the user clicks on the main application form, the messages form would be hidden by the main form.
View 6 Replies
Apr 9, 2010
I designed a class contains a form that have buttons. When i click any button this function runs
Public Sub BtnClick(ByVal sender As Object, ByVal e As EventArgs)
result = CType(sender, Button).Text
[CODE]...
In another project I imported this class. I called the method that shows the form in my class. I need to store the 'result' variable in another variable in the new project. How can It be done.
View 1 Replies