Answer Questions
jeffehrl Trying to set MaskedTextbox Height Property
I am trying to find a way to adjust the height of a MaskedTextBox. The height seems to depend only on the font size. I tried to create my own class and use SetStyle to allow me change the height but it didn't seem to have any effect. I set the parameter to True and False, both with the same result. The height changed according to the font size and I could not change it. The code is shown below. What is the purpose of the FixedHeight style Is ...Show All
jennitro Visual Basic Performance for 3 Million record/rows
I have a Visual Basic 2005 .Net program that I written that read a 2000 and 2005 database. I was very surprise and shocked when it took three days to process only 600,000 rows of a 3 million row result. Because of the time it took to only process 600,000 rows I canceled the batch job and did everything in SQL using Query Analyzer. I was able to process the same volume in only 45 minutes. I was greatly disappointed in the results. T ...Show All
Brian Houston, TEXAS Remote connection to SQL Server 2005
I am working with Visual Basic 2005 and SQL Server 2005 Developer Edition on the same PC at home and everything has been fine so far. I have however transferred Visual Basic 2005 onto another PC on my home network and I am experiencing problems making a remote connection to the database. When I run the visual basic project I get an error message which states that a connection to the server was successfully made however an error was encount ...Show All
Tomay Why can't I UNLOAD a form in a comboBox handler ?
I have a problem which I hope someone can help me with, it only takes 2 minutes to replicate. If you have a form with nothing on it except for a single command button you can click on that button and UNLOAD the form using the following code: Private Sub Command1_Click() Unload Me End Sub However, when I try to UNLOAD the form due to a ComboBox event instead, using the following code for instance: Private Sub Combo1_Change() &n ...Show All
BrandonM Sub Procedures
Hi Folks, Can you call one sub procedure (clearButton_Click) and use it on the same form in another sub procedure (clearToolStripMenuItem_Click) without coding it all over again. Thanks.......Eric No problem, glad to be of some help :) Alex, yes, this is what worked: Private Sub clearButton_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles clearB ...Show All
keyler Datagridview autoformat
What happened to the autoformat option for the datagridview on visual studio.net professional You have to format the columns yourself but It will autogeneratecolumns, and autosize them for you. Ken, I know I can change it manually, but I'm just wondering why I can't autoformat it, since documentation says I could: http://msdn.microsoft.com/library/default.asp url=/library/en-us/dnvsdev05/html/ ...Show All
ichNET IDRISI API SERVER
I have tried your code, but that it is not the problem I am having- I supect it isn't working because the API I am accessing is an exe file not a dll and is designed for VBA not for the new VB.net framework. The structure and way of dealing with API is different, therefore it doesn't work. Thanks anyway Leo Are you forgetting add the imports <module reference name> at the top of your code If your i ...Show All
micber Login in VB app
Can you help me! I have a SQL Server 2005 with a database on it. I would like to create a login form on a VS 2005 VB app that validates a user's credentials. Thanks guys, Zack Owens I know how to add the login form. I already have this created. I just need the authentication logic. Hi, from my points of view, I would suggest using SQL code to do the select. If doesn't exist. then just reject the user with the authentication er ...Show All
ncarty97 combobox fires while loading data
I am adding items to initially load a combobox from a database. With cmbLocation .DataSource = gConn.QueryDBTable("Select * from chwhse_WAREHOUSE order by WHSENO") .DisplayMember = "WHSENO" .Valu ...Show All
vikki_k1 How do I find documentation on specific classes or objects?
I am a hobbist. One of my ongoing problems is when I get an idea about how I want to solve a certain situation and get way too many returns on Google or MSDN. Example: I want to write an app that will ping a remote host using two switches to the CMD utility ping, like this ping hostname -f -l 1200. This would ping the host with and MTU of 1200. So I go to Google and start searching. After a while I come accross a nice little object called & ...Show All
JBrown Command windows
Hi how can I open the command window in Visual Basic Express Edition. I looked in the help content, and It guided me to View > Other Windows and Command Window, but there is no such option in there. There are two places you can rig this up if your question is about the IDE. At least on the larger systems, there is an option under Program | Properties | debug (I believe). Secondly I've used Tools - External Tools  ...Show All
Alexander Ryumshin httpwebresponse not support arabic language !!!!
I have to useing httpwebresponse for two pages, One is jsp and other asp. the charset is UTF-8 for both of them, while reading for jsp the arabic character are readed but in asp are not readed it come as spaces In asp page I use that code <%response,charset="UTF-8"%> what is the problem Please attach the code to repro thanks I think you didn't get me. what I mean ...Show All
rwolinski Insert into db
My problem is this. I have an insert statement and I create a sqlcommand object and executeScalar() to run the statement. Now I have to take the identity of that inserted row and put it into another table. How can I get back the identity off the newly inserted row Thanks if you are using stored procedure, u have to store the value of the identity into a parameter. For example: @MyID int OUTP ...Show All
Olafdebree Get Index to Key in a Collection
I have a Collection with several items. Now i want to get the index of an item i know the key of. Code: dim a as new collection fill_collection_with_data(a) msgbox (getIndexOfKey("the_key_i_know", a)) 'should now output the index to entry with key named "the_key_i_know" /Code I hope someone could tell me how to create a good getIndexOfKey-function. The collection will hold a lot of data (around 100k entries), so just going ...Show All
chamm3r Checked List Box in VB DOT .NET - Checked items gets unchecked when used inside Tab Control and while tabbing
Hi If you are using a Checked List Box Control into a Tab Control on VB .Net application, then when you switch between tabs, the checked items gets disappeared. This bug is already listed in the Microsoft article. I figured out a way on how to avoid this error. Just by adding the checked list box in a user control and then using the user control in your tab control will not erase the checked items list. Please try. Thanks, CM ...Show All
