vb.net

VS2010's "Public Property <PropertyName> As <DataType> vs. Public var

In VS2008, I used to type Public Property <PropName> As <dataType> and hit the Enter key and the IDE editor would automatically expand it out to a full blown property block. Now, from what I understand, a new feature of 2010 is that the compiler automatically "expands" the short syntax above into the same IL code that you would get ...

VB.NET Use Browser

Hi there I expose my problem, but first I ask you one example otherwise you will understand why, In VB6 when surfing the site and google example I set the textbox the value "Test" and then click on commandbotton I just enter the source webbrowser1.document.all ("g"). value = "Test" WebBrowser1.document.all ("btnG"). Click** I would do t...

Is it possible get the functionality of namespaces inside a class?

I have the following code: Public Class Form1 Private Function Step1_Execute() As Boolean Return Step1_Verify() End Function Private Function Step1_Verify() As Boolean Return True End Function Private Function Step2_Execute() As Boolean Return Step2_Verify() End Function Private Function Step2_Verify() As Boolean Retu...

Detecting Enter KeyPress on VB.NET 2008

I am using 3.5 framework of VB.NET 2008. I have some textboxes in my form. I want the tab like behavior when my user presses ENTER on one of my textboxes. I used the following Code: Private Sub txtDiscount_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles txtDiscount.KeyPress If e.KeyChar...

How to generate a cell click event in Excel 2007 VSTO with VB?

Well I have browsed through Application events in Excel 2007 however I can't find any event generated on a cell click. I can't use a double click event at the moment due to application constraints. Is there a way I can create a custom click event and attach it to a sheet for generating a cell click event. ...

Can i use VS Setup Project to build a bootstrapper which can install correct platform version or are there any free 3rd party tools?

I'm building 2 different MSI with Visual Studio Setup Project. One for x86 and x64. But i couldn't find a way to combine both into one project so that the bootstrapper is installing the correct platform version. Is there a way to do so in VS Setup Project or are are there any free 3rd party tools i can use? I found dotnetinstaller, but...

VB time input, a better way to do it?

Hello Stack overflow, Working on a handy program for my boss at work as a summer project in between semesters both to make life easier for her, and to practice and improve my skills. Intent is to allow her to quickly and easily calculate the hours and minutes the person worked. The form itself has a series of text boxes for the Clock ...

How can I make a list in a Repeater Section?

I need to create a repeater section that will show 4 columns - First Name, Last Name, a link based off of stored column data that says. All the data plus some extra not being used is in a players profile. How do I link the data on the code-behind to the repeater control with the databinders? I am using visual studio 2008, VB.NET for ...

listview tile layout problem (vb.net)

hi guys, I have a listview which displays (eventually) an album cover of an itunes play list with the album name under it. the problem I am having is that I cannot get the album art (currently a blank square) ABOVE the album name. It always is on the side... how do I do it? I've tried adding column headers and alsorts... code to set u...

Random String Generator creates same string on multiple calls

Hi there. I've build a random string generator but I'm having a problem whereby if I call the function multiple times say in a Page_Load method, the function returns the same string twice. here's the code Public Class CustomStrings ''' <summary>' ''' Generates a Random String' ''' </summary>' ''' <param name="n">number...

Validation is not working

hi...I have one asp content page.Its contain many controls like dropdownlist,textbox etc.All controls are inside a div tag.I gave required field validator for all my drop down list.i have one SAVE button that reside inside another div tag.I gave SAVE button cause validation true.But my problem is that, the validator is not working and th...

where can I find useful VB.NET web development videos ?

Hi , I have tried Asp.Net but they have minimum sets of tutorials and videos. I am looking for a video tutorials like pluralsight training videos which is not free. But I am looking for free training videos for Vb.Net/webforms and SQL "CRUD", Sql DataBinding videos, runtime designing , runtime databinding and all. Thanking you all in adv...

VB.NET Use API Messenger

Hi, I know how you can use the api in vb.net IM I wish simply by pressing a button sends a message to all my contacts. I apologize for my ignorance but I'm still learning, thanks ...

Adds data to a dictionry lists in vb.net

Hi, I have to put data into a dictinary, thus formed: Dictionary (Of Integer, List (Of RicercaNews)) but when I go to put the list in the dictionary, I always return the same record, as if it does not increase the index of the list. This is the code: ResultTable Dim As New DataTable () Dictgestionalews Dim As New Dicti...

I am converting general date to UniversalTime Please tell me how to get this format

i am converting my date to Universal Time using mydate.ToUniversalTime() in vb.net its giving me right time but its giving me time in "5/4/2010 4:30:00 AM" format (in vb.net) but i want it in "Wed, 05 May 2010 05:50:00 GMT" format.. please help me to make it in "Wed, 05 May 2010 05:50:00 GMT" format. value of both date are different so p...

Threading multiple WebBrowser in VB .net

I'm building a multiple webbrowser inside tabs( 1 predefine webbrowser control per tab) and I want them all to load at the same time or other words must run in thread. Unfortunately I feel a valid fact came from the error message that this is something not possible. Pls help me to check my simple program code below and its error in case ...

Using returned XML from an authorised HTTP request in vb.NET

Hi, How can I use the returned XML from the reader in a xmltextreader? ' Create the web request request = DirectCast(WebRequest.Create("https://mobilevikings.com/api/1.0/rest/mobilevikings/sim_balance.xml"), HttpWebRequest) ' Add authentication to request request.Credentials = New NetworkCredent...

New to VS.net (VB.net) 2008. Windows 7 aero glass stuff.

Hey all, i have been using VB.net 2008 for a few months and i have a question. I compiled my program and ran it in a VM running windows 7. However, the progress bar looks like it does in XP. It doesn't have that cool look to it like I've seen in many other programs running in windows 7. I have downloaded the 3.5 .net framework with sp1 ...

excel dcom error. excel file not getting created on server side

i am getting this error when i try to create and excel file on my server through asp.net vb.net code. System.Runtime.InteropServices.COMException (0x800A03EC): Microsoft Office Excel cannot open or save any more documents because there is not enough available memory or disk space. • To make more memory available, close workbooks or pr...

VB.NET/C# Comparison Operator for to test for set membership - like the IN Operator for SQL...

so in SQL you can do something like: WHERE title IN('title1','title2','title3') to test for set membership (assuming i'm using the right phrase here). how can I do this in VB.NET/C#.NET? Example: IF textMyTitle.text IN ("title1","title2","title 3") THEN 'Take Action End If Obviously the IN part of that statement doesn't work.....