- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 7
- Posts with Upvotes
- 7
- Upvoting Members
- 6
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
Software developer
- Interests
- TV, movies, and driving.
- PC Specs
- ASUS P5Q-Pro with Intel Q9550 with 8GB of memory running Windows Server 2008 Enterprise shown through…
47 Posted Topics
Re: We do something similar where we use the first set of code (modified for your scenario). If the first set works, try the second set too. [code] Dim okButton As HtmlElement = WebBrowser1.Document.GetElementById("OK") okButton.InvokeMember("click") [/code] And [code] WebBrowser1.Document.GetElementById("OK").InvokeMember("click") [/code] | |
Re: First off, is the control "OvalShape1" initialized? Secondly, instead of looping through like that, do a [CODE] For ctl as Control in me.controls if typeof(ctl) is OvalShape andalso ctl isnot nothing then ctl.Size = new Size(20,20) end if Next [/CODE] Thirdly, if you're using .Net 3.5 and on you can … | |
Re: From looking at your loop statement I think I can provide a solution so long as your loop is not removing items from the datatable. Try the following: [CODE] For Each drRow As DataRow In dtTemp.Rows listbox1.Items.Add(drRow.Item("ColumnName").ToString) Next[/CODE] With this you wont have to use MoveNext or even the data … | |
Re: You have to cast the items to the checkbox type in order to access its abilities. Use: [CODE]CType(Me.Controls.Item(chkbox1),CheckBox)[/CODE] or [CODE]DirectCast(Me.Controls.Item(chkbox1),CheckBox)[/CODE] or [CODE]TryCast(Me.Controls.Item(chkbox1),CheckBox)[/CODE] If you have other controls, then you need to do a check before you cast: [CODE]For each ctrl as control in me.controls if TypeOf(ctrl) is CheckBox then 'case … | |
I've deployed a desktop application utilizing 3rd party dll's to a test terminal server in order to report its viablity. In my testing I've received this error: [QUOTE]An unhandled exception of type 'System.IO.FileNotFoundException' occurred in General Purpose.dll Additional information: Creating an instance of the COM component with CLSID {8EB296F1-6C46-4BC1-9F00-B49F14B57DB8} from … | |
Any suggestions on how to edit the Bios caption field? I've been requested to do so for a customer and the Win32_Bios class has the caption set as read only. I've yet to find anywhere on how to set this in Windows PE. Apparently it's been done somehow before, I'm … | |
Let me preface this by saying that I've only taken 1 formal programming class and everything else I've learned is from trial and error or Google (forums, blogs). I have never taken an algorithm class or an advanced math class. In the process of making my current application, I need … | |
Re: Have you looked into using the String.Split function? Do Sentance.Split(" ") and it will return an array with the delimiter being the space, which is exactly what you need. Just take the Array.Length-1 and you have your total number of words. Otherwise, you'll have to loop through each character in … | |
Re: I think you can accomplish this with relative ease. First, create a new component, naming it whatever you want to call your new textbox control. Second, in the designer (must have "Show All Files" selected for the project/solution) replace "Inherits System.ComponentModel.Component" with "Inherits System.Windows.Forms.TextBox". Third, back in the non-designer file, … | |
I'm normally a VB.Net/C# guy but because of a third party dll that isn't working in .Net, I'm having to interact with it using C++. I'm able to read and understand (for the most part) C and C++, but I've never actually written any code in it. The third party … | |
Re: You're going to have to do a check for each symbol and I'm sure you could probably come up with a more dynamic way of doing this to incorporate multiple operations. But here's one of many options that can be done in order to do addition. [CODE] Dim sTemp As … | |
Re: I think you need to wrap your search string with %. I regularly reference [URL="http://www.1keydata.com/sql/sql.html"]this page [/URL] for SQL information and it says your statement should be as follows: "LastCus = "Select * from tblCustomer where ((Cus_Name Like '%James%'));" HTH | |
Re: The following should work for you. I would recommend using the column name if it is a dynamic column otherwise I would use the design time created column index location, rather than saying "Search only column 1". I say this because the user may re-order the columns and column 1 … | |
Re: Are there some ideas you've thought of already? What is your level of expertise (i.e. how comfortable are you in .Net)? What are your interests? Are there requirement for this homework? Answer these questions and I can give you some suggestions. | |
Re: I'm not quite sure what you're looking for but I'll give it a shot. After updating some code from a co-worker, I've had to begin using defensive coding practices so this may be overkill, but it should cover all of the possibilities. My co-worker would set Textbox.Text = nothing when … | |
Re: Take a look at [URL="http://vb.net-informations.com/communications/vb.net_socket_programming.htm"]this[/URL] as a good starting point. There are also a lot of examples if you use a search engine. To "crash" your server, just stop the server application or close the socket. | |
Re: If you don't have to validate any of the data before entering it (like we do here) you could probably skip the temp table and load directly from reading the file into memory and passing it to the API. If you do have to validate any information or need multiple … | |
Re: Something like the following should work for you: [CODE] Private Sub TextBox1_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles TextBox1.KeyPress e.Handled = e.KeyChar = CChar("0") End Sub Private Sub TextBox2_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles TextBox2.KeyPress e.Handled = Not (e.KeyChar = CChar("Y") Or e.KeyChar = CChar("N")) … | |
Re: What is "btech"? How about employee time tracking application? It could consist of an Access or SQL database with a few tables and would involve both looking up and modifying the data. At the end of each pay period, it could output the amount the employer should pay. You could … | |
Re: How similar do the forms need to be? If they're almost identical, find the common elements and create a base form. From there create inherited forms using the base form, adding the changes as necessary to the higher level forms. Doing so will having the base form changes effect the … | |
Re: Use the same SQL statement used to create the table on the server and pass that through your code. When the application exits (whether purposefully or not) the table should be deleted. I unfortunately, haven't done so in the past but after a quick search, I've found [URL="http://www.vbdotnetheaven.com/UploadFile/manishkdwivedi/creatingTable04192007052320AM/creatingTable.aspx"]this[/URL] post that … | |
Re: It looks to me that you're not populating Client, thus the application is running properly since "Longvue" and "Roseleigh" aren't in the string Client. Set the client value to something and you should be good to go. | |
Re: You could change the integer definitions to be set to 0 every time so that it will always set them to 0. I.e: [CODE]Dim totalA08minus As Integer = 0[/CODE] I don't necessarily see this being the issue, but from what I can tell, it should be working properly. As a … | |
I have a DataGridView for user input into a form. The first two columns will always be visible as they are the Transaction Type and Transaction Sub Type, respectively, both of which are DataGridViewComboBoxColumns's. Currently, after the first combo box has been changed the second combo box will populate with … | |
This is a request for any experience with software, suggesting software, or suggestions to solutions for the problem listed below. We've recently integrated a repair facility into our large volume deployment (lvd) facility and our current software is not up to the task. [b]Background[/b]: The lvd has been using crm/manufacturing … | |
Re: Are these "columns" separated by anything, like a comma? If so, you can open it up in Excel and use excel to paste the new word into all the rows. You may need to changed the file extension (the .txt) to ".csv" in order to Excel to handle it correctly. | |
Re: Let me preface this by saying that I've done some searching for you as they'll probably give better explanations that I will. If you have anymore questions after reading the links, then come back and we'll attempt to answer them. Good luck in your interview! 1) [URL="http://lmgtfy.com/?q=versioning"]Google search, select the … | |
Re: Using the KeyPress event, you can trap any value that the user types. So here's the code to handle the quotation: [code=vb] Private Sub TextBox_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles TextBox.KeyPress If e.KeyChar = Chr(34) Then e.Handled = True End Sub[/code] where TextBox is the name of … | |
Re: Perhaps you could give us some insight into what you like and we can give you some suggestions. Also, try considering editing your original post with proper English in order to receive more responses. | |
Re: Have you tried [URL="http://support.microsoft.com/kb/914277"]this from MSDN[/URL]? | |
Re: I'm in the middle of debugging my current app, so I can't throw together a test to try out your problem, but we can go with the other solution I had mentioned in the previous post of adding handlers. What events are going to capture from the child form? Once … | |
Re: There's nothing wrong with your Visual Studio. Somewhere, your friend is creating a variable just like you. Otherwise an exception would occur (I believe it's the NullReferenceException) because the form hasn't been initialized before calling the Show() method. I have to note though, I haven't messed with .Net above 2.0 … | |
Re: For something like this, I usually create a property on the child that will give the information to the outside world and create the childform with a variable parent form withevents variable or add a handler to the form close event. Then, in the parent form, trap the form closing … | |
Re: [QUOTE=GeekByChoiCe;951540]if you want to use just one Key you can do this via the "text" property. if you set the button text to My&Button then "b" will be the shortcut. hope it helps[/QUOTE] To piggy back what he said, you must also have UseMnemonic on the button set to true … | |
Re: [QUOTE=fuego2008;951630]This web site may help you: [url]http://sites.google.com/site/supercodebank/home/vb_net[/url][/QUOTE] How'd you come across that site? That's a great resource! | |
Re: I had a similar problem with my additional RAM (when I went from 4 to 8 GB), I had to increase the voltage on the RAM (to the manufacture recommendation) via the motherboard BIOS and it's been working perfectly ever since. Try that. | |
Re: [QUOTE=sknake;941204]"[b]Inherits[/b] System.Windows.Forms.Form" did you intend inherits or did you mean "import"? Also use [icode]System.Windows.Forms[/icode] and dont repeat the last class name.[/QUOTE] I think it's part of a form where he discarded the class name but left the inheritance modifier. :confused: To the OP, do you get the same error when … | |
Re: [QUOTE]Does anyone have any ideas about what is wrong?[/QUOTE] You need to use the do/while or do/until loop instead and use an integer value to loop through all the items. Because the for loops store the top number at the beginning of the enumartion, deleting a row should not be … | |
Re: How are you wanting it to be serialized is a good follow-up question? It's possible to use both binary serialization of any object or xml serialization (of which I've only used on datatables). If you just want to send strings through a socket, then I would use the following: [code=vb]ByteArrayToSendToSocket … | |
Re: Place the questions and radio button in separate group boxes. I wish I could give you the nice answer for why this is the way it is, but I can't formulate it. Sorry, I'm tired. :yawn: Like so: _____________ |Question 1: | O Answer1 | O Answer2 |____________ _____________ |Question … | |
Re: If I remember the documentation correctly the error I received when installing SQL Server 2008 Developer Edition with the Windows Firewall had to do with the default ports not being open. Once the installation is done make sure the firewall has the proper ports open for remote access to the … | |
Re: I'm by no means an expert, I started like you with reading books though, and the best advice I had been given was find an app that you want and make it. Because of that I made an app that sent me an e-mail when the my computers IP address … | |
Re: Have you tried looping through the listbox's items property with an integer to keep track of the count? The code would be like this: [code=vb] Dim IntegerVariable as integer = 0 if TheListBox.Items.Contains("LookForMyString") then For each obj as object in TheListBox.Items If obj.tostring = "LookForMystring" then IntegerVariable+=1 'or 'If Obj.ToString= … | |
Re: I had the similar problem with a Pervasive ODBC adapter, have you tried opening the connection before Executing the query? I.e.: [code=vb] command.prepare() cn.open() command.ExecuteNonQuery() if not cn.State = ConnectionState.Closed then cn.Close() [/code] | |
Re: Could you post some code of your procedures so we can see what's causing the problem? | |
Re: If you're only going to have 1 root node then I would go with a TreeView1.Sort() before TreeView1.ExpandAll(). If you have more than 1 root node, then the root nodes will be sorted as well so you may have to throw them into a list and sort the list then … |
The End.