Quantcast
Channel: VBForums - Visual Basic .NET
Browsing all 27372 articles
Browse latest View live
↧

VS 2012 My aplication uses 100% of a CPU core even if idle.

I'm developig a simple aplication with vb.net on visual studio 2012 but it's very CPU consuming, i'm running it on a I5 with 4 cores and always cosumes exactly 25% of the CPU, one full core, even if...

View Article


VS 2010 Diff btw

Code:         HTML Code:         Public Class Person         Public personid As integer                         Public Sub New(ByVal id As integer)             Me.personid=id         End Sub End Class...

View Article


VS 2008 Save Checkbox Value in Access databse thru SQL

Hey bro., Please help me to save the checkbox value into access database. below is my code to save one record. Thanks, vb kid Code:     Private Sub btnAdd_Click(ByVal sender As System.Object, ByVal e...

View Article

VS 2012 [RESOLVED] Get data mismatch with sql statement

Hi, I have been struggling with this sql statement for my vb application and was hoping someone could offer me a bit of help please? What I'm trying to is basically count all Bookingnumbers that = 1...

View Article

Not a valid Win32 Appliation

i created a small billing software for my friend, the software is connected to an 2007 MS Excel File. Everything was complete and i copied the .exe file from my laptop to his computer. But it did not...

View Article


[RESOLVED] Which Form Event to use on re-entry to a form?

I have a Windows app that has a login form. Within this form, another form is called and then eventually returns to the calling form. What I need to know is what Form Event is the best to use when...

View Article

VS 2010 [RESOLVED] InvalidCastException but is it?

I am trying to raise an event upon detection in changes to my EWS PullSubscription. This is my code. vbNET Code: Public Delegate Sub pullSubscriptionEventHandler(ByVal subscription As pullsubscription,...

View Article

[VB2010] - by some reason i think that i lose the text cursor position:(

i have 1 'if' that if i key press any key(can't be a number or a letter) the last word writed(where is the text cursor) must be colored and upper cased(the 1st letter). these code works. but if i edit...

View Article


ListBox takes too long time to show

I have a Form2 with ListBox, i fill the listbox with the content of big size text file, this isn't the problem but the problem is occur when showing Form2, the form take long time to show. Code:...

View Article


Fastest way to populate Unbound DataGridView from 2D Array of Strings

Hey Folks, I have an Unbound DataGridView that will display roughly 700 columns and 50 rows of unbound data (it gets calculated by the code and is not a lookup from a database of some sort). Right now,...

View Article

VS 2010 [RESOLVED] If selection problem

Hi Guys, I never thought i would need help here it looked so simple lol code: Code:             For Each itm As String In formMain.ListBoxMain.Items                 Dim arraySplit As String() =...

View Article

Can't get the ValueMember property to set for a ComboBox?

I have several ComboBox controls on a form. I am loading them manually using a For Loop. When each ComboBox is finished loading, I set the ValueMember/DisplayMember properties. However, when I go to...

View Article

Treeview problem

From MasaSam's excellent tree view sample Why does this work --> Public Sub New() Me.New("My Computer") End Sub Public Sub New(ByVal text As String) MyBase.New(FileSystemNodeType.Computer, Text)...

View Article


Form does not center screen

I am building this form dynamically, and even though I put in - Code: Me.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen It still fails to center on start up. I have no idea why it...

View Article

Detect Key Press while Form is minimized (Visual Studio 2012)

Hi everyone, I can't find the way to detect when a key is pressed while the form is minimized, help please? I got this piece of code: Code: Private Sub Form1_KeyDown(ByVal sender As System.Object,...

View Article


VS 2012 Exception Handling

I have many Try, Catch blocks in many of my functions. My question is this: Is it possible to turn off the exception handling in my project temporarily? I see that there is a Debug->Exceptions menu,...

View Article

dropdownlist duplicates when refilling dataset

I have a dropdown list that fills correctly when I first create the datatable with the first pull of data for a locatioin. When I go back and choose a different location, it still is holding the...

View Article


Skype URIs in winforms?

Anyone know how to use Skype URIs in a visual studio winform application. I cannot find a single line of code after hours of search. Thanks.

View Article

VS 2010 Save file in visual basic 2010

Hi, How can i save something like this? Name(1,0) = "jona" Name(1,1) = "helena" My xmlserialization wont work for this because its a multiple array. Thanks in advance

View Article

Datatable:xml query for xml column

If i load xml datatype column to a datatable then can i perform xml query on it? SQL server supports queries like .exist, .value on xml columns. I am trying those kind of queries on datatable. Below is...

View Article
Browsing all 27372 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>