dcsimg

Search:

Type: Posts; User: OICU812

Page 1 of 4 1 2 3 4

Search: Search took 0.01 seconds.

  1. VS 2013 Re: DataGridView Event that happens when editing icon shown in RowHeader

    I think that is exactly what the OP is looking for when using a DGV in virtual mode. This code causes the pencil edit icon to switch back to an arrow when the cell value is committed.


    ...
  2. VS 2013 Re: Trying to Capture Errors from an External Process

    Try using the Process.ErrorDataReceived Event , andalso possibly set the Process.SynchronizingObject to your Form to circumvent threading problems
  3. VS 2013 Re: How to show/hide text box based on radio button value?

    This is where Bindings come in handy. To test the code below just add 3 TextBox controls and 3 RadioButton controls to a form and add the code in the FormLoad event.


    Private Sub...
  4. Replies
    8
    Views
    727

    VS 2008 Re: regex to remove spaces

    This regex should do what you need. It will remove all whitespace including line breaks from the beginning and end of a string.
    "\A\s+|\s+\z"

    However the "Trim" function of a string returns the...
  5. Replies
    4
    Views
    575

    VS 2013 Re: Updating a textbox in a thread

    Private Sub TaskA()

    For i As Integer = 1 To 100
    System.Threading.Thread.Sleep(50)
    Next

    Me.BeginInvoke(Sub() Me.TextBox1.Text = "Done")
    ...
  6. Replies
    2
    Views
    750

    Re: Get data from JSON

    System.Runtime.Serialization.Json namespace has the tools you need to need. You can make classes with the DataContractAttribute applied to the class and use the DataContractJsonSerializer to...
  7. Replies
    1
    Views
    586

    Re: Setting some DVG Control colours

    Handle the DataGridView.CellFormatting Event. Using the DataGridViewCellFormattingEventArgs, check for which cell column is being formatted and apply your forecolor and backcolor using the event...
  8. Replies
    13
    Views
    1,950

    Re: My.Resource..Save Causes GDI+ Error

    I had the same problem a few years ago when I created an image using Image.FromStream() and then later trying to serialize the image. The problem is the internal stream gets disposed and is...
  9. VS 2013 Re: Custom property binding not working???

    The way you have the DataBinding set up, the object value.ServerType PropertyChangedEvent should update the Property "EnumValue". Possibly you have it wired backwards.
  10. Replies
    2
    Views
    488

    VS 2010 Re: SelectedText wont work?

    TextBox1.SelectedText += "some text"

    That code will insert "some text" at the caret position.

    What do you want it to do?
  11. VS 2012 Re: Missunderstood synclock or not working properly?

    LOL That is so so true.
    I've begun writing to this forum many many times but never ended up posting because I solved the problem by writing the question.
  12. VS 2010 Re: Call a base class Private interface method from derived class without reflection.

    Jmc: I've thought about using the the BindingList(of T) but the the reason I am using the BindingSource is that several years ago I made the my bindingsource have multi-level undo/redo capability...
  13. VS 2010 Re: Call a base class Private interface method from derived class without reflection.

    It is an Interface Method. Yes it's private but it's an Interface method.
    I know you know how to access an interface method but for those who might not this is an example:



    Dim...
  14. VS 2010 Re: Call a base class Private interface method from derived class without reflection.

    That is exactly what I thought would work and was the first thing I tried, but you're right MyBase is a keyword.
  15. VS 2010 Call a base class Private interface method from derived class without reflection.

    I'm trying to figure out if I can cast a derived class to it's base class so i can call its own interface method.

    Referring to my sample source code below, I have a CustomBindingSource that...
  16. Replies
    3
    Views
    2,881

    Re: Ribbon control for winforms dev

    The MS Ribbon (WPF) is included in .Net 4.5. I'm using VS2013 and can see numerous controls that go with that library. You have to manually add the controls to the toolbox. It might be possible to...
  17. Replies
    4
    Views
    743

    VS 2008 Re: Callin Public Sub from another class

    Dim frms As New Form1 is the problem i suspect.

    It is creating a new instance of Form1 and will be not the same instance you have data on.

    Just refer to Form1 or My.Forms.Form1 and don't...
  18. Replies
    13
    Views
    1,385

    VS 2010 Re: Regex Groups Breakdown

    My first guess would be that the HTML you are feeding the regex isn't formatted exactly like your example.

    I'd look at stringMatches(5).Group(1).value part of the code. Possibly there isn't...
  19. Replies
    13
    Views
    1,385

    VS 2010 Re: Regex Groups Breakdown

    Ahhh ok that's what I was thinking you wanted to do.

    Match each <tr></tr> first and then grab the 6th <td></td> match from the text returned from the <tr> match.
    Assuming the TITLE is always...
  20. Replies
    13
    Views
    1,385

    VS 2010 Re: Regex Groups Breakdown

    I think I need more examples. Obviously the For Each loop isn't doing anything useful as it stands now.
  21. Replies
    13
    Views
    1,385

    VS 2010 Re: Regex Groups Breakdown

    For Each match As Match In stringMatches
    formMain.dataGrid.Rows.Add(stringMatches(5).Groups(1).Value)
    Next

    I think you want to remove the For Each Loop highlighted in red.
  22. Replies
    5
    Views
    4,273

    VS 2012 Re: Doing window drawing efficiently

    Awesome! Glad I could help. I learned something new myself.
  23. Replies
    13
    Views
    1,385

    VS 2010 Re: Regex Groups Breakdown

    I only get 7 matches returned from your example. I don't think I understand your question but I'll try:

    Dim thirdMatch as String = stringMatches(2).Groups(1).Value grabs the 3rd match in the...
  24. Replies
    5
    Views
    4,273

    VS 2012 Re: Doing window drawing efficiently

    Invalidate would definitely be something to investigate. It's taking place on the UI thread and drawing operations are about the most CPU intensive things you can do on winforms. I assume you have...
  25. Replies
    22
    Views
    4,967

    VS 2012 Re: BackgroundWorker problem

    Don't forget to call RemoveHandler for each WebClient or otherwise they will not get G.C.'d
  26. Replies
    22
    Views
    4,967

    VS 2012 Re: BackgroundWorker problem

    I see in your last code where you did like jmcilhinney suggested and loop inside the DoWork event that you would never be able to update your labels until the very end when the BackGroundWorker...
  27. Replies
    22
    Views
    4,967

    VS 2012 Re: BackgroundWorker problem

    Sorry my other suggestion didn't work for you since you're trying to support XP

    I wrote a little test code that runs a loop and calls a method that creates a new Backgroundworker each time.
    All...
  28. Replies
    22
    Views
    4,967

    VS 2012 Re: BackgroundWorker problem

    VS 2012 has new features to make what you are trying to do as simple as apple pie

    Async and Await

    I just posted code that is fully asynchronous and downloads multiple files while looping...
  29. Replies
    4
    Views
    3,611

    VS 2010 Re: URLEncode on POST requests

    Try
    System.Net.WebUtility.UrlEncode

    edit:
    Well wait....that might only be available in .net 4.5 I know it's in 4.5 but not in 4.0
  30. Re: Hey friends i want to learn abt the vb.net controls

    lmao whey lol
  31. VS 2012 Re: how to download multiple text files from website

    This code will download all the files listed on that web page you linked to. It's probably not exactly what you want but I think it will get you there.

    112131

    Requirement: VS2012 and up and...
  32. VS 2013 Re: Making your program more antivirus friendly

    What happens if you place it in a zip file or winrar? I haven't used Dropbox but normally I zip up my files for transport otherwise warnings are issued.

    A few years ago when I was writing WPF...
  33. Replies
    4
    Views
    1,019

    VS 2010 Re: How to find a tough memory leak?

    I had memory leaks 2 times in the past in my .net applications. In both situations everything ran fine but after 8 hours or more of running my program would become sluggish and consume more and more...
  34. Replies
    38
    Views
    4,859

    VS 2013 Re: background worker progress changed

    The reason is that a MODULE has global scope and simply calling frmMain is referencing the TYPE of form frmMain and not the instantiated form. I suppose if you prefixed frmMain with...
  35. Replies
    38
    Views
    4,859

    VS 2013 Re: background worker progress changed

    Is you code ever calling the WorkerL.ReportProgress(10, "string") portion of your code? Set a breakpoint on that line and see if it ever hits it.

    You might need to provide more details of how...
  36. VS 2008 Re: Write data from DGV to txt.file in ASCII encoding

    Using theWriter1 As New System.IO.StreamWriter("C:\test\pf500.in", False, System.Text.Encoding.ASCII)

    That's how you force the output to write as plain ASCII. Is that what you're looking for?
  37. VS 2008 Re: which is beat to save datas Excel or Access?

    A database is designed and used to store...data. So for me the answer would be to use Access or SQL Express. A database is going to offer you the best data integrity and tools to deal with data,...
  38. Replies
    4
    Views
    733

    VS 2010 Re: VB.net two versions in one Computer

    I have the same problem, raghavendran. I haven't had a real need for sql server so I never tried hard to fixed it (i just go back to using Jet), but vs2010 seems to mess things up because it worked...
  39. Replies
    2
    Views
    840

    VS 2010 Re: Embedding SWF from resources

    I will assume you are using the "Shockwave Flash Object" if you are trying to use a flash swf file with a windows form. It's the only way I know how to do it at least.

    If not, then here are the...
  40. VS 2013 Re: automatic button click if Label1 = Textbox1

    I'm not sure this is exactly what you're looking for but I'll give it a try.

    Private Sub Label1_TextChanged(sender As Object, e As EventArgs) Handles Label1.TextChanged
    If Label1.Text...
Results 1 to 40 of 142
Page 1 of 4 1 2 3 4



Featured


Click Here to Expand Forum to Full Width