vb.net

Does VB.NET not allow line continuations over commented-out lines?

I just had this throw a compilation error while refactoring some legacy (hence VB.NET) unit tests, where I wanted to just comment out one of the sample inputs to MBUnit: <RowTest> _ '<Row("Something")> _ <Row("SomethingElse")> _ Which gave: Attribute specifier is not a complete statement. Use a line continuation to apply the attribu...

Session Time Extension

On windows authentication( intranet web application ) When the session is about to timeout, the client should be presented with a POP-UP that asks to click OK to extend the session or else cancel to timeout the session. Which is the better way to accomplish this task. By Using Ajax Call or By handling it in the code behind file...

VB.NET - Duplicate existing form in FOR loop

Hey, I'm building a code editor app in VB.NET (Framework 4.0) and it opens all ".por" files into individual forms consisting of a MenuBar and TextBox (multi-line). Currently I have 20 forms (all duplicates of the first on I designed) and if there are say 4 ".por" files in a directory, the first four will open up while the others hide. I...

Read and Write into a txt files using VB.NET

Hello, I want to open a txt file and write into him numbers from 1 to 100. and put between every number enter. Thanks ...

how can i find the location of execute of my application in WPF (C# or vb.net) ?

Hi Friends how can i find the location of execute of my application in WPF (C# or vb.net) ? i used this code on windows forms . Application.ExecutablePath.ToString()); But IN WPF i had this message from Visual studio that : system.window.application does not contain definition for ExecutablePath. tnx for ur attentions :) ...

monitor live microphone input

How can I monitor live microphone input? I've read this site but that's only for recording: http://www.codeproject.com/KB/audio-video/cswavrec.aspx?df=90&amp;fid=16677&amp;mpp=25&amp;noise=3&amp;sort=Position&amp;view=Quick&amp;select=3005817 How can I monitor it live? Or change the input volume? I'm programming on Windows Vista with...

VB.Net Secure Passwords to Database?

I recently made a small app for a friend and then made it a public app, in doing so I forgot that it connects to my MS SQL DB and checks for values. Someone used Red Gate .Net Reflector to get my password and destroy it all. I've contacted their ISP and they are looking into it, apparently this person has a static ip with them. So this ...

Best way to limit textbox decimal input in c#

How can I make a textbox in which can be only typed a number like 12.00 or 1231231.00 or 123123 I've done this in a very long way and I'm looking for the best and fastest way. Also the decimal separator must be culture specific.: Application.CurrentCulture.NumberFormat.NumberDecimalSeparator ...

OleDb: why can't I just fill my dataset with the full schema and information from my datasource easily?

This seems really ridiculous.. what am I missing? I have an access database with 5 tables. I want to fill a dataset with the entire contents of the database. Why can't it roughly look like this?: dim dConnection as new oleDbConnection(connection info) dim dAdapter as new oledbdataadapter(SelectCommand, dConnection) dim dSet as oleDb...

Audio conversation over ASP.NET page !

Hello, How can I create an ASP.NET page, that allows users to communicate with audio voice. What must I do to accomplish this job. Thanks. ...

how to get image header & trailer info in vb.net 2008 ?

how to get image header & trailers (jpg,bmp,png,jpeg) info in visual basic 2008, vb.net framework 3.5, visual basic programming language ? ...

Get windows serial for XP, Vista and Seven

I'm retrieving Windows XP license key with this function but it does not work for Vista and Seven. How can I get the license key at both of these Windows versions? Public Function sGetXPKey() As String Dim result As String = String.Empty Dim RegKey As RegistryKey = _ Registry.LocalMachine.OpenSubKey("Software\Microsoft\Wind...

Choices for smartphone accessibility of pre-existing vb.net/sql server desktop crud application

The application is vb.net front end and sql server express backend. The networks are always cabled LANs. Installations are small with only a few users, none of whom would have any technical knowledge. Very little technical support is ever called for and I'd like to keep it that way. I don't know Java or Objective C or HTML/CSS/Javascrip...

Possible to launch a process in a user's session from a service?

In Windows Vista/7/2008/2008R2, is it at all possible to launch a process in a user's session from a service? Specifically, the local session would be most useful. Everything I've been reading seems to say this isn't possible, but I figured I'd ask here before giving up completely. My service signs on as Local System. I'm coding in V...

Checking if a text on a label exists in datagridview

Hi, Can somebody help me with this? I am adding the text of a label into a datagridview. But before i do the insert, i want to check if the text does not already exist in the datagridview. I am stack. Need help. Thanks in advance. ...

DataGridViewCheckboxCell making new row when checked for some reason.

Hi, I have an application in VB 2008 Express that uses a DataGridView to display rows of information. I have a DataGridViewCheckboxCell on each row for selecting the row so the user can mass delete the selected rows. For some reason, whenever I try to select a row via checkbox it adds another row to the DataGridView, is there anyway to d...

WCF Client + Windows Service + ISA = (407) Proxy Authentication Required

"Not this again" I hear you say. Yeah, I know. But this one is different... I think. The scenario: I have a Windows service (running as SYSTEM) that consumes a remote WCF service. The machine sits behind an ISA proxy (no domain, and no proxy username/pwd) and I have added the proxy to my app.config. Here it is: <system.net> <defaultP...

send key strokes to a window in vb.net while it is still minimized

I used to know vb6 and I need to make a quick application. I hope someone can help me with how to send keys to a minimized window in vb.net thanks ...

zebra barcode printing example for CPCL langauge

Is the any sources for examples for barcode printing for zebra rw420 mobile printer?? which is CPCL langauge. ...

Nothing equals String.Empty, null does not equal String.Empty, what am I missing here?

This must've have been asked before but I couldn't locate it. In a mixed code project (VB and C#) we were debugging some old Visual Basic code where a statement as follows could be found: If Request.Params("xxx") <> "" Then 'do something I considered this a bug as Request.Params could be null, in which case the statement would've b...