Sponsored White Papers, Webcasts, and Downloads
TechRepublic Resources
- ASP.NET basics: Working with the TextBox control
- Developers often overlook basic programming options in favor of new or cool ways to deliver results. This is true for many of the standard ASP.NET features. A good example is the TextBox Web control, which offers plenty of options for building applications. This week, I take a closer look at...
- Tags: Technique, Control, Microsoft ASP.NET, Property, Server, Font, TextBox1, OnTextChanged, TextBox1_TextChanged, CSS, .Net, C#, Middleware, Scripting Languages, Software/Web Development, Web Development, Software Development, Programming Languages, Enterprise Software, Software, Tony Patton
- Blog posts 2008-02-12
Additional Resources
- vb.net coding
- can anyone please convert the following code into vb.net code??private void textBox1_Validating(object sender, System.EventArgs e) { if (textBox1.Text.Length==0) { MessageBox.Show("Enter Your Name Please"); textBox1.Focus; } else { bool iscorrect = true; for(int i=0;i
- Tags: pritika
- Discussion threads 2007-05-24
- VB.NET Compact Framework ProblemTesting if a textbox is visible
- CF .NET 2.0 on Mobile 5.0 If I set a textbox visible it becomes visible on the screen but when testing the value it is always false. I don't have the problem on Pocket PC (w/ same code)textbox1.Visible = TrueIf textbox1.Visible = True Then ...do somethingend ifThanks, Josh
- Tags: Pocket PC, jbrown@..., Microsoft Visual Basic.Net
- Discussion threads 2007-04-27
- Time Loop
- Cannot understand why first TextBox instruction in next code does not work.Public Class Form1 Dim Value As Double Dim Begin As Double Dim Eind As Double Dim Verstreken As Double Dim Duur As Double =...
- Tags: a.vanstaveren1@..., DoEvents, visual basic 2005 ee, programming, ByVal
- Discussion threads 2007-02-06
- Using the PrintDocument component in VB.NET applications
- If you want to allow users to print form components in run-time, the PrintDocument component lets you offer users this functionality. The PrintDocument component is an object that allows users to send an output to a printer from Windows Forms applications. In this tip, I show you how to use...
- Tags: Printer, Component, Microsoft Visual Basic.Net, PrintDocument, Irina Medvinskaya
- Blog posts 2007-09-13
- Using VB.Net (Visual Studio.Net 2003)
- I am having trouble making a form hide after collecting data from that form's TextBox. I use the code:Dim f1 as New Form1f1.ShowMe.HideThis works as long as no data was collected. But if data was collected, an instance of that form is still open. If I go to...
- Tags: Microsoft Windows, Microsoft Visual Studio.Net 2003, Microsoft Visual Studio.Net, brianmilke@..., Windows Form Designer, Windows Form, System.Windows.Forms.CheckBox, System.Windows.Forms.TextBox, System.Windows.Forms.TextBox friend, System.Windows.Forms.CheckBox f
- Discussion threads 2007-07-07
- Example of Image Upload
- Here we are uploading images in File System and storing path in the database. http://www.hanusoftware.comCode (ImageUpload.aspx.cs) :-private void Button1_Click(object sender, System.EventArgs e) { // Here I am uploading images in Images folder of C drive.int intResult=0;string strPath = @"c:Images"+Path.GetFileName(File1.PostedFile.FileName);SqlConnection con = new SqlConnection("server=.;uid=sa;database=pubs;pwd=");SqlCommand com = new SqlCommand("Insert into Category(name,imagepath) values(@name,@imagepath)",con); com.Parameters.Add("@name",TextBox1.Text); com.Parameters.Add("@imagepath",strPath); con.Open; intResult = Convert.ToInt32(com.ExecuteNonQuery); if(intResult...
- Tags: hanuseo@..., strPath, SqlConnection, SqlCommand
- Discussion threads 2007-09-20
- Printing text from individual text boxes
- Hi allI am trying to print text from individual text boxes on a form. The form has 18 individual text boxes on it, each text box displays a letter and number.I would like to be able to print the text from the first 5 text boxes when there is text...
- Tags: Microsoft Visual Basic 6.0, Microsoft Visual Basic.Net, text box, markjenkins74@..., programming, printing
- Q&A 2006-05-31
- ASP.NET (c#)
- My name is vatsal from baroda, gujarat,india.I have problem in ASP.Net , when i insert record in MSAccess through ASP.net , it display an error : you must use updateable queryI have pentiumIV pc & loading operating system is XP professionalcode is :private void insert_click{oledbconnection connection=("provider=");oledbCommand cmd= new oledbCommand("insert into...
- Tags: Microsoft ASP.NET, studynsunil@..., programming, C#
- Q&A 2006-04-18
- Problem positioning controls within a panel
- I don't know if this is a bug or if I am doing something wrong, but hopefully somebody could help me. I have a panel with autoscroll=true, and I am trying to position controls within it, however they don't position correctly. According to MS's documentation Panel.Left "Gets or...
- Tags: positioning, programming, strcmp@..., textBox, X1, Y1
- Q&A 2005-01-24
- example of Server.Transfer and Context Handler
- This is an example of Server.Transfer and Context Handler.Through this we can get the multiple values of previous form.http://www.hanusoftware.comIn this page we are displaying data from previous form. We can use this technique for multiple form registration form.Code (ContextParent.aspx.cs): -private void Button1_Click(object sender,System.EventArgs e) { Server.Transfer("ContextChild.aspx"); } internal Hashtable Value { get { Hashtable objHT = new Hashtable; objHT["Name"]=TextBox1.Text; objHT["FathersName"]=...
- Tags: hanuseo@..., Hashtable objHT, Server.Transfer, Response.Write
- Discussion threads 2007-09-07
- Unable to add date to access database
- Hi I am trying to add a date field from vb 2005 to access database. However when I try to run the following code I gets error message that reads "Syntax error in INSERT INTO statement." Any help regarding this is highly apprecited. [code]Imports System.DataImports System.Data.CommonPublic Class Form1 ...
- Tags: Databases, database, hemant.mukherjee@..., Table1, ByVal
- Discussion threads 2007-10-28
- Sharing the event logic between controls in VB.NET
- Whenever you write the code logic that may be used for more than one control, it makes sense to try to save time by creating only one procedure that will handle the event and perform that logic. In this tip, I show you a way to share the event logic...
- Tags: Control, Microsoft Visual Basic.Net, Microsoft Development Tools, Programming Languages, .Net, Development Tools, Software Development, Software/Web Development, Irina Medvinskaya
- Blog posts 2007-10-19
- Access:Have 1field autofill another?
- My form has 6 fields and all but 1, have data input via ten-key pad. Is it possible to have one field entry auto fill another (e.g. "MainDTCode"=24 "Code"=Set) without requiring alpha key entry or a "List Box"?Sure you can!If you use the AfterUpdate event on any of your...
- Tags: jpadilla, MainDTCode, software, VBA, VBA CODE
- Q&A 2005-12-23
- Accessing Sun One Directory Server 5.2 from VB.NET
- Hi Everyone, I m presently working on one project in which we will be storing company related and their employee related information in Sun One Directory server 5.2. And We want to access these informations from .NET either VB.NET or C#. It worked fine in Java but now i m...
- Tags: .NET, Application servers, Programming languages, swetang_c@..., Sun ONE Directory, Sun ONE Directory Server, Ode, Sun ONE, Sun ONE Directory Server 5.2, Microsoft .NET, Sun Microsystems Inc., Microsoft Visual Basic.Net
- Discussion threads 2007-04-27
- Data table giving me a migraine
- I want to combine three tables of my database in one page and on submit want to update all three tables at the same time. Same goes for Edit and Delete. I am unable to do it. I am using a dataset and if i select columns from all three...
- Tags: ydobonmai@..., programming, dataset, Students INNER JOIN Student_Address
- Q&A 2006-08-04
- Let users pick a file to open via OpenFileDialog in VB.NET
- Whenever you need to allow a user to open a particular file without forcing the user to type the full path and file name, you can use the OpenFileDialog class. OpenFileDialog has a number of properties and methods that make it a flexible way to get users to pick a...
- Tags: File, Microsoft Visual Basic.Net, OpenFileDialog, Dialog Box, Irina Medvinskaya
- Blog posts 2007-08-30
- Choose your layout weapon in .NET
- Learn about the two layout managers in Visual Studio .NET 2003, FlowLayout and GridLayout, and how you can assign them to a page. Page layout is a constant sore spot between programmers and graphic designers. The separation of content with the usage of cascading...
- Tags: Microsoft Visual Studio, HTML, Microsoft .NET, Microsoft Visual Studio.Net, GridLayout, CSS, Tony Patton, Microsoft development tools, .NET, developer, meta name, id, Page Layout, .NET Newsletter, IDE, Microsoft Visual Studio.Net 2003, TechRepublic Inc., Page, Server, Layout, Microsoft Corp., FlowLayout, Properties Window, Scripting Languages, Software/Web Development, Web Development, Development Tools, Software Development
- Technical articles 2005-06-28
- Choose your layout weapon in .NET
- Page layout is a constant sore spot betweenprogrammers and graphic designers. The separation of content withthe usage of cascadingstyle sheets CSS helps page layout, but browser support isslow to react. Most application developers worry more aboutapplication performance, coding, and so on, rather than about pagelayout, and they don't see the...
- Tags: developer, GridLayout, HTML, id, layout, meta name, Microsoft .NET, Microsoft Visual Studio, Microsoft Visual Studio.Net, Page Layout, Tony Patton
- Technical articles 2005-06-28
- Use dynamic menus to efficiently enhance your .NET applications
- One of the vast improvements offered by C# over Visual Basic 6.0 is the addition of a truly dynamic menu system. With this new functionality, developers can create applications that adapt themselves quickly to new operating environments and software patches, while improving the overall ease-of-use for your software. The trick...
- Tags: C#, .NET, Programming languages, Jonathan Lurie, Microsoft .NET, menu item, main menu
- Technical articles 2003-06-20
- << Previous
- page 1 of 1
- Next >>