- Strength to Increase Rep
- +5
- Strength to Decrease Rep
- -1
- Upvotes Received
- 8
- Posts with Upvotes
- 8
- Upvoting Members
- 7
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
I love programming. Done it all my life. I also enjoy showing others how to do something that can help them solve a problem or give them further insight.
- PC Specs
- undisclosed
Re: You could always save each field by using [CODE] SaveSetting(My.Application.Info.Title.ToString, "SearchForm", "Textbox1", textbox1.txt) ' Do a version of the line above for each field you want to save [/CODE] Then when you reload the form put the following in the load event [CODE] Textbox1.text = GetSetting(My.Application.Info.Title.ToString, "SearchForm", "Textbox1", "(default)") [/CODE] | |
Re: So there are a couple of ways to validate the format of an email address. You could always to the simple look for the @ sign and make sure there is a dot (.) somewhere after the @ sign. Or the kind of cool and groovy method of using Regular … | |
Re: Another good site is at developerfusion.com [URL="http://www.developerfusion.com/tools/convert/vb-to-csharp/"]http://www.developerfusion.com/tools/convert/vb-to-csharp/[/URL] | |
Re: Is this what you were looking for: [CODE] Dim TheDateTimeRightNow As DateTime = Now Dim iMonth As Integer = DatePart(DateInterval.Month, TheDateTimeRightNow) Dim iDay As Integer = DatePart(DateInterval.Day, TheDateTimeRightNow) Dim iYear As Integer = DatePart(DateInterval.Year, TheDateTimeRightNow) Dim iHour As Integer = DatePart(DateInterval.Hour, TheDateTimeRightNow) Dim iMinute As Integer = DatePart(DateInterval.Minute, TheDateTimeRightNow) Dim … | |
Re: [CODE] Console.Readline() [/CODE] | |
Re: [QUOTE=adnysam;1716396]Dear Programmers I have an issue when I place a label box / other component in the MDI Parent form and then open any child form the label box/ other component displayed in child form (Show in SpanShot), could you please help me out to regret this problem, Thanks in … | |
Re: [QUOTE=OblibSystems;1683794]Basically im trying to make a game where shapes fall from the sky and the user controls the sprite to avoid them. I have it working but only with 1 block falling at a time. I am using the paint method to draw my shapes. I was wondering how to … | |
Hi... I've been doing ASP.Net for years, but I am very new at PHP. I need to redirect a user to a specific page based on the refereeing page. There's no way to calculate what the page should be so I figure I would have to use MySQL and look … | |
Re: You database is not set up correctly. What it sounds like you want is to have a one to many relationship between sample and tbl_educ. But you can't without having a unique field in tbl_educ. Change tbl_educ to include a new field that becomes it's primary index, so call the … | |
Re: I'm going to assume you have two PC's, one with an IP address similar to 10.1.1.21 and the other 10.1.1.25. In this case both PC's are on the same network. I'm thinking that ICMP (Internet Control Message Protocol) traffic is being blocked either from the installed firewalls on your PC's. … | |
Re: Also, give your system time to process what you've asked it to do before sending the keystrokes by inserting the following prior to the send keys: [CODE] System.Threading.Thread.Sleep(500) [/CODE] | |
Re: It is not very clear on what you are asking. PageID? PageID of what? Permissions to what kind of pages? Are we talking ASP.net, here? | |
Re: You are creating the SqlParameter Object but you're not adding it to the Command Object. Sorry I don't have the time to look it up... but there should be some sort of method of the objCommand to add parameters to it. something like objCommand.Parameter.Add("@Name", SqlDbType.Int, 4) objCommand.Parameters["@Name"].Value = ID.ToString | |
Re: not one line of code... but a subroutine to do all textboxes. And you can make it global so it can be called from Any Form. Add a new code module to your project. Add the following code to the module: [CODE] Public Sub SetTextBoxAlignment(ByRef TargetForm As Form, ByVal tbAlignment … | |
Re: [CODE] Dim sTemp As String = "" TextBox1.Multiline = True TextBox1.Dock = DockStyle.Fill TextBox1.ScrollBars = ScrollBars.Vertical TextBox1.Font = New System.Drawing.Font("Courier New", 12.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte)) For i As Integer = 1 To 222 sTemp = sTemp & String.Format("{0,6} {0, 10:X} {1, 10:C} {2, 10:C}", i, Convert.ToString(i, 8), Convert.ToString(i, 2)) … | |
Re: Without the error message or output, this is just a guess. Are any of the fields in Table1 not string. You might have to convert the Textbox.Text to a double, real, or possibly date. | |
Re: Please tell me you're not using in-line coded connection strings. 1: Hopefully you're using a connection string that isn't hard coded and/or in-line with your code. A. If it is, you need someway to manage and alter that connection string via your application (have an options form or administration form) … | |
Re: Try setting the doublebuffered property of the form to true. | |
Re: Since the listbox implements IList, make a class that implements IList and connected to the listbox's datasource. For example: Here is your basic class [CODE] Public Class clsFunctionInfo Private _idxFunction As Integer Public Property IdxFunction() As Integer Get Return _idxFunction End Get Set(ByVal value As Integer) _idxFunction = value End … | |
Re: What doing the conversion? Visual Studio? Try Artinsoft Visual Basic Upgrade Companion. They have a free 1 month/ 10,000 lines of code limit. But it could get you further along. | |
Re: Quick answer ( I can give more detail tonight if needed ): Look into SyncLock | |
Re: While not a great expert at importing excel data, I tried your code and it does the same thing to me as well. I'm pretty sure it something to do with the Bulk import function and it applying datatypes to each column based on what's in the first row. Is … | |
Re: What kind of error do you get? What happens when you run the code? | |
Re: Without knowing the following, it is impossible to tell you what's going on: 1. The values and types of your variables: nomAudio, nomImage, nomExamen and repTest 2. What exactly is line 119 What also might help is knowing the structure of your database. At the tables AUDIO, [IMAGE], and [TEST] … | |
Re: the four text boxes (tA, tB, tC, tD) one button (cmdCalculate) and one more text box with a name that doesn't start with "t" (OutputTxtAvg) [CODE] Private Sub cmdCalculate_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles cmdCalculate.Click Dim iNumeratorCnt As Integer = 0 Dim iSum As Integer = 0 … | |
Re: Why are you doing a directcast? Where did you get that from? Why aren't you ending the bindingsource's Edit by using a .EndEdit? [CODE] Me.Validate() Me.Product_DetailsBindingSource.EndEdit() Me.Product_DetailsTableAdapter.Update(Me.WhateveryourDataSetisCalled.Product_Details) [/CODE] | |
Re: So you're trying to do conditional formatting of the cell based on it's value? What version of Visual Studio are you using? | |
Re: These text files are they static or dynamic? If they're dynamic, I'll assume another application is supplying them and then there is little you can do. You might be able to create an ACL and limit the number of people who can use and or look at the application and … | |
Re: Your missing something on your btnUpdate_Click Look at the line that reads... [CODE] ds.Tables("Personnel").Rows(inc).Item(0) = txtPersonnelID [/CODE] It's missing something, isn't it? It should be the following... [CODE] ds.Tables("Personnel").Rows(inc).Item(0) = txtPersonnelID.Text [/CODE] | |
Re: The axmscomm control I think has been replaced by the [B]System.IO.Ports.SerialPort[/B] control At least that's what I could find in VS 2008 |