vb.net

Problem with GridView in ASP.NET using VB.NET 2008

Hey, My problem is that when i try to insert a GridView in ASP.NET webpage it doesn't appear in the Browser. ...

Common programming mistakes in .Net when handling exceptions?

What are some of the most common mistakes you've seen made when handling exceptions? It seems like exception handling can be one of the hardest things to learn how to do "right" in .Net. Especially considering the currently #1 ranked answer to Common programming mistakes for .NET developers to avoid? is related to exception handling. ...

How do I get events to execute on the "main thread"

I have 2 classes, one is frmMain a windows form and the other is a class in vb.NET 2003. frmMain contains a start button which executes the monitor function in the other class. My question is, I am manually adding the event handlers -- when the events are executed how do I get them to excute on the "main thread". Because when the toolti...

Disable VB.NET 10 Features in VS 2010

is there a way to disable visual basic 10 language features in VS 2010. our Dev team has moved to Visual studio 2010, but we still have to keep backwards compatibility with Visual Studio 2008. is there a way to disable the new language features to avoid any issues. ...

VB.net: Custom ' TODO: List on an Interface

How do I add my own todo and comments list to appear on Interfaces? I want it to pop up like IDisposable does: Public Class Foo : Implements IDisposable Private disposedValue As Boolean = False ''# To detect redundant calls ''# IDisposable Protected Overridable Sub Dispose(ByVal disposing As Boolean) If Not ...

Inconsistent Behavior From Declared DLL Function

Why might my GetRawData declared function return a correct value when called from my VB.NET application, but return zero when called from my ASP.NET page? The code is exactly the same except for class type difference (Form / Page) and calling event handler (Form1_Load, Page_Load). Note: In the actual code, #DLL# and #RAWDATAFILE# are b...

Show a form after Application Load

I want to show a dialog box or form immediately after my application loads. If I place a .showdialog in the main form load event the dialog shows before the application shows. I’m trying to give some user tips when they load my application. Thanks ...

Is restricting attributes to class or properties doable?

I have two custom attributes defined like so: internal class SchemaAttribute : Attribute { internal SchemaAttribute(string schema) { Schema = schema; } internal string Schema { get; private set; } } internal class AttributeAttribute : Attribute { internal AttributeAttribute(string attribute) { Attribute...

Stored Connection Strings per user

In the past I've used a Singleton Pattern to load the connection string when the application starts via the global.asa file. I have a project now where each user has a unique connection string to the database. I would like to load this connection string once. The issue is that the singleton pattern will not work for me since each use...

How can I access a data repeater's item by index instead of explicit name?

Right now I'm using the following code in my markup: <asp:HiddenField ID="TheName" runat="server" Value=<%#Eval("SpeakerName")%> /> I would like to use: <asp:HiddenField ID="TheName" runat="server" Value=<%#Eval(0)%> /> I would like to be able to call it by index instead of explicitly by "SpeakerName". Is there a way to do this in ...

Improving code and UI Performance

I am dealing with a situation that I need some help with here. I need to improve performance on functionality that records and updates UI with user selection info. What my code current does is 'This is called to update the Database each time the user 'makes a new selection on the UI Private Sub OnFilterChanged(String newReviewValueT...

How Pick a Column Value from a ListView Row - C#.NET

How can i fetch the value 500 to a variable from the selected row? One solution would be to get the row position number and then the CustomerID position number. Can you please give a simple solution. SelectedItems means selected row and SubItems means the column values, so SelectedItem 0 and SubItem 0 would represent the value 500...

Fastest way to move records from an Oracle database into SQL Server

Ok this is the scenario... I have a table in Oracle that acts like a queue... A VB.net program reads the queue and calls a stored proc in SQL Server that processes and then inserts the message into another SQL Server table and then deletes the record from the oracle table. We use a DataReader to read the records from Oracle and then ca...

Windows components in .net

hi I need a component in .net which able me to partition a year to some part which is making by clicking at the beginning of the part and click again at the end of that. the shape below is a sample of my need but I create it by buttons and back-color of them for showing for you: I don't know the name of this component to search for th...

.Net 3.5 - SQL : Compatibility issues. Changing attributes automatic

I would like to make notice of some wierd thing. I designed an entire package application using VB.Net in Visual Studio 2008. I changed the normal backgrounds to Black, to make a diffrerence. but the problem is i1mm getting changing back ground colors when i install it on other systems.which does have all supports required. What should ...

pdfSharp moving items on page

Hi, I am trying to move content in a pdf document using pdfSharp. We have a number of documents that are the same size i.e. 488x320mm, the content within these documents is always positioned relative to the top right of the document but varies in size i.e. 210x330mm, 240x350mm etc. What i need to do is 'find' the content block and move...

Stopping other subs from running while in a Sub

Is there a way to stop other subs from running while in a separate sub. for instance say your in the sub CreateNumber() and the subs are setup like CreateNumber() AddNumber() DeleteNumber() Is there a way to be in CreateNumber() and call a function to stop AddNumber from running after creaetNumber() is finished? i just want my pro...

How Can I Convert the Value - listViewRecs.SelectedItems[0].SubItems[0] - to Integer? - C#.NET

int val = lstvRecordsCus.SelectedItems[0].SubItems[0]; The returned value is an int in a string datatype. I need the right hand side to return the value in int instead of string. I tried Convert.ToInt32, it didn't work. Any idea? All the values that comes from SelectedItems[0].SubItems[0] is of type int. ...

VB.Net equivalent for C# 'dynamic' with Option Strict On

Is there an equivalent for the C# 4 'dynamic' keyword when using 'type safe VB.Net', i.e. with Option Strict On? ...

VB.net Simple IRC Client

How would I go about making a simple IRC client with these things What I am using: Nickname TextBox Connect Button Message TextBox Send Message Button Refresh Button ListBox Restrictions: No commands at all just being able to send messages I am using a listbox for recieving messages ...