Managing Combo Box In Different Way?

Oct 12, 2011

In my programme, Student have to select 1 major subject out of 5 subjects and 1 subject for major2 subject our of 4 subjects. And student will have to select 1st major subject according to the preference and will have to select each 4 subjects for major 2 subject against each major 1 subject.as an example if student slect csc for major1 he can select 1st preferce stat , 2nd pref.. maths, 3rd pre.. managment. 4 th pre... eltn for 2nd mejor subject.so, if anyone select one subject for major 1 , I want to remove it from major 2 and display the rest of subject.

cmbBox2.Items.Add("CMIS")
cmbBox2.Items.Add("ELTN")
cmbBox2.Items.Add("IMGT")

[code]......

View 3 Replies


ADVERTISEMENT

.net - Managing .exe Files?

Sep 7, 2009

In VB.net, how can you programmatically launch a .exe file? Is there a way to check if the file is there?

I know there is some way to check using System.IO, but I have no idea. However, I have not even the slightest clue as to how to launch that .exe if it is there,

View 4 Replies

Managing To Get Ip Of A Server?

Jul 5, 2009

I would like to know how I can get a server ip.I have a textbox (textbox1), a label where the ip will be displayed, and a button that will get that information.this code is not related to this but it performs a simmilar action but instead in displays the ping of a given server:

Dim reply As System.Net.NetworkInformation.PingReply
Dim p As New System.Net.NetworkInformation.Ping
Try

[code]....

i want to use the same textbox to get ping and ip of a given website triggered by the same button.

View 5 Replies

Sql - Ado.net Managing Connections

Jun 6, 2010

I'm populating a listview with a list of databases on a selected SQL instance, then retrieving a value from each database (It's internal product version, column doesn't always exist) I'm calling the below function to populate the second column of the listview:

[Code]...

View 2 Replies

.net - Managing Event's EventHandlers?

Mar 21, 2011

I have a class that seems to be recursively adding an EventHandler to an event. I have looked at the code but there is no AddHandler on it and there's only one method with the Handles clause.In the memory profiler it shows that the event handler is calling the event handler that is calling the event handler and so on for a rather large number of steps.

View 1 Replies

Managing An FTP Server With VB Code?

Jun 21, 2010

I'm trying to manage an FTP server with code that requires authentication.So I need to log in, get a list of directories and files within a sub-directory, Create directory, Delete directory and Delete File. (I know how to download and upload) I can't find any documentation on how to do this...though I would think it a fairly simple question to answer I seek not answers, but understanding, that I may not solve, but learn. What good is a fish without the skill to catch it?

View 1 Replies

Managing Form Controls?

Nov 16, 2011

I have a form, 24 buttons on it...Thet name is button1, button2.... I created this.How can i change tabindex at run time?And how can i use this:?for i=0 to 23button(i).text=""

View 9 Replies

Managing Form's Code In .net?

Sep 24, 2011

Whats the best way to organize code responsible for Form's content.In my case, there is a DataGridView and list, next to it, with a few options available (projects, managers, employees, etc...). Choosing any list's element fills DataGrid with proper data from database.Now, GridFill functions + handling of all add/delete/edit buttons of each list element gives quite a code in the Form's source, which bothers me a bit. How to split it then to avoid problems in the future? While googling, I've seen some advices to use partial classes, modules or just classes. Moving all functions relating the Projects, Managers, ... , to own separate class sounds like a nice idea but then comes the question how to pass all necessary data to the class functions.

View 1 Replies

Managing Keys Of Keyboard?

Nov 27, 2010

