vb.net

Select Case on Radiobutton group is it possible?

I have say 4 asp.net radiobuttons which are grouped, I want to find out which one is checked. What seems natural to do is: Select Case RadioButton.Checked = True Case myRadioButton1 Case myRadioButton2 Case myRadioButton3 Case Else End Select I just get a 'reference to a non-shared member reference' e...

Do i need to convert a sessionvariable to string?

. Session("UserName") = "Sally" Dim userName As String = Session("UserName") Do i need to convert the session variable to string if i wanna follow "good coding practices"? Ex: Session("UserName") = "Sally" Dim userName As String = Convert.ToString(Session("UserName")) ...

Non-writable character issue

Im trying to build a list of id's in a textbox. Which works fine in IE and Firefox but not in chrome. The list that is created is using String.fromCharCode(20) to separate the values. (im using this as the values could be any character so I need to use non writable characters like this and 17) What happens in Chrome is it seems to remo...

.Net function to replace/encode&decode HTML characters in string

I have the following code: Dim lStatementText As String Dim lStatementString As New System.Text.StringBuilder lStatementString.Append(RndRes.Forms.txt_request) lStatementString.Append(" ") lStatementString.Append("<b><a>") lStatementString.Append(Request.ID) lStatementString.Append("</a> - <a>") lStatementString.Append(...

Limitations of sharpDevelop

I am looking in to using sharpDevelop to develop Windows (.NET) applications over using Visual Studio. I'm just wondering if there are any serious limitations to using SharpDevelop over VS? The price is certainly right and at first glance it seems like a pretty decent IDE. I'm just wondering if it is compatible with VS. I mean if I a...

In Vb.Net How to know if the file hasnt been changed for x seconds?

I am programming something which involves certain files changing every second. Now, if the files are not changed for, say, 10 seconds it means that some error has occured somewhere, externally. So, I want the user to know about it. How can I implement this? Sorry cant add comments due to some problem. @Jeremy - Very small. Precisely, I...

How can I pass a property as a delegate?

This is a theoretical question, I've already got a solution to my problem that took me down a different path, but I think the question is still potentially interesting. Can I pass object properties as delegates in the same way I can with methods? For instance: Let's say I've got a data reader loaded up with data, and each field's valu...

Scale Interface to VB Application

I have a few different scales that I'm building a VB app for. Is there a universal serial port language that is common among weight scales that I can use to import real-time weight into VB? ...

Partially subscript axis title of an execl chart object dynamically using vb.net

Hi I have a critical problem as i need to partially subscript the Y Axis Title of my chart object which is being dynamically generated in an Excel worksheet through vb.net. For an Example : The title would be like 'cmax' where c should be subscripted as we write H2O where 2 is written as exponential. When I am trying to use ...Font....

Problems with UserControl and Inner Properties

I am trying to develop a control that'll allow the developer to populate a collection through markup (e.g. Properties decorated with the attribute PersistenceMode(PersistenceMode.InnerProperty). I have an example from Brian Chavez that more or less does what I want but I want to have the control inherit from UserControl and not Control....

Silverlight AccentColor Theme Issues

I am trying to build a Business Application using the AccentColor Theme by copy/pasting the styles into the asset folder and adding the Merged Dictionaries in the app.xaml. After getting everything in place, per the instructions, I get 100+ errors about controls that do not exist like the buttonspinner. I currently have the Silverlight 4...

Dropdown menu on Link button?

I have created user control for menu bar and loading in Master page. User control has Link buttons. Now I want create drop down menu for one of Link buttons. I dont know, how to do that? Is there any other control that supports? <asp:LinkButton ID="btnAttributeProcessing" CausesValidation="False" ForeColor="White" runat="server">Data ...

How can I stream music over a network and then play it from a buffer?

I want to stream music from one PC to another using VB.net, i have the code which will send and save the file, but i want it to be played as it arrives, in the buffer, i understand i will need to utilise multithreading, but can anybody help? Thanks Nick ...

Forcing Focus for Desktop Applications built in .NET

I have a production application that I always want to force focus on. Sometimes the users will accidentally click off the form and the blue focused window will turn gray. I have a timer that fires every 30 seconds and I want to programatically give focus back to the form so that it goes from gray back to blue with focus. I've tried using...

Check for only digits in VB.NET String

I want to run a check on a String right before I append it to a StringBuilder to make sure only numeric characters are in the string. What's a simple way to do that? ...

How do you declare a Char literal in Visual Basic .NET?

With Option Strict On: Dim theLetterA As Char = "A" returns an error about converting the string "A" to a Char. What is the syntax to enter a Char literal? ...

Defining path to executable for a custom control

I have created a custom control using VB.NET in Visual Studio 2008 that gives extensive mapping and tracking functionality to a search and rescue app. The problem I am having is that in a number of places I need to define the path to the main applications executable in order to find a number of directories the control needs to function ...

How to preserved Application Setting for new upgrade?

When upgrading my old app, how do I preserved those old Application Setting that had been set by previous app, so that the new app can use back the old app setting? thanks. ...

I've been programming in Asp.Net/VB.Net for a few months.

I've been working at a company for almost 6 months developing Asp.Net/VB.Net websites. I have very little programming experience before this and no experience in Asp.Net/VB.Net before this. I could really use some advice and would like your opinions on where my skill level should be at by now. It seems that in order to develop an asp.net...

empty namespace in inline xml literal - how to remove xmlns?

I am trying to use xml documents to store data for a movie database, but am having an issue, I am new to using xml for documents and have been using tutorials and MSDN to figure it out but I am stuck thanks in advance here is the code I am using Imports <"...\movies.xml"> Private Sub btnAdd_Click(ByVal sender As System.Object, ByVal e...