Search Results - VBForums

Search:

Type: Posts; User: circuits2

Page 1 of 13 1 2 3 4

Search: Search took 0.03 seconds.

  1. Re: How to use Report Viewer with Visual Studio 2012 Express

    The WinForms.dll is installed as part of the ReportViewer runtime, not the ReportBuilder. The install path may be slightly different on your system but a simple search will help you find it.
  2. Re: VS2012 .NET 4.5 - StreamWriter produces Garbage

    Just noticed something else that is weird. The default encoding is UTF-8. I have tried using Encoding.Default, which produced the results previously stated. However, if I use Encoding.UTF8, it...
  3. Re: VS2012 .NET 4.5 - StreamWriter produces Garbage

    Here you go Niya!
  4. Re: VS2012 .NET 4.5 - StreamWriter produces Garbage

    Yes, I seem to be stuck in the notepad black hole of encoding problems. :wave:

    What I don't understand, is the default encoding is UTF-8, which notepad should read just fine, but doesn't want to...
  5. Re: VS2012 .NET 4.5 - StreamWriter produces Garbage

    Strangely enough, if I open in WordPad it looks normal.........?
  6. Re: VS2012 .NET 4.5 - StreamWriter produces Garbage

    Sorry, opening in Notepad.
  7. Re: VS2012 .NET 4.5 - StreamWriter produces Garbage

    The file I am creating will be read into another system, and the system specs require a flat ASCII file (no unprintable characters)
  8. Re: VS2012 .NET 4.5 - StreamWriter produces Garbage

    The file doesn't exist, so StreamWriter creates it at runtime.
  9. Re: VS2012 .NET 4.5 - StreamWriter produces Garbage

    No, it's definitely English. I tried going down that path too, so I have tested using Encoding.Default and Encoding.ASCII but still got the same results. I don't see how this can happen when using...
  10. Re: VS2012 .NET 4.5 - StreamWriter produces Garbage

    If it helps at all, I am actually writing fields, so it is actually a little closer to this:

    Dim string1 As String = "123"
    Dim string2 As String = "789"
    Dim WriteThisInfo As String =...
  11. VS2012 .NET 4.5 - StreamWriter produces Garbage

    I very rarely write to text files, but have encountered a situation where I cannot avoid it. I am using a StreamWriter to write lines of text to a text file. Here is a sample of what I have:


    Dim...
  12. Replies
    6
    Views
    529

    VS 2010 Re: ListBox Order Selection

    Random is random. Period. Seriously, what point are you trying to make?
  13. Replies
    6
    Views
    529

    VS 2010 Re: ListBox Order Selection

    In that case the term random does not apply at all.
  14. Replies
    6
    Views
    529

    VS 2010 Re: ListBox Order Selection

    For top to bottom and reverse you can simply sort the items in ascending or descending order before starting your timer. For selected item don't activate your timer and just call SendCurrentItem() in...
  15. Replies
    4
    Views
    285

    VS 2005 Re: Concurrency violation

    hod = dr("HPROP_NO")
    lat = dr("lat")
    lon = dr("lon")
    date1 = dr("hoteldate")

    The first thing I see is you are not properly accessing the items within the DataRow. It should look like this:
    ...
  16. Replies
    13
    Views
    898

    Re: Question About a Homework Assignment

    You should create your own thread instead of hijacking someone else's.

    That said, what kind of control is txtdecide? If it is a textbox or label then you should be using txtdecide.text = "You must...
  17. Re: Deploying ClickOne application with network share

    What I do on my development computer is create a network share and then map the drive using a letter that can be mapped on clients. Then I set the publish and install path using the local drive...
  18. Re: Deploying ClickOne application with network share

    Are the client computers installing directly from a network share, or have they mapped a drive? Your situation would make sense if they have not mapped a drive with the same letter. Since it is "D"...
  19. Re: SQL2012 Express - Trying to set two bits

    Nevermind, I finally figured it out. I forgot to turn off the "produce annoying results" property.
  20. [RESOLVED] SQL2012 Express - Trying to set two bits

    This is driving me crazy:

    I'm trying to insert records into a SQL 2012 Express database by specifying the columns of data. Two of the columns are bits and both receive the same value. However, at...
  21. Replies
    23
    Views
    1,436

    Re: Date Must Be Between 1900 and 2100

    Start by proofreading:

    format = "dd/M/yyyy"

    If format < Then


    Only one digit for Month? And if format is less than what? Also, format is a string, how can it be less than anything?
  22. Replies
    5
    Views
    1,297

    Re: Database queries

    I'm guessing you haven't paid attention much in class and are now hoping someone will give you the code so you don't have to figure it out on your own?

    Make an honest effort to complete the task...
  23. Re: [RESOLVED] Backgroundworker - Can not get datagrid to update

    I agree. I'm curious how it could do this without throwing an exception. If there is only one instance of the form, the default instance, then the backgroundworker would either have to create a new...
  24. Re: [RESOLVED] Backgroundworker - Can not get datagrid to update

    I ran into the issue with default instances a few days ago, which is how I spotted the problem. I was using a backgroundworker to update properties in the default instance of a form. The...
  25. Re: Backgroundworker - Can not get datagrid to update

    See if this helps you at all. I made some changes. I created a new project with one form (Form1), one datagridview (DataGridView1), and dropped a backgroundworker (BackgroundWorker1) onto the form...
  26. Replies
    2
    Views
    458

    Re: ListView adding items ( 3+ columns )

    First Google Search:

    http://www.dotnetheaven.com/article/listview-control-with-multiple-column-in-vb.net
  27. Replies
    22
    Views
    939

    Re: Just starting out VB2010

    A lot of us came from the same roots but have already "evolved" lol. Searching the forum is a great place to start.
  28. Re: Backgroundworker - Can not get datagrid to update

    Everything that is called by DoWork needs to be self contained without relying on resources that are provided by the UI thread. Variables that are declared at the top of your Form class are in the UI...
  29. Re: Backgroundworker - Can not get datagrid to update

    You could move everything except the event code to a module and it would work fine.
  30. Re: Backgroundworker - Can not get datagrid to update

    Ok, still, all of those variables are declared in the UI thread. That means that any routine that is called by DoWork cannot use them. Also, you need to remove the MsgBox calls from DoWork....
  31. Re: How to get a MDI child form to cover the controls on the MDI parent form usin VB

    So your password screen is the MDI Container? It should actually be a child form as well....
  32. Re: Backgroundworker - Can not get datagrid to update

    Variables that are declared in the ProgressChanged event are declared in the UI thread. You need to declare it in the DoWork event as well, otherwise the data is never fully passed.

    Edit: Sorry,...
  33. Replies
    22
    Views
    939

    Re: Just starting out VB2010

    It would be best to start by searching the forum for similar questions about converting from VB6 to VB.NET. This is a horse that has been beat to death already. You have a long road ahead of you if...
  34. Re: Backgroundworker - Can not get datagrid to update

    Isn't "D" a string array? If so, then just add the array without trying to specify the elements:


    Me.MainGrid.Rows.Add(D)


    Edit: Just now noticed you initialized with 20 elements. Are they...
  35. Re: How to get a MDI child form to cover the controls on the MDI parent form usin VB

    I think you need to look into Modal and Non-Modal forms. I believe you are trying to duplicate the function of a Modal form.


    Edit: Can you give us a little more information about what exactly...
  36. Re: How to get a MDI child form to cover the controls on the MDI parent form usin VB

    Setting the MDI Container property on a form adds an MDI Client control to it. This is just another control that is set with a dock style of Fill. To re-iterate, why on Earth would you want to do...
  37. Replies
    9
    Views
    439

    Re: Simple Question

    Glad you got it worked out. In the future, placing this at the top of your code will help you find the problems:

    OPTION STRICT ON
    OPTION EXPLICIT ON
  38. Replies
    9
    Views
    439

    Re: Simple Question

    Check out the AcceptButton property on your form. It sets which button is automatically pressed when the user hits Enter.
  39. Replies
    1
    Views
    262

    VS 2012 Re: Panel inside Usercontrol

    The user control link in my signature might help explain it. You cannot access a child controls properties directly. You have to handle them through the parent control.
  40. Replies
    9
    Views
    439

    Re: Simple Question

    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click

    Dim strTrseq As Integer
    Dim strTseries As Integer
    Dim strPath As String
    Dim...
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Featured


Click Here to Expand Forum to Full Width

Survey posted by VBForums.