vb.net

Concatenation with StringBuilder

Is it from a sight of resources reasonable to use a StringBuilder already to concat two strings or is there a minimum concatenation operations that makes the StringBuilder efficient? ...

one codebehind method handles two distinct dropdowns - isn't supposed to

Hello folks, I have one page with two dropdownlists with different IDs and in my codebehind I have two distinct methods, one for each dropdownlist, with distinct names and handlers. BUT, in my codebehind, only one dropdownlist calls it's method - and sometimes it calls both methods! - while the other dropdownlist never calls its method...

VB.NET - Ribbon Shows Black Area

Hello, I need help with my vb.net program. I've added a ribbon bar to the top of my main form using the DotNetBar and the problem is that it shows a black rectangle area instead of the default blue color. This only happens when I am using Windows 7 aero and is not maximized. Anyone have any suggestions? ...

Getting multiple index value from array

Hi all, i have created a string array from A-Z, which will contain index from 0-25. Then i have a textbox and when i enter text into the textbox, how can i get the index number of the array associated with the text i entered? For example, i enter "AB" into the textbox, the index return should be 0 and 1. The code below only able to r...

How do you superimpose text, a still image, or windows.drawing graphics over a video stream?

I am using a third-party .NET video capture function library that displays atreaming video from a USB video capture device in a VideoPictureBox (which is very much like the usual .NET PictureBox). I want to display graphics and text over the video stream. Is there some way to superimpose a regular PictureBox such that the graphics and t...

Reading an Access Query from Visual Studio 2010 (VB.NET)

I have a database in access and one of the fields is 'Is Quick'. I have a query that filters all of these out. How would I get the data from that query in Visual Studio 2010 (Express). VB code please. ...

How to add description to a user control property in vb.net

Hi, I created one web user control with property named "ReadonlyField" with boolean datatype. I am able to use in my web pages and now i wanted to add a description to that property so that i dont need to explain each time to my team member what is that property's intention. I got following snippet in c# but didnt find any equivalent i...

Crystal report clicking event...

I want to get a value from crystal report on double click on any column value in crystal.and then open a sub report based on this clicked value.. I am using Visual Studio2005 crystal report.. Is this possible with this version. Please help if having any idea about this. I have tried a lot of things. But not getting any fruitful solution....

Adding controls to a panel programmatically

I'm trying to add a group of four radio buttons to a form. There are other radio buttons so I'm grouping them by placing them on a Panel. However using the below I just get the panel added to the form without the radio buttons... Am I doing something wrong here? Dim arrRButton(3) As RadioButton arrRButton(0) = New RadioButto...

VB.NET vs Java (Visual Basic.NET vs Java)

I came across VB.NET and Java Comparison, which is an old article. Both languages have evolved much since then. Please compare and contrast VB.NET and Java. ...

listview tiles not showing images (.NET2.0 , VB , winforms)

Im trying to fill a listview(tiles) with posters and titles of a DVD collection but only the titles become vissible. this is my code: Private Sub fillListView(ByVal listView As System.Windows.Forms.ListView, ByVal col As Collection) listView.Items.Clear() myImageList = New ImageList() For Each item As bsDVD In col Try myImageLis...

Is it possible to simplify (refactor) my Pizza Program code (VB.Net 2010)?

I have created a simply Pizza program (for a summer project not education related) that uses check boxes to determine what the customer wants. Basically a simple pizza ordering program. I was wondering as I have used the If statement over and other again for different parameters and variables, is it possible to use multiply arrays to sim...

text editor loading multiple large text files - multi threaded

I'm fairly new to VB.NET, and I'm working on a text editor with a tabbed interface. I deal with large text files, so I'm wondering what is the best way to go about this. Should I have each tab / text document open up in a new thread or a process? I basically want the entire application to always run fast as the text editor is just one ...

Return SCOPE IDENTITY

I'm trying to return the SCOPE Identity of the inserted record in my stored procedure @temp_id, but how can I bind it to a label e.g <asp:ControlParameter ControlID="ASPxLabel_RequestTemp" Name="temp" PropertyName="Text" Type="Int32" /> its not working Thanks ...

vb.net - good ftp control?

I've googled around quite a bit for good vb.net ftp controls and there are a few, but 90% of those are highly priced. Can anyone recommend a good (free or super cheap) control for doing ftp/sftp/ftpssl? Preferably one with a good example application with it as I'm new to vb.net :) ...

Declare HTML tag as a string in VB.NET

Hi, I'm trying to assign the following HTML as a value to variable type string 'here's the tag '$("#close").click(function(){$.notifyBar({ html: "Click 'close' to hide notify bar", close: true, delay: 1000000 });}); Dim htmltag = "$("#close").click(function(){$.notifyBar({ html: "Click 'close' to hide notify bar", clos...

ASPxGridview Edit From

Hi I'm trying to change the values of some of the controls in the ASPxGridview Edit Form, however they are not changing. It seems to be resetting? How can I do this and in which event would I do this in? Thanks, Joe ...

Complecated SQL Query: Members' Downline Business SQL Query

Hello Everyone! I've got confused at the moment. I've got one database to developed for MLM (Multi level marketing) company. so, there's one Members database.. each member have unique ID called membercode.. and all members can members under them.. can make 2 members down to 1 member.. all members are added in same table named "tbMembers...

Formatting a negative TimeSpan

I'm doing some math with the Timespans in .Net, and occasionally the sum results in a negative Timespan. When I display the result I am having trouble formatting it to include the negative indicator. Dim ts as New Timespan(-10,0,0) ts.ToString() This will display "-10:00:00", which is good but I don't want to show the seconds so tri...

VB.NET - Windows Taskbar Progress with embedded DLL?

Hi forum. I asked a question earlier asking how to use the Windows 7 taskbar progress bar without the .dll files, but I realized that in VS2010 you can embed a .dll into your application. I set this option to embed to true, but when trying to use the code for said .dll, I get this error: Interop type "Windows7ProgressBar" cannot be e...