vb.net

can we place a picture in a picture box in differrent place?

i am using vb.net i just wanna ask if we can place a picture in a picture box in different places... for example, we place a picture in the center of a picture box then we place another picture on the left side of the picture box. is it possible?? and also can we use one picture box that can contain more pictures or images on it??? ...

.Net - Problems converting code-snippet from C# to VB.Net

I have problems in converting the following code-snippet from C# to VB.Net: if ((currentItem.Tag as FileSystemKind?) != FileSystemKind.File) { if (currentFileName == GOBACK) currentPath = currentPath.Substring(0, currentPath.Length - Path.GetFileName(currentPath).Length - 1); else currentPath = Path.Combine(currentP...

Listbox Selected Item Checking

Hello, My code follows. I have six items (indices 0-6) and I'm trying to check if one has been selected or not. If not, then messagebox yells at you to select one. If it does, it tells you what you have selected. I'm having a horrible brain fart and contemplated coming here for about 45 minutes as I couldn't get it. If ListBox1.Select...

vb.net hide button text or make image on button cover text

I dynamically create buttons on a form and use the button text as ids so that I can pass that to an SQL query to pull saved data about that button when necessary, but I also use an image over buttons that have information saved about them. What I need to know is how do I keep the text on the button from appearing when there is an image a...

Optimizing SQL data reader

I am using SQl data reader to get value from SQL database. Language VB.NET After getting data into reader, i run a while loop While reader.Read If reader.HasRows() Then /* Proessing of data */ End If End While I observe that the while loop takes a lot of time to process as there are many rows. Is there any bett...

ComboBox Reset to Select the Text of the ComboBox in windows Application

Hi, I had added the items 1 2 3 to the combobox. Then I gave the "Select" to the text of the combobox. How can I able to reset combobox to select the text("Select"). I had tried by giving -1 to the SelectedIndex. But it gives only Empty. This is for VB.NET Windows Application I have given an Image for your reference Image path fo...

Audio streaming with vb.net

Is there any way with vb.net of accomblishing MMS audio streaming? Also, i read somewhere else within SO, that MMS streaming is no more supported by Microsoft. Is that true? Just curious.. ...

Cycle Through Listbox on Click Event

Hi, I have a listbox with items, and when I press a button I would like to go to the next item. I'm having a horrible brain fart and have been for quite some time. for x = 0 to listbox1.items.count - 1 label1.text = listbox1.items.item(x) x += 1 next Probably a dumb mistake on my part :( Thanks! ...

Using a Timer to Loop

Hi guys, I have a label who's text is determined by looping through a listbox upon a click event. I would like to have a timer loop through the listbox (... to set the label's text) if the button is not pressed in time ('x' seconds). Please help, so lost ...

Storing an image in MySQL

How can I store and retrieve an image to a MySQL database using VB.NET 2005? ...

.NET: recommended video tutorial for LINQ?

Can you recommend a single downloadable video (one that you have actually watched and that you think is of high quality) introducing LINQ (not to be confused with "LINQ to SQL") to a somewhat experienced VB.NET/C# developer? It could be a screen-cast showing real code. "Downloadable" includes YouTube and ShowMeDo (Flash video) as the...

FindControl issue

I created a row (header row) in a gridview with a dropdownlist among other input controls. I also put a button on that row (fltbttn-see below). I created an addhandler for the button called fltbttn_Click. I want gain access to my dropdownlist (ddlscantype) using findcontrol but how can I get to the header row where the filter controls ex...

Stream (and convert?) multi-page TIFF using ASP.NET

I have built a simple image viewer in .NET and have the requirement to display multi-frame TIFF images in the browser. Presently, I have a (ashx) handler setup to stream back JPEGs that are co-mingled in the same database as the multi-frame TIFF's and it's worth mentioning that this handler will also return the first frame of the TIFF fi...

Linq Comment VB

How do you retrieve a comment from an XMLElement using Linq in VB? For example: <MyXML> <event type="MyEvent" uid="3"> <start>2009-02-01T12:00:00</start> <stop>2009-02-01T12:00:30</stop> <New>1</New> <x>20</x> <y>60</y> <!--Whatever--> </event> <event type="MyEvent" uid="3"> <start>2009-02-01T11:00:00<...

HttpContextBase type not found in VB.NET (using Rhino Mocks with ASP.NET MVC)

I'm trying to implement the GetHttpContext function from HtmlHelperTest.cs in VB.NET using Rhino Mocks, but I'm getting "Type 'HttpContextBase' is not defined." The compiler suggests changing it to HttpContext, but when I do that I get a run time error that a sealed class cannot be mocked. My test project references System.Web and also ...

How to handle 2 different versions(free, pro) database requirement

Hi I am planning to write an application which will be available in 2 versions. one free and the other one paid. The only difference is that in free versions only a maximum of 2 DB entries are allowed. but its unlimited in paid version. DB does not have more than 1 table with 5/6 fields. I am planning to use xml for free version an...

Windows Mobile to Windows CE, VB.net

I'd written an application in VB .NET for the Windows Mobile 5.0, yesterday a customer wants to use the application on there existing Symbol MC90XX that runs Windows CE 5.0. Can someone tell me what is the best way to convert from VB .net Mobile to VB.net CE? ...

Dynamically add drop down lists and remember them through postbacks

Hello, I'm trying to figure out the best way to achieve this: I need to show a drop down list when the page loads, the default selected value is nothing, or an empty element (such as "-"). When the user selects one value from the list, another drop down list is added below the first one, and so on. My problem with this is how you make...

How to load an XML document using a relative path in VB.net?

In VB.net when loading in XML documents using System.Xml.Xmldocument is there a way that I can specify a relative path to the file? path = "file.xml" xmld.Load(path) The XML doc I'm trying to load is in the same directory as the VB class. But I'm having trouble accessing it without using a full path to the XML doc. ...

Deleting image files within a directory (That might be used by another process)

How can i delete image files (ex *.gif) that might be in use, by another process in a directory? ...