|
by: I am Sam |
last post by:
I have a DataGrid that is passing information to a stored procedure properly
but the parameters aren't being casted properly. I was woundering if anyone
can tell me how I should properly cast the following:
(TextBox)UserPrefix=(TextBox)e.Item.Cells.Controls;
string strUserPrefix=UserPrefix.Text;
I keep getting the following error and I don't know why because I have
declared the UserPrefix as a textbox using "protected...
|
by: Rich |
last post by:
Hello,
I have some datefields in a dataset (ds1). I bind some
textbox controls on a windows form to these date fields in
ds1, but I only want to see 01/01/2004 instead of 1/1/2004
8:00:00 AM. In a DateTimePicker control I can set a
custom format("MM/dd/yyyy"). So when I iterate through
ds1 with currency manager (cma) I see the correct date
format in a DateTimePicker control. Is it possible to set
a custom date format like that for...
|
by: Keith |
last post by:
I apologize for those of you who think I'm posting on the same topic. It is not that I don't appreciate all of your comments - and I'm definitely reading them all - but I think I have a differing opinion of how I want to handle the 'user experience' in the application I'm creating. While I know I could allow the user to enter in number and alpha text - in a text box - and then tell them when the execuate a command "This is not numeric data", I...
|
by: Peter |
last post by:
I hate using the mask edit conrol so I created these two function to
format my phone numbers. Is there a way to consolidate these two
functions into one?
In this example say the textbox you want to format is named "txtTest"
I would format it in this fashion:
in the onchange event:
'Formats the text on entry
txtTest.text = FormatPhoneNumber(sender, txtTest.text)
|
by: Aaron Smith |
last post by:
I found an quick and dirty example of a numeric text box that converts
the string to a currency mask.. Here is the code:
Public Class NumericMaskedTextBox
Inherits System.Windows.Forms.TextBox
Private Sub NumericMaskedTextBox_KeyPress(ByVal sender As Object,
ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles MyBase.KeyPress
'the key press is not in the string (of numerals)
If InStr(1, "0123456789.", e.KeyChar,...
|
|
by: Art |
last post by:
Hi,
I have a MyTextBox class that inherits from TextBox. How do I make it
display the information as, say 0.00. Sometimes the value will be typed by
the user. Other times the value will be filled in when a User makes a
selection elsewhere.
I'd appreciate any help.
Art
|
by: Adam Honek |
last post by:
I have a form.
It has serveral text boxes for user data entry.
I could of course write code to check if each is empty before proceeding to
save this data to a file.
Is there any global way to control if any of these text boxes is empty or
are we really forced to do it on a one by one basis doing If....End is so
many times?
|
by: YardDancer |
last post by:
Hi all
I don't want to use the the Cint() or CDec() or other VB.Net Functions and
I dont want to restrict keystrokes in the textbox.
I am also using the "strict type semantic" settings that requires you to
explicitly state all conversions.
--
|
by: =?Utf-8?B?dHBhcmtzNjk=?= |
last post by:
OK I have some Chinese text in sql server column that looks like this:
12大专题调研破解广东科学发展难题
This is unicode? Anyway, I put this data into a text area like this:
articleArea.InnerHtml = article.Text . . ..
and it works fine (shows chinese characters). But when I put this data into
a asp:textbox control, it just shows up as is... (12大&# etc...)
Can anyone tell me how to get the characters to appear...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, well explore What is ONU, What Is Router, ONU & Routers main usage, and What is the difference between ONU and Router. Lets take a closer look !
Part I. Meaning of...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
|