vb.net

Session time extension works for first time..warning popup doesn't show up after session extended for first time

Hi below is the code i'm using to extend the session time. For the first time pop up comes and when i clik ok session time is also extend but popup never comes up again when the session is expiring for the second time etc. Can any one correct me why the setTimeout is not invoking ShowSessionWarning for second time. function showSe...

VB "Financial.Pmt" equivalent in C#?

There is a built in function from the Microsoft.VisualBasic assembly. I can use it in VB like this: Financial.Pmt((dAPR / 100) / 12, iNumberOfPayments, dLoanAmount) * -1 My current project is in C# and I need to use this function. Answers on the web say just add the namespace and assembly and use the same in C#- but this is not true! ...

Gridview invalid column name

I have a gridview0 in a multiview and when I click select on a row I have the GridView0_SelectedIndexChanged sub change to a different view in the multiview, which has a different gridview1 but the same datasource as gridview0. This is when it errors out and it displays the invalid column name error, with the column name being the datak...

How to represent Unicode Chr Code in VB.Net String literal?

I know you can put unicode character codes in a VB.Net string like this: str = Chr(&H0030) & "More text" I would like to know how I can put the char code right into the string literal so I can use unicode symbols from the designer view. Is this even possible? ...

Wheres the datagridview in WPF?

I just started playing around with WPF today, and I couldn't find the datagridview control. What gives? Is it called something else? Please help a very confused individual. Thanks ...

Why is this .net UIAutomation app leaking/pooling?

I've got an app using .net UIAutomation, it eventually runs out of memory and crashes just monitoring windows being shown and closed. Seemed easier to show this in VB than C# but happens the same either way. It appears to be a leak/pool in the underlying proxy objects. Most of the memory is not being shown as in use as .net memory. An...

porting vb6 app to VS2008 vb.net - make compiler flag unitialized form's private variable as error

I can make the compiler give me an error (Use of variable prior to assignment) with: private sub Test() Dim ord As Order Dim ord2 As Order ord2 = ord end sub but not with: Friend Class frmReceiving ... Private mobjOrder As Order ... private sub Testing() Dim ord2 As Order ord2 = mobjOrder end sub How can I make ...

how to convert a string to a datatimepicker box

i have a datetimepicker box on a form that gets its value from a datagrid (only date) i am trying to assign the string date value from the grid to the datetimepicker box, but is not working ...

Failed Logon Counter for Local Users

Is there a way to programmaticly get the failed logon count for local Windows users in XP and later? Alternatively, is there a way for my service to get a message when a failed logon occurs? Currently coding in VB.NET, but will take any suggestions in any language. Thanks for your time. ...

Get MAC Address when network adapter is disabled?

Hi All, Is there any way i can retrieve MAC Address when Network Adapter is disabled in .net? Thanks in advance, ...

how to create Windows application installation/setup select component window?

I am creating a windows application setup project using Visual studio 2008 setup project. This setup will have following steps: Splash screen Select Installation folder/directory Database configuration Select Components I am having trouble finding a way to create such installation window in setup. could you please help me to find a s...

Shortening a repeating sequence in a string

I have built a blog platform in VB.NET where the audience are very young, and for some reason like to express their commitment by repeating sequences of characters in their comments. Examples: Hi!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! <3<3<3<3<3<3<3<3<3<3<3<3<3<3<3<3<3<3<3<3<3<3<3<3<3<3<3 LOLOLOLOLOLOLOLOLOLOLOLOLLOLOLOLOLO...

Can't view Visual Web Developer Websites when copy to web server

Hi, As far as I can work out I should be able to copy a web project/application to my IIS Web server and be able to see it as I do when designing it on my development computer. The problem is once I copy the folder over to my web server and then try to view it the browser it says Error 404 not found. There must be a real simple fix for...

There are fewer columns in the INSERT isn't the answer

Hello, I have an application that converts one database to another and one of the functions I use is insert_Note below. This application has multipule threads all inserting diffrent data into the new database. The code below works for a number of inserts ranging between 24 and 120 but then fails with the error: There are fewer columns ...

Jabber-Net: Get user's JID in a RosterTree

Hi, how do I get the user's JID in a RosterTree? I can get the clicked user's node with NodeMouseDoubleClick but i don't know how to get his JID. Private Sub RosterTree_NodeMouseDoubleClick(ByVal sender As Object, ByVal e As System.Windows.Forms.TreeNodeMouseClickEventArgs) Handles RosterTree.NodeMouseDoubleClick If e.Node.GetType()...

How to prevent design mode enabled child control from being moved outside of its containing control?

I have a UserControl that contains other controls that I would like to be able to rearrange or resize at design time. So I have a custom designer for the UserControl that inherits from System.Windows.Forms.Design.ParentControlDesigner, and I call EnableDesignMode on the child controls from within the designer. That way, at design time,...

Can list.findall reference a variable?

Such as: mylist.FindAll(Function(item) item.property = variable) The reason I ask is if I use syntax like this, I tend to get a string to whatevever conversion error, which makes me think "variable" is being treated literally as a string. Thanks. ...

A tool to list down the user defined functions, classes in Visual Basic, C#, C++ ?

Hello, I need a tool which parses and lists down the user defined functions / classes in the source code of my project. The code can be in either Vb, C#. Please let me know if there exists such tool. Tried a lot of google search But i did not see any such tool. Project Analyzer, codesmart do not have such feature. Thanks in advance ...

How to prevent value changed events from firing on form initialization VB.NET?

Consider a simple VB.Net form with a couple radio buttons and a checkbox. Each of the radio buttons has a CheckedChanged hanlder setup that performs some action based on the state of the checkbox. My problem is, when I initialize on the default radiobutton to be checked (from the designer properties window) the CheckedChanged event is ...

Why aren't code regions allowed within method bodies in VB.NET?

Normally I wouldn't "need" or even consider a ridiculous feature such as code regions within method bodies but: I'm refactoring VB.NET code where methods routinely run five hundred lines and the references are so tightly coupled that the code defies simple refactoring such as method extraction. And that's why I thought I would try regi...