vb.net

Something wrong when i want to read my cookie - using ASP.NET

I am using ASP.NET and VB.NET 2.0..................................... This is my code i use when i create my Cookie If dlgLogin.RememberMeSet = True Then Dim RateCookie As New HttpCookie("LoginInfo") RateCookie.Values("Email") = dlgLogin.UserName RateCookie.Values("Password") = dlgLogin.Password RateC...

Split CSV String

How would I split the following string? test, 7535, '1,830,000', '5,000,000' The result should be test 7535 '1,830,000' '5,000,000' I try: Dim S() as string = mystring.split(",") But I get, test 7535 '1 830 000' '5 000 000' Thanks ...

how to set IDENTITY_INSERT as ON ?

in the first I ask the admin to remove this post: 'how-can-i-make-a-primary-key-as-autoincrement-in-vb-net-2008/959787#959787' because I am facing a problem with comment and when I try to add comment the error message is apper: "commenting requires 50 reputation -- see faq" ! Here just I want to ask about IDENTITY_INSERT, how can I set...

How do I set controls' values of a repeater control regardless to their data

This is the repeater: <asp:Repeater ID="rptrReports" runat="server"> <ItemTemplate> <div style="margin: 2"> <asp:Label ID="lblAccount" runat="server" Text='<%#Eval("Account").FullName%>' />&nbsp; <asp:TextBox ID="txtDescription" runat="server" MaxLength="256" Text='<%#...

What are the best Visual Studio extensions?

Possible Duplicate: What is your favorite Visual Studio add-in/setting? I'm wondering what are the extensions that you love or can't live without? I know for me I'm a huge fan of Resharper ($) GhostDoc (Free) Copy As HTML (Free) What other greats are out there? Mark them as free or not as well... ...

How to use escape character in replace function when replacing quotations in VB

Here is my code snippet: Public Function convert(ByVal robert As String) Try robert = Replace(robert, "U", "A") robert = Replace(robert, "\"", "A") I want to actually replace the "quotations" with the A but the program doesn't seem to recognize the fact that I'm using an escape character in VB. Does a...

how do i read / write to a remote xml file with vb.net?

how do i read / write to a remote xml file with vb.net? ...

Problem with handling COM events in VB.NET

I'm calling the SQLDMO 8.0 COM library from VB.NET (using a PIA I generated with tlbimp) in order to backup a database with percentage completion notification: Dim server As SQLDMO.SQLServer = Nothing Dim backup As SQLDMO.Backup = Nothing Dim restore As SQLDMO.Restore = Nothing Dim backupAbortable As Boolean Dim restoreAbortable As Bool...

bar graph in vb.net?

i need to take user input and make a very simple bar graph from it in vb.net. anyone have suggestions on an easy way to accomplish this? ...

how do you download a .png onto your windows form?

how do i go to a specified URL, grab a png image, and drop it onto my windows form in my vb.net windows application? ...

Multidimensional Associative Array in VB.NET

Hi can someone show me an example of a multidimensional associative array in vb.net. Need array to hold peoples name, there age and a few other settings. Want to be able to use a Dictionary to use People.Add. Thanks --Mark ...

inserting remote image onto windows form in vb.net?

anyone have experience doing this? ...

asp.net vb.net person class and dictionary

this question is related to this http://stackoverflow.com/questions/962558/multidimensional-associative-array-in-vb-net getting the following error. System.ArgumentException: An item with the same key has already been added. Line 103: AdInsured.Add(dbread.Item("FullName"), New Person(dbread.Item("FullName"), GetAge(dbre...

VB.Net SQLExpress 2008 deployment

I have been developing an application for the last 12 months using VS2008, VB.NET(WPF) and SQLExpress2008. It has been running successfully in a single organization but I now need to consider deploying it to other organisations where I won't know the connection string for the DB, app locations, server locations etc. What is the current ...

Extracting QuickTime Files from a Resource and converting them into Separate Files (VB.NET 2005)

I have a resource file for a program, and i have determined that the resource file just a big string of files glued together whole, i know that the movies contained in the file are quicktime mov. Where can i find information on the quicktime header? and how can i determine the length of a file once i find it? ...

How do I create a list or an array of objects in PHP?

I am a .net programmer vb & c# but i can't seem to figure out how to get my objects into a list or array in php. var mylist = new List<myobject>(); mylist.add(myobject1); mylist.add(myobject2); what i have tried. Products being a property for a collection of orderitems $this->Products = getOrderItems(); public function getOrderItem...

handling keyboard scan codes directly in VB KeyPress event

How to map Numpad scan codes to keys in VB KeyPress event? Meaning I want to track key 1 when NUMLOCK is ON OR OFF. ...

Collection Editor within a User Control at Design Time

I have a UserControl class in a Windows Application project. One of the properties of it is a collection of another class that I have defined. I can't seem to find a good example of how to get the standard collection editor working for it at design time. I got it working using some example code I found to a degree, but the data in my co...

How to pass a generic type not having a Interface to a Of T function

I have a following code which works fine MsgBox(AddSomething(Of String)("Hello", "World")) Public Function AddSomething(Of T)(ByVal FirstValue As T, ByVal SecondValue As T) As String Return FirstValue.ToString + SecondValue.ToString End Function Now we are redesigning the application to work with parameters of different types whi...

What is disabling my edit-and-continue in vb10 vs2010?

I've been using the vs2010 beta but I can't seem to get edit and continue to work. Compile -> Advanced Options -> Target platform is set to x86 (Compile -> Platform is disabled and set to Active (Any Cpu)?). Options -> Debugging -> Edit-and-continue is checked but grayed out. Presumably for the same reason I can't debug. Options -> His...