vb.net

separating names

Im trying to Separate Last name, First Name and Middle Initial. File is csv format, here is an example: A0001,3,Y,13,LU, A0001,3,Y,13,CLARK P, A0001,3,Y,13,SMITH JOHN, A0001,3,Y,13,BEAL KRISS J, A0001,3,Y,13,THOMAS A CLIFF C, A0001,3,Y,13,DEW III ROBERT H, Output fields : Last name First name I...

Move a row from one gridview to another.

I'm not sure how to go about this. Currently, in the first gridview, is a list of groups a member has access to. The second gridview is bound to a table that contains a list of every type of group and has an Add button which adds it to the first gridview and updates a table adding that group to a member. This is what I am trying to do:...

Form is not updating, after custom class event is fired.

I'm having an issue where my main form isn't updating even though I see the event fire off. Let me explain the situation and share some of my code which I'm sure will be horrible since I'm an amateur. I created a class to take in the settings for running a process in the background. I add some custom events in that class so I could us...

Output a single column from a datatable

So this doesn't seem like it should be that difficult, but apparently I'm overlooking something..? I have a datatable that has 4 columns. I want to output only the second column from the datatable. Here's what I've got so far: Dim dt As New DataTable ** Datatable is set here ** Dim row As DataRow Dim col As DataColumn For Each row In d...

VB Change Calulator

Help Please. I am creating a VB 2008 change calculator as an assignment. The program is to use the amount paid - the amount due to calculate the total.(this is working fine). After that, it is to break that amount down into dollars, quarters, dimes, nickels, and pennies. The problem I am having is that sometimes the quantity of pennies,...

Why do we so many kinds of assembly loading methods?

Hi, AFAIK, there're 3 methods to load an assembly into a AppDomain: Assembly.Load() Assembly.LoadFrom() Assembly.LoadFile() The LoadFrom() method takes the assembly filepath as its argument, but the filepath is merely providing the assembly identity information as a clue to the CLR. The LoadFrom() method still internally calls Load(...

How to show all videos in one page, or other way to get video links in listbox

I need help with one website: http://www.lockerz.com/p/watch/all that contains videos to see, like YouTube, and the videos are divided in pages,but I want to display all videos in one page (or maybe you know some other way to get all videos links to listbox) and in the source of this page I got this part of the source: input id="vid_cou...

alternative solutions to this programming problem? all languages welcome

Create a method that: Given a string, look for a mirror image (backwards) string at both the beginning and end of the given string. In other words, zero or more characters at the very beginning of the given string, and at the very end of the string in reverse order (possibly overlapping). For example, the string "abXYZba" has the mirror...

Code only works successfully when passed the same values about half of the time

I have a situation that has puzzled me for weeks. I am running logic that does a bit of back and forth to and from the database for each time it is executed (about 20 times). The problem is that the same code works about half of the time. What could possibly be the reason for the difference in execution performance and how can I better s...

Remove columns in gridview

How do you remove this: ...

How to set color for a font class- object in VB.NET..?

How to set color for a font class- object in VB.NET..? i mean.. Dim MYfONT As New Font("Microsoft Sans Serif", 16, FontStyle.Bold) e.Graphics.DrawString(TabMain.TabPages(e.Index).Text, MYfONT, SystemBrushes.HighlightText, paddedBounds) how can i set this font class object(MYfONT) - color to Black. ? ...

how can i add element host control to winforms Dynamically..??

hi, am using element host for hosting WPF user-control. For that i need elementHost control dynamically, can i add it Dynamically..?? by creating object..?? ...

How to make a WPF TextBox use password characters?

hi, i need to set it it dynamicaliy.. Can i make password Box to as normal text- i mean- user could see the text what he entered.??? its for-> i need to use same control for " password sesion" and also the "item count entering" session ..?? ...

How to add textbox dynamically to WPF usercontrol. .?

How to add textbox dynamically(as per some conditions) to WPF usercontrol. .? WPF usercontrol will be used in Winforms application...! ...

Why is Socket.BeginReceive losing packets from UDP?

The following code waits for data over UDP. I have a test function that sends 1000 packets (datagrams?) of 500 bytes each. Each time I run the test function, the receiver gets only the first few dozen packets but drops the rest. I looked at the incoming network data using Wireshark and I see all 1000 packets are actually received, but ju...

DataGridView Row select without RowHeaders

How do you select the whole DataGridView row on cell select and disabling the selection of a single cell NOTE: just like the behavior of a listview ...

Add a new row to an existing dynamic datatable

I have a dynamic datatable, created from a database. I want to add a new row (blank), so there is an option to choose nothing in a combobx. Everything works ok, without adding the new row. But when I add a new row, the combobox displays nothing. What am I missing? Here is the code Dim DT As New DataTable DT = DS.Tables("CallStatus...

Programmatically populate DataGridView

I have a DataGridView that I'm trying to populate using a For loop: Dim serverName As String = SQLServerName + "\" + Instance Dim server As Server = New Server(serverName) Dim Datatable1 As New DataTable For Each database As Database In server.Databases Dim row As DataRow = Datatable1.NewRow row("Datab...

asp.net pass variable from code behind to .aspx

I guess I'm missing something here, but I can't find a way to pass a simple variable from my code behind file to the .aspx page. In code behind I have: Dim test As String = "test" and in my aspx page I try: <%=test %> that gives me the following error: Error 2 'test' is not declared. It may be inaccessible due to its protection le...

how to check if user is running Vista or XP

Hi How can I check if user running my application is running Vista or XP? I need to make it If XP then msgbox "XP" else if Vista then msgbox "Vista" endif Thanks ...