I Want manage the keys state in my program(in vb 2010) but 'key press event' cant manage more than a key in a time.i want manage keys for commanding something.(for example if "CTRL AND AIT AND Shift And "A" and "S" was pressed do something)

View 2 Replies

Managing Multiple Forms?

Apr 15, 2010

I am a beginner programmer, and taking my first course in VB.NET in college. I am writing a program that teaches the user step by step to solve a rubiks cube. One problem I am having is how to manage the 20 forms that make up my program. Currently, when the user procedes to the next step, I make the current form invisible, and show the next form.

ex. Nextbutton click
form2.show()
me.visible = false

[code].....

View 6 Replies

Managing Multiple Subroutines?

Feb 25, 2009

have been writing code to replace an old Fortran program. The Fortran program had very organized subroutines which could be called from anywhere in the project. Most of these were relatively small and left a small, easily followed main routine. I'm converting over to VB.net and when I write the subroutines they are all on the same form. Wading through 50-100 subroutines on one form is going to be messy.

View 3 Replies

Managing Music With 2010?

Jul 28, 2011

After casually creating a program to manage media (music, films, photos etc.) I came across a lack of functions that could be solved be being able to identify the length/ genre/ album/ artist of the song in question. find these file attributes (using a database is out of the question due to lack of resources).I'm reading the song into a string array from the folder they are contained in with the code:

My.Computer.FileSystem.Getfiles(FolderPath).copyto(MusicArray,0)

View 11 Replies

Managing Root Certificates?

Jan 19, 2011

When I try to use the add/remove metho9ds for an x509 store on the root authority (code below) I get confirmation dialogs.Is there any way to avoid those dialogs??

View 1 Replies

Managing Several Projects In The Same Solution?

Feb 7, 2012

It's me again, trying to have multiple projects in the same solution. How can I do that?

I know that the project name should accompany whatever functions I'll be calling but somewhere it does not work.

One more thing, can I include forms in all the projects I create?

View 7 Replies

Managing Text Files?

Feb 9, 2010

An application I am developing creates a directory and text file within the directory. A button is then coded to add a text string to text file. An error is issued stating the file cannot be written to as the is open to another process. This suggests the file needs to be closed before it can be written to.

View 2 Replies

Managing WindowsMediaPlayer In A Form?

Jan 3, 2012

Managing WindowsMediaPlayer in a Form

View 3 Replies

.net - Managing Connection To Database In An Asp.net Application?

Mar 17, 2009

what would be the best way to manage a connection to a database in asp.net.My application is built using an N-Tier architecture.The DAL consists of static classes with methods such as

Public Shared Sub Delete( _
ByVal connection As MyConnectionClass, _
ByVal contact_id As Integer, _
ByVal contact_timestamp As Date _

[code]....

The point to note here, is that I pass the connection to the DAL from the BLL.Should I create the connections in the MasterPage, store it in an object, then pass it to my business objects as I create them (the thing I'm trying to avoid)Should I create a connection using a static class and calling a method like CreateConnection on it, from the constructor of my business objects (Something I'd like, but I don't want to have a connection per object, I'd like it to be shared for all instances of my objects, but since asp.net is multi-threaded, a static class doesn't make sense to store connections) the solution should also work well in a Windows Forms environment (So no connection storing in session, and retrieving it with a static method in a class, for the current context)?

View 1 Replies

Database - Creating And Managing *.db Files

May 26, 2012

I have seen a few .NET apps use .db files. I am not new to Visual Basic, however I have never created a VB app that uses databases. I do know PHP pretty well, and working with databases in PHP I am familiar with.

[Code]...

View 1 Replies

IDE :: Managing Dates Using Business Logic?

Feb 16, 2010

i am currently trying, to create some sort of a business logic within my class, that contains information about a machine, now this machine once sold, can be re-sold by its owner. the company needs to keep track of the machine and its owner for warranty claim purposes.the class takes in two values, a from date and a to date.now when a new owner is added to the owner collection of the machine, the TO date of the previous owner should automatically be updated to one day less than the From date of the new owner that is being added.

View 1 Replies

Managing Exception In Multithreaded Application?

Mar 20, 2009

I started throwing exceptions on a multithreaded application, and got a mess.There is a good tutorial on managing exceptions in multithreaded applications?

View 4 Replies

Managing Modal Forms Location

Oct 3, 2010

I've got a "Loading" form which I display as a modal form when doing lengthy processes. I'm using the below to keep the form centred within the child form performing the process. However, when minimisingmaximising the "Loading" form appears before the parent making it look a little unprofessional. Anything I can do about that (Delay it appearing or attaching it in a different way)?

[Code]...

View 1 Replies

Managing Resources Via Compilation Flags?

Feb 3, 2010

Now days it is done in Resources.Designer.vb we have there following lines:

Friend ReadOnly Property ResourceManager() As Global.System.Resources.ResourceManager
Get
If Object.ReferenceEquals(resourceMan, Nothing) Then

[code]...

View 3 Replies

Managing Unicode Data In MySQL And .NET?

Jan 27, 2010

I wish to develop a client-server application in VB.NET. I want to store some fields in Unicode. As per MySQL documentation I tried the fields with varchar and charset UTF-8 for storing Unicode data.I could insert data using the MySQL connector command object but when I try to display data in datagridview some junk is appearing.

View 1 Replies

VS 2005 Managing Increments On Different Clients?

May 5, 2009

I have a program in accounting that is used by many clients and users at the same time in a network. Many modules have a reference no. like in the receipt that increments upon saving, it also Checks whether that reference no. is already in used.

However problem arises when the many users use the same module at the same time. My question is How do you manage incremental values on each client's PC? Their local system somehow competes for the next incremental no.

View 4 Replies

VS 2005 Managing Multi Thread?

Jun 2, 2011

i want to process a list of strings using multiple threads. the first function pases it, it then send the result to another, and finally that one displays the final result in list view

dim items as new list(of string)
private sub button_click()
start parsing thread
threadParse = New Thread(New ThreadStart(AddressOf startprocess))
threadParse.Start()

[Code]...

View 7 Replies

Winforms - UI Templates For Managing A DataSet?

May 27, 2011

Is there a quick and easy way to make a VB.NET user interface for managing the data in a normalized DataSet? I know that is a very subjective question, so let me explain. For a brief period early in my career, I used to create user interfaces in Microsoft Access. I developed a simple, but very effective approach to user interface design. Here are some details of that approach:

[Code]...

View 1 Replies

Pick A Word In Combo Box A That Has Specific Words/phrases In Combo Box B Show?

Feb 24, 2009

i wanted to link options selected from Comb box A (general) to specific options in combo box B (specific). I want to pick a word in Combo box A that has specific words/phrases in Combo Box B show. But not all the words to show in the combo box B if they aren't associated with the Word picked in Combo Box A. Ex.When "Soda" is picked in A, only "Coke, Sprite, Fanta" should be visible in combo box b, not everything else.This is the code i used to make the boxes, but i don't know how to link them.

Private Sub MainForm_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
' fills the combo boxes with values
Me.xGeneralComboBox.Items.Add("Soda")
Me.xGeneralComboBox.Items.Add("Juice")

[code]....

View 7 Replies

Use A Databound Combo Box To Display One Field In The Drop Down And Another As The Combo Box Text On Roll Up?

Feb 21, 2012

How to use a databound combo box to display one field in the drop down, and another as the combo box text on roll up? Using VS 2005... For example, I have a datatable that has 2 fields. One called "ShortDesc" and one called "LongDesc". I want to be able to see the "LongDesc" column values in the drop down on the combo box. When I make a selection, I want the text in the combo box to read the corresponding "ShortDesc" value.

[Code]...

View 4 Replies

Object Null Combo - Error When Try To Populate Some Combo Boxes With A Value

Nov 16, 2011

I am getting an error when i try to populate some combo boxes with a value, the combo box has values in and the right amount the code is getting the right number.

the error msg is "Object reference not set to an instance of an object."

View 7 Replies

One Combo Box Fills Another And Hits The Second Combo Box's Lost Focus Event?

Jun 7, 2012

Combo box 2 is filled based on a selection made in combo box 1 and a listview is populated based on the selection made in combo box 2.When the LostFocus event completes in combo box 1, it hits the LostFocus event in Combo Box 2 but it shouldn't. How do I prevent this from happening or if I can't prevent it, how do I work around it? The following is the code used.

Private Sub cboCategory_LostFocus(ByVal sender As Object, ByVal e As System.EventArgs) Handles cboCategory.LostFocus

[code].....

View 2 Replies







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