Results 1 to 7 of 7

Thread: No caret in textbox

  1. #1

    Thread Starter
    New Member
    Join Date
    Feb 2012
    Posts
    13

    No caret in textbox

    I have a login form with a background image. The image is OK during coding but not perfect when run. Now, I tried to superimpose two textboxes on it, one for username and one for password. However, unlike a normal form there is no caret in any textbox even when clicked. Though text can be entered in the textboxes, the characters are also say blurred.
    Can anyone please help!

  2. #2
    Karen Payne MVP kareninstructor's Avatar
    Join Date
    Jun 2008
    Location
    Oregon
    Posts
    6,713

    Re: No caret in textbox

    Quote Originally Posted by salim100569 View Post
    I have a login form with a background image. The image is OK during coding but not perfect when run. Now, I tried to superimpose two textboxes on it, one for username and one for password. However, unlike a normal form there is no caret in any textbox even when clicked. Though text can be entered in the textboxes, the characters are also say blurred.
    Can anyone please help!
    Greetings, What you need to indicate is the meaning of superimpose two textboxes by explaining what you did. Most likely the method(s) used is the problem.

  3. #3

    Thread Starter
    New Member
    Join Date
    Feb 2012
    Posts
    13

    Re: No caret in textbox

    Hi Kevin. I am sorry. I should not have used the word 'superimpose' because in fact I am not superimposing anything. I just wanted to make a nice login form. So, I searched the web and came across some good ones at: http://dzineblog.com/2009/03/interfa...m-designs.html.
    I chose one (unblbab one on the site) and saved it as a picture (png). I next created a form in vb and inserted the picture as background for my form.(I hope this is not plagiarism ).
    At the location in the picture where there is the username and password boxes, I placed two textboxes. Now, when I run the program, I am faced with 3 problems:
    1. The picture is kind of spotted. I suppose a resolution issue.
    2. The textboxes have no carets, even when clicked.
    3. Letters can be inserted in the textboxes but they appear blurred. I don't know if it is a resolution issue once again.
    Regards.
    [IMG]C:\Users\HOOLASH Salim\Pictures\Gen.png[/IMG]

  4. #4
    Karen Payne MVP kareninstructor's Avatar
    Join Date
    Jun 2008
    Location
    Oregon
    Posts
    6,713

    Re: No caret in textbox

    Quote Originally Posted by salim100569 View Post
    Hi Kevin. I am sorry. I should not have used the word 'superimpose' because in fact I am not superimposing anything. I just wanted to make a nice login form. So, I searched the web and came across some good ones at: http://dzineblog.com/2009/03/interfa...m-designs.html.
    I chose one (unblbab one on the site) and saved it as a picture (png). I next created a form in vb and inserted the picture as background for my form.(I hope this is not plagiarism ).
    At the location in the picture where there is the username and password boxes, I placed two textboxes. Now, when I run the program, I am faced with 3 problems:
    1. The picture is kind of spotted. I suppose a resolution issue.
    2. The textboxes have no carets, even when clicked.
    3. Letters can be inserted in the textboxes but they appear blurred. I don't know if it is a resolution issue once again.
    Regards.
    Which image from the link you gave is the login form you are looking to mimic?

  5. #5

    Thread Starter
    New Member
    Join Date
    Feb 2012
    Posts
    13

    Re: No caret in textbox

    It is entitled 'unblbab". In fact I do not want to mimic as such but just use the login form on the site as a background image and place my username and password textboxes at the location where they are on the picture. However, I don't know what I did, but it is now working. I suppose it is because of the form's BackgroundImageLayout property which was not well set.

  6. #6
    Karen Payne MVP kareninstructor's Avatar
    Join Date
    Jun 2008
    Location
    Oregon
    Posts
    6,713

    Re: No caret in textbox

    Look at the attached VS2008 project (open in VS2010 and allow it to be upgraded) which has a background image I just slapped together using Adobe Fireworks. There are two TextBox controls for user name and password. The only functional code is for the cancel button. All controls work as they should.
    Attached Files Attached Files
    Last edited by kareninstructor; Jul 18th, 2012 at 04:43 PM.

  7. #7

    Thread Starter
    New Member
    Join Date
    Feb 2012
    Posts
    13

    Re: No caret in textbox

    Thanks Kevin. This is what I wanted. I will just modify the files and adapt. Thanks again for your support.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width