vb.net

list of all available server controls

Just as the title states, can anyone point me to a list of all available asp.net server controls (preferably with descriptions)? I would have thought that something like this would be readily available but I've had no luck finding this. I almost always have to dig around to find a control to solve a particular problem, a quick referenc...

resize borderless form

I am able to resize the from using the code below but it resizes towards right side , from bottom right corner i want to modify the code so that user can re size the form from bottom left corner. also most of the solution given on this site are based on WndProc / WM_NCLBUTTONDOWN and i am not using it because my form have lots of cont...

Compare two string ArrayLists

I have two array lists dim Colors1 = New ArrayList Colors1.Add("Blue") Colors1.Add("Red") Colors1.Add("Yellow") Colors1.Add("Green") Colors1.Add("Purple") dim Colors2 = New ArrayList Colors2.Add("Blue") Colors2.Add("Green") Colors2.Add("Yellow") I would like to find out which colors are missing from Colors2 that a...

Linq join on parameterized distinct key CASE INSENSITIVE

To revisit a previous question with a further stipulation... Anyone know how to do the following, IGNORING CASE? Dim Matches = From mRows In LinqMasterTable Join sRows In LinqSecondTable _ On mRows(ThePrimaryKey) Equals sRows(TheForignKey) _ Order By mRows(ThePrimaryKey) _ Select mRows, sRows For details ab...

onClick event in VB.NET

I am programming in VB.NET. I am trying to make an onClick event for a div tag. How can I make this in the code behind? ...

VB.NET Trying to modify a generic Invoke method to a generic BeginInvoke method, having unexpected problems

VB.NET 2010, .NET 4 Hello, I have been using a pretty slick generic invoke method for UI updating from background threads. I forget where I copied it from (converted it to VB.NET from C#), but here it is: Public Sub InvokeControl(Of T As Control)(ByVal Control As t, ByVal Action As Action(Of t)) If Control.InvokeRequired Then ...

How do you return an object as the return value through a RealProxy transparent proxy?

I'm working up a system where I plan on using RealProxy objects to enable intercepting method calls against a set of objects, handling the call, and then returning appropriate results. This works just find for simple return types like strings or ints, but I can't seem to return objects from the RealProxy.Invoke method. Everything works...

VB.Net Serialize anonymous type to xml

In MVC I can do something like the following to serialise an object with an anonymous type to JSON... Public Function GetStateList() As JsonResult Dim MyObject = New With {.Id = 1, .Property = "SomeValue"} Return Me.Json(MyObject) End Function which would return something like; { "Id": 1, "Property"Som...

VB app not ending

I am using Visual Basic 2010 and I am makeing a simple login app it prompts you for a username and password if it gets it right I want to open a form then close the previus one but when I do me.close it ends the program and I can't go on I am positive its working because I get the right password and username ut I can't close the first w...

Stuck trying to create an async method

For the last week I've been trying to create an async method. I tried the MSDN article How to: Implement a Component That Supports the Event-based Asynchronous Pattern but it does the work in a method in the same class. The work I'm doing is a lot more complicated and is its own class. The problem I'm having is the class doing the work ...

one sub procedure / change text color in rich text box / without button handler

Hello, everyone! I've been at this for a while, and I'm not sure how this issue can be resolved: I'm working on a project in VB.Net, and I have a form with a rich text box. I have a groupbox with 4 radio buttons inside that are intended to change the font color of the text. Coincidentally, I have to repeat this same functionality for a ...

writing a sbkey in registry in vb.net

Dears good morning to all I'm using the following code to open and then write a subkey in the registry Private Sub RegSubKeyCreates(ByVal sKeyPath As String) Dim RegKey As RegistryKey Dim SubKeyParam() As String = Nothing SubKeyParam = Split(sKeyPath, "\") RegKey = Registry.CurrentUser.OpenSubKey(SubKeyParam(0...

How to open a frmWindow a second time wothout refreshing a grid in the first one?

Hy, I have a Window with a Grid that is making a select from myql, and using the .Show() function insted of ShowDialog() I can open the same window a second time to have two instances of the same window. Now, when i open the second instance the grid populates with the new selection also in the first window....how can i make the window ...

Populate DataTable with records from database?

This is my GET Method to get my data from my DataTable Private Function GetData() As PagedDataSource ' Declarations Dim dt As New DataTable Dim dr As DataRow Dim pg As New PagedDataSource ' Add some columns dt.Columns.Add("Column1") dt.Columns.Add("Column2") ' Add some test data For i As Integer = 0 To 10 dr = dt.NewRo...

Problem while sending JSON DATA

Hi , I have to pass my Json data in a particular format. My app is coded in vb. The following is my code : Dim jsonObject As New Json.JsonObject jsonObject.Item("count") = New Json.JsonNumber("0") jsonObject.Item("data") = New Json.JsonArray("") **jsonObject.Item("success") = New Json.JsonString("True")** The Probl...

Making a vb.net application blend in with the Windows theme

Previously I used to piddle around with VB6 to develop a couple of personal projects. Following my upgrade to Windows 7, I've decided to piddle about with vb.net Express Edition 2010. If I wanted my VB6 application to blend in with the visual style of Windows, I would use the code and techniques described here. In short, I would use a M...

Access query from VB.NET - To insert data though they are NULL

Hi I need to insert data from DB to another DB. I run this query from VB.NET: for example: Insert into DBDestino.tablaDest (campo1,campo2) select valor1,valor2 from DBOrigen.tablaOrigen Field "campo1" is integer (in DBdestino) But sometimes the value "valor1" (in DBOrigen) is NULL. If I run the previous query, it returns error a...

How to have an integer string in an enum?

I know this is a proper enum: Private Enum Months JANUARY = 1 FEBRUARY = 2 ... End Enum However, I want to have an enum where the string will solely be integers. Example: Private Enum ColumnCounts 01 = 5 02 = 4 03 = 40 End Enum The 01, 02 and 03 are all strings. However, if I put "01", [01] or just 01, it tells me it ...

How do I get a WPF element to respond to changes in a VB Module?

Hi, Objects whose Properties are observed for changes must implement the System.ComponentModel.INotifyPropertyChanged event to alert their WPF-element observers that a change has occurred. If I have a Visual Basic Module whose Properties I wish to have observed by a WPF element, how should I go about routing the Properties of that Modu...

how to connect front end and back end without using sql server 2005

sorry i did not tell the clear problem to u. i have developed one application for client. i want to install that applicaion in client machine. i have created setup file for vb.net. i have taken backup for database(.bak , .mds, .ldf file also). i have included those file in my setup. but i want to connect that file in my application. i ...