CharlieMay's Profile User Rating: *****

Reputation: 1726 Grandmaster
Group:
Expert w/DIC++
Active Posts:
5,694 (2.45 per day)
Joined:
25-September 09
Profile Views:
69,779
Last Active:
User is offline Today, 06:23 PM
Currently:
Offline

Previous Fields

Country:
US
OS Preference:
Windows
Favorite Browser:
FireFox
Favorite Processor:
Intel
Favorite Gaming Platform:
PC
Your Car:
Toyota
Dream Kudos:
75
Expert In:
VB.NET

Latest Visitors

Icon   CharlieMay Learning C# and feeling pretty good about it.

Posts I've Made

  1. In Topic: How do I prevent selecting text in a TextBox?

    Posted 1 Feb 2016

    View Postandrewsw, on 01 February 2016 - 02:33 PM, said:

    I believe the OP is using a TextBox, not an RTB, which doesn't have a Selectionchanged event.


    Yea, I was just going off the OP's statement

    Quote

    I've also seen it mentioned that you cannot call Selectionchanged for TextBox, only RichTextBox, but I have not gotten any results using any of these variations.
    seemingly the OP has attempted this in a RichTextBox with undesired results.
  2. In Topic: How do I prevent selecting text in a TextBox?

    Posted 1 Feb 2016

    So using richTextBox1.SelectionLength = 0; inside the Selectionchanged event of a RichTextBox allows you to select text?

    Of course it does get a little quirky with the caret when you do that I see. Wants to keep jumping it back to 0 position.

    I guess you could add richTextBox1.Selectionstart = richTextBox1.TextLength; after that line but that's going to take the ability of moving the caret with the mouse if you do.
  3. In Topic: How do I prevent selecting text in a TextBox?

    Posted 31 Jan 2016

    Just messing around, I put that in MouseMove and it seems to give the result you're asking for.
  4. In Topic: when i fill data in combobox its display when i open the form

    Posted 31 Jan 2016

    It's been a while but I'm pretty sure you could just add
    <code removed>
    

    before assigning your datasource. This would make the very first item ---select--- in your combobox which the displaymember would display as the selectedindex is set to 1 which is what you're seeing.

    OK, now that I'm thinking about this, the datasource would wipe out anything in the combobox so you're going to want to create a new datarow and fill the Repair_desc with "---select---" then insert it into your table at position 0

    //create a new row in your datatable
    DataRow dr = ds.Tables["Repair_Type"].NewRow();
    //place your values into the "Repair_desc" column of your table
    dr["Repair_id"] = 0;
    dr["Repair_desc"] = "---select---";
    //insert this newly created row into your datatable at index 0
    ds.Tables["Repair_Type"].Rows.InsertAt(dr,0);
    // set your displaymember, valuemember and datasource
    


    Keep in mind, if you have non-nullable fields in your datarow, you will have to insert those values into the datarow (dr) or you will receive an exception.

    I should also throw caution that if you don't check to ensure that this item is NOT selected it could create all sorts of havoc when trying to get at the valuemember so keep that in mind.
  5. In Topic: [link] The MVVM Pattern - Introduction

    Posted 30 Jan 2016

    Thanks andrewsw. One more step forward :)

My Information

Member Title:
This space intentionally left blank
Age:
48 years old
Birthday:
October 27, 1967
Gender:
Location:
Indiana
Years Programming:
25
Programming Languages:
VB, VB.NET, C#

Contact Information

E-mail:
Private
Website URL:
Website URL  http://

Comments

  • (3 Pages)
  • +
  • 1
  • 2
  • 3
  1. Photo

    meepy Icon

    13 May 2015 - 13:50
    hi, i'm in school for software development and web programming and am looking for online chat with other developers. i see you're online and wonder if you can direct me. thanks.
  2. Photo

    mireille4U Icon

    30 Apr 2015 - 05:44
    Greeting from mireille i saw your profile today and i became interested in you and i will like to know more about you and if you can mail an email to my mail address ([email protected]) i will give you my picture.here is my mail address i hope we can move from here.above. Mireille
  3. Photo

    CharlieMay Icon

    26 Feb 2015 - 14:39
    Damn, and I really could have used that massage too.
  4. Photo

    jannbaby Icon

    20 Feb 2015 - 12:26
    Hello dear,
    please do not be offended to receive this massage, My name is Miss jannet, I saw your profile today at,( www.dreamincode.net) and become very interest to be your friend And i have an important issue to discuss with you if you accept Please contact me back on my private email address, ( jannetrubel@ yahoo.in ) for more details about me, thanks,
  5. Photo

    CharlieMay Icon

    30 Apr 2014 - 05:43
    asmalley, please post your question in the forums. Not only does it get you a lot more suggestions and help, it allows others to learn from the solutions provided. :)
  6. Photo

    asmalley Icon

    29 Apr 2014 - 06:43
    Hello Charlie if you have a moment to look at your private message that would be much appreciated :)
  7. Photo

    orangebanana Icon

    03 Dec 2013 - 19:57
    thank you very much :)
  8. Photo

    vks.gautam1 Icon

    11 May 2013 - 06:53
    http://www.dreamincode.net/forums/topic/320780-what-is-basic-plan-you-make-before-starting-up-in-any-big-project/page__p__1849774__fromsearch__1&#entry1849774
  9. Photo

    CharlieMay Icon

    06 May 2013 - 14:10
    OK, up at the top of this page is the "About Me" tab where my signature is: in there is a link to a very helpful set of videos that should help you with what you want. Start at the beginning video and follow along.
  10. Photo

    pavanvadrevu Icon

    03 May 2013 - 08:53
    i want to learn complete vb.net from basics sir
  11. Photo

    nK0de Icon

    01 Feb 2013 - 10:18
    Hey Charlie! :) How's it going over there?
  12. Photo

    beginner_emman Icon

    30 Nov 2012 - 09:05
    i agree, you should teach a programming..thanks for your help..
  13. Photo

    CharlieMay Icon

    22 Oct 2012 - 18:30
    Wow! thanks everyone. I apparently need to check this area more often ;)
  14. Photo

    Wizmeister Icon

    18 Oct 2012 - 17:00
    You are awesome man. You should teach a class on programming.
  15. Photo

    wanabavbcoder Icon

    09 Oct 2012 - 15:38
    hi charlieMay, Thank you so much. It has really helped. I wish I had the knowledge you had.
  • (3 Pages)
  • +
  • 1
  • 2
  • 3