Determine What Characters The User Can Enter Into The Control?

Mar 2, 2010

In reading various answers regarding "masked TextBox Control, am I to assume that the masked textBox control uses a mask to determine what characters the user can enter into the control?

View 1 Replies


ADVERTISEMENT

Determine Number Of Characters That Will Fit In A Control?

Jul 12, 2011

I've written a piece of code that takes 3 fields from a database and writes out the 3 added together, but with the middle field cropped down, so that the total number of characters is always 28, what I thought was the width of my listbox. I realised when I debugged though, that the listbox was docked and grew or shrank depending on the size of the screen.

Is there a way to determine how many fixed width characters will fit in a control, at run time?

View 1 Replies

VS 2008 - Selecting Last 3 Characters Which User Enter In Textbox

Dec 14, 2009

I want to put a persons National Insurance Number into a label but I want to put *** in place of the first 5 characters and then display the last 3 characters as normally.

View 1 Replies

Determine Form User Defined Control Is Placed On?

Jan 25, 2012

I'm writing a control that needs to check a property of the form it's placed in.Is there a way to do that?

View 1 Replies

2008 Send A Formula Array To Excel That Requires {CNTRL} {SHIFT}{ENTER} Characters To Enter The Spreadsheet?

Aug 23, 2009

I am trying to enter the following on an excel spread sheet from vb.net:applic.activesheet.cells(1,1)="=server|topic!" & Item & My.computer.keyboard.sendkeys("{CNTRL} {SHIFT}{ENTER} ")The error says: "Expression does not produce a value"I tried even {ENTER} and still the same error.

View 12 Replies

Asp.net - Pass A Variable To User Control To Determine Display?

Nov 28, 2011

I've found various C# examples here, but I can't seem to get a VB version working.I want to be able to pass a simple variable into a User Control to determine whether it shows a certain section of data.It's basically a Customer Data form, and in some circumstances I need to show a line with the customers account number and sort code, and in some I don't, so my user control:

<controls:customerForm ID='customerForm' showBankDetails="no" runat='server' />

But I can't work out what to do with the showBankDetails variable in Code Behind to stop it from rendering that section, or simply hide it with a CSS snippet.How do I access that variable in the code behind using VB.NET?

View 1 Replies

Determine If User Or Program Made Change To Control

Mar 15, 2010

I have numberic updown control in my app. There may be times when I want to programatically change the vlaue (in which case I don't want to ValueChanged event handler code to run). There will certainly be times when the user makes a change (in which case, I would want the event handler code to run).

[Code]...

View 5 Replies

VS 2008 Determine If User Has Scrolled To The Bottom Of A Control?

Aug 22, 2010

I am modifying some code I found here to test to see if a user has scrolled to the end of the control. In this case the control is a Crystal Viewer but I posted here because I think the issue is based on the vertical scrollbar not the Crystal Viewer itself.

The code flags an error at

Me.CRViewer.Controls.OfType
Indicating 'OfType' is not a member of 'System.Windows.Forms.Control.ControlCollection'.

I understand the concept that I can't reference something that it is not but I don't know how to fix it. The original code was for a DataGridView.

The ultimate goal (not finished) is to find out when the user has used the mouse or possibly the scroll bar itself and if it hits the bottom of the page of the viewer, then trigger a new page so it looks like they can just keep using the mouse to scroll.

Public Sub New()
Me.InitializeComponent()
Dim vscroll As VScrollBar = Me.CRViewer.Controls.OfType(Of VScrollBar)

[Code]...

View 9 Replies

Change Active Control When User Presses ENTER?

Mar 2, 2011

i am making my final year project in vb.net for data entry i want to make the project more user friendly i use code to change the control focus by pressing 'Enter'(ASCII 13).. and clear the content of current control by pressing 'Esc'(ASCII 27)... in my project one form contains at-least 300 of controls say(t1,t2,t3,t4...)

so in the keypress event of t1 i have writen

if asc(e.keychar)=13 then
t2.focus
elseif asc(e.keychar)=27 then
t1.text=nothing
end if

the code works fine but produce an alert beep when i press ENTER to change the active control...

View 2 Replies

Use A Webbrowser Control For A User To Enter A Url And Perform A Search?

Aug 16, 2011

I have built a webcrawler where I use a webbrowser control for a user to enter a url and perform a search. Once the page is uploaded, my app grabs the HTMl and then with a button click convert it into plain text by using html agility pack (HAP). Finally by clicking a button I store the result inside a sql server database.

Now I want to use a background search system using the above control to perform the task which I am not able to figure out Basically say If I have a textbox where I enter the URL and it grabs the HTML then using HAP I have convert it into plain text and store it inside a database.Here is my code class for the normal search I carry out:

[Code]...

View 5 Replies

Build A Textbox User Control Which Will Remove All The Escape Characters?

Jun 9, 2010

I want to build a textbox user control which will remove all the escape characters and when we put the user control in the form it should be sizable.Also i want to create a 3 tier application in vb.net.i need a sample code for it in vb.net.Can u plz post me a simple program as of how the 3tier architecture is been implemented.

View 1 Replies

MaskedTextbox Alignment - Cannot Enter Characters From Right

Mar 27, 2012

I am working on a VB.Net Windows application. I am trying to use MaskedTextBox. My mask is 999999, RightToLeft is true, TextAlign is right. It is not letting me enter characters from the right. It is entering them from the left. When I type 1234 and save I get 1234____ when I expect to get ____1234.

View 1 Replies

Limiting The Number Of Characters Can Enter Into A Windows Forms Textbox?

Jan 28, 2012

Assuming that I have a Windows Forms textbox and want to reduce the maximum amount of characters that can be allowed in via user entry, how would I do that?

View 2 Replies

Get The Program To Start Back Over And Enter Another 2 More Words If The String Is Not 20 Characters Long

Sep 27, 2009

I have a program that requires a string. The string is 20 characters long. The string also have to be split into 2 words the first word is 12 characters and the second is 8. If the strings is not 20 characters long I get an error. I wanted to know how can I get the program to start back over and let me enter another 2 more words if the string is not 20 characters long. At the moment after I get the string is not 20 characters long error it continues to read the rest of the program but I want it to stop after an error and let me start over from the beginning.

View 3 Replies

User Control And Panel - TargetPnl To Display User Control Named Vviewer When Click SearchBtn?

Nov 6, 2009

I have an application going here Form1 has a panel on it named TargetPnl. I need my TargetPnl to display my user control named Vviewer when I click my SearchBtn and also need it to disappear when I click another button.

View 1 Replies

User Control - Calling A VB Linkbutton's(within A User Control) Click Event From Javascript?

Apr 11, 2009

how can i call a VB function - deleteevent() in usercontrol.ascx.vb from a javascript function in clickhandler(e) in usercontrol.ascx. The call should cause a postback because I need the usercontrol to display the changes.I am currently trying to do it by using a linkbutton with style display:none, and calling its click event from the javascript function. But i dunno how to call the click event.

View 2 Replies

Text Box Control - Allow The User Of My Application, To Enter The Text "unemployed" Into A Text Box

Jan 27, 2010

A piece of code that will allow the user of my application, to enter the text "unemployed" into a text box and also allow them to enter numbers for how many years the person had been employed for.

View 2 Replies

Way To Determine What Theme That End User Is Using

Jun 26, 2009

is there a way to determine what theme that the end user is using.for example im making a program where the glass is extended so if the end user uses the program on a computer that is not using the vista aero theme then the program will look different then it would if they were using the aero theme.how would i check to see if they have the aero theme and could i set the theme to aero from my program?

View 2 Replies

Find And Interact With A User Control On Page From Separate User Control?

Oct 17, 2011

I have an aspx page that has two different user controls. I want to find user control A and be able to set properties, etc., from user control B.

I was thinking I could do something like this:

Dim CMFilters As Control = Me.Parent.FindControl("CMFilters")

...but that doesnt work to be able to set properties and call methods. I somehow need to get the user control and and declare it as that user control type.

View 2 Replies

Determine If User Account Has Password

Mar 27, 2012

I need to be able to validate the windows password of the account that is currently logged in. I've managed to do this when the unit has a password. But if it does not have a password, passing an empty string does not work. It fails each time.I've been looking around, but haven't been able to find much on this. Does anyone know how to determine if the user password is empty?[code]

View 9 Replies

C# - Determine When A User Locks / Unlocks Their PC?

Jan 30, 2012

Possible Duplicate: How can I programmatically determine if my workstation is locked? Checking for workstation lock/unlock change with c#

I would like to determine when a Windows (XP, or 7) machine is locked, and unlocked.I would like to create a timesheet activity logging app, and pre-filling times in, with lunch, breaks taken, etc, would be very useful.Is it possible to pick up an event that fires when the Windows Operating System is locked and unlocked ?

View 3 Replies

Determine Other User Of Excel File?

May 27, 2010

I am currently using the FileOpen method wrapped in a try/catch block to determine if a particular Excel file is currently in use or not.

When my app tries to access the file, I would like to be able to notify the user who it is that already has the file open. If I try to open the file in excel while it is in use, the message that Excel provides includes the network login of the user that has the file open. Is it possible to get this information via code so that I can tell the user of my app the login of whomever already has the file open?

View 1 Replies

Determine Current User's Email Address ?

Sep 25, 2008

Is there a 'simple' way to determine the current user's email address ? I want to automatically send an email when an application detects an unhandled exception, but would like it to come from the current user.I found this on the net and haven't yet worked out what its doing (although it seems to work). Unfortunately, as I'm not sure how it works, I also don't know what drawbacks there are to this technique.[code]...

View 5 Replies

Determine If The User Intended To Delete A File?

Jan 10, 2009

how i can able to determine if the user intended to delete a file. What im going to do is this application will be placed in a certain folder together with some files. And this program will determine if the user inteded to delete a file within the folder.

View 2 Replies

Determine Which Operating System The User Is Currently Running?

Nov 12, 2010

I'm trying to get an application to determine which operating system the user is currently running and use that to decide what to do. For example, a user uses the program and they're using Windows 7. I want it to know that and use predetermined variables throughout the program for Windows 7. Likewise if they're using Vista or XP/Macintosh.

View 4 Replies

Run A User Control Sub After Container Has Initialized User Control Properties?

Dec 22, 2010

In a user control I have the code shown below.

I now realize that it is incorrect because the container's InitializeComponent property initializations have not run yet and they must be run prior to Refresh being called.

How (where) can I run Refreash after the container has initialized this user control.[cod]e...

View 1 Replies

VS 2005 Using Combo Box In User Control And Getting Selected Value In Another User Control

Aug 31, 2009

i am using vb.net 2005 to developed desktop application I am having two windows form user control , the first control name con.vb containing the design and code for connecting to database and getting a list of my project values in combo box.

Now the second user control report.vb which i am using to generate some reports , since the code behind is using connection to connect to various project database , so i want to get the value of

First user control into another how i can get the i have tried the below but its giving me error in run time but no error in design or code behind -

MR.MainForm.Connection1.project_combobox.SelectedV alue.ToString

Error i am getting is :

System.NullReferenceException was unhandled
Message="Object reference not set to an instance of an object."
Source="MDR"

View 1 Replies

Allow A User To Input A Word Or Phrase And Then Determine If It Is A Palindrome

Dec 8, 2011

I'm working on a problem where i have to allow a user to input a word or phrase and then determine if it is a palindrome (a words that reads the same forwards and backwards) . It also says that the program should use a Boolean-valued function procedure named IsPalindrome that returns the value True when the word or phrase is a palindrome and the value False otherwise.

View 3 Replies

Determine If Acrobat Reader Is Installed On User Computer?

Mar 8, 2009

I am creating a project with VB2008 Express Edition. The end result will be a CD containing tech manuals in pdf format which will be accessed via various buttons on a form. I am going to include Acrobat Reader Redisributable on the CD which the user can install by pressing a button on the form if required. What I want to do is this:- When the user inserts the CD into the PC, the form will load.When the form loads, I want to search the users PC to determine if Acrobat Reader is installed.If the Acrobat Reader program is not found on the system, then display a MessageBox to inform the user to install the reader from the CD.Would this involve searching the users registry? I would need to insert in my Form1_Load sectionTarget systems would be Windows XP/ Vista with programs on the C: drive as default.

View 4 Replies

How To Have User Enter In 3 Different Integers

Feb 9, 2011

How do you ask the user to enter in 3 different integers?

View 17 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved