Smileenergy's Q&A profile
Visual Basic Restricting TextBox Input to Letters Only
I am trying to create a form that has a TextBox control on it for entering a state abbreviation (two letters). What is the best way to make sure that the user enters only letters (no numbers) IsNumeric doesn't seem to do the trick if the first character is a letter and the second characters is a number...I want to be able to restrict user input so that they cannot enter any numbers at all into the TextBox. Thanks! i don't really understand what is meant by "0"c, and e.handled = true (i think it has something to do with whether it is handled, but why do u need it ).(in red) can someone explain Protected Overrides Sub OnKeyDown( ByVal e As System.Windows.Forms.KeyPressEventArgs) If ...Show All
Visual Studio Express Editions control.add radiobuttons help!!
hi.. I created radio buttons programatically in coding and they worked fine. I have 3 buttons to create at a time and I need to display for more than 10 times. eg. o OEM o Dynmaic o Classic -----line 1 o OEM o Dynmaic o Classic------line 2 o OEM o Dynmaic o Classic------line 3 but i choose OEM radio button from line 1 and when i choose any button from line 2, line 1 from what i have chosen eg. OEM disappear and same as for line 3. i can only choose one button from all lines . Any idea my code is follows. Dim radioOEM1 As New RadioButton() ry1 = ry1 + 30 radioOEM1.Location = New Point(rx1, ry1) radioOEM1.Size = New Size(52, 17) radioOEM1.Text = "OEM" radioOEM1.Font = New ...Show All
Visual C# How to copy a char[] array to a string?
Hi! anyone knows Is there a method or function in c# to copy to a char array to a string I want to implement it like this: // define somewhere; string str_A=""; char[] char_B = new char[16]; //value it in otherplace; char_B="fdfdfd"; str_A=char_B;//error thankyou! littleguru wrote: You can use the string constructor that takes a char array: char [] chars = new char [] { 'a' , 'b' , 'c' }; // Create a new string instance that takes the char array. string s = new string (chars); thankyou! but my string s is created in the front, and revalue later. ...Show All
SQL Server How to not send subscription report if no data
I have a report that may or may not have data. I have a subscription setup for this report. The subscription has a defined To list. I would like to NOT send the report if there is no data on the report. I did this in SQL 2000 by raising an error from the stored procedure if there was no data. However, that approach does not seem to work with 2005. Is there another way to accomplish this Hi, Someone in this forum had an idea about this, sorry I could not recall the name. I applied the idea this way. I have a job with 2 steps, the first step is some kind of test to decide wether or not and when to fire the report subscription. If the first step fails, the report is not sent. In my case, I set the firs ...Show All
Visual Studio Team System Backup to remote computer and "Local System" service account
I don't really understand how to do a backup of the SQL databases to a remote file share. Following the instructions in the install guide, I picked "Local System" as the service account for the SQL Server. But that means that backups can't be made to remote file shares, right Also, looking at the SQL documentation, they advice against using "Local System" as the service account for SQL for security reasons. So, two questions>/P> 1) Can I backup to a remote share when SQL Server runs as "Local System" If yes, how I am running in workgroup mode. 2) Can I just change the service account for the SQL Server to a local user account If that same local user account exists on the computer to which I want ...Show All
Visual Basic New to .NET
I'm New to VB.net and looking throu a book ...there is a part of the book that is talking about using the Object Browswer .,.. I'm using VB 2005 and I don't see the Object Browser... is it still in this version of VB.net It does still exist... From the View menu, select the Other Windows item and then choose Object Browser. You can also get to it through the key combination Control+w, j. ...Show All
Windows Forms Displaying data from Access in custom DataGridView
Hello, I have two forms in my applications form Managing Employees and the Courses that participate. The first from is the one in which i add a new employee in the database and associate the specific employee with available courses. On this form, a datagridview is responsible for binding the courses with the trainee. The datagridview has the following 5 columns. 1) Course Name - combobox - databound 2)Course Type - combobox -databound 3)From Date -DateTimePicker 4)To Date - DateTimePicker 5)Course Provider - Textbox the above databound comboboxes get date from a dataset (dsCourses) This form works fine, i can add a new trainee to the database and also i can enroll the specific employee to various courses. ...Show All
.NET Development AD Authentication across domains
Hi, I have an ASP.net web application which has Forms authentication enabled. The users are authenticated by connecting to Active Directory using .net directory services. Everything was working fine untill the search domain matched with that of the domain of the server where the code is deployed. If i deploy the same code in a different server which is under a different domain, my authentication fails as by default it checks the domain of the server first rather than using the domain giving in the AD(LDAP) path string. How can I achieve cross domain authentication Web server is a windows 2003 machine and .net framework used is 1.1 Any input is highly appreciated. Thanks, Dinakar Folks ...Show All
Windows Search Technologies Add category to deskbar results
Since I installed WDS 3 the program category is not shown in the windows deskbar results. In the main results window I still can search for programs from the start menu. How can I change that Same here 1ars. In my deskbar results, all my programs appear in the 'Everything' category. When I search in the main WDS window it's hit and miss; some program shortcuts show up in the 'Programs' category, others continue to appear in 'Everything'. Would you mind doing a little experiment for me Do the following search from the deskbar: *desktop Does the shortcut for Windows Desktop Search now appear in the 'Programs' category in the deskbar results ...Show All
Visual Studio Express Editions Animating curves, lines, shapes. Is it even possible?!
Hi All-- I'm writing a program and I've hit a wall I want to create spline shapes (curves and circles)--that's easy. Now I want to move them--that's not so easy. I want to draw a curve, then, by clicking on one of the curves points, I want to reshape the spline. Is this possible It doesn't seem like it should be that difficult, but I can't find any good information. I've looked at DrawReversibleLine but it only does lines, not curves. Any ideas Paint your spline in the form's or control's Paint event. When the user changes the spline control points, simply call Invalidate() to force the spline to be redrawn. Check this thread for a simple example. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. ContentLoadException
Hello, loving XNA so far. But when I try to use this: Model model; ContentManager contentManager = new ContentManager(GameServices); model = contentManager.Load<Model>("boing.swm"); Code I get the ContentLoadException which states it cannot find the file speficied in the file, which is located in the project. So I am trying to figure out what is causing this exception. Any help would be much appreciated. Check the properties for your .swm file: File properties-> Copy to Output Directory -> Copy if newer or Copy always Combo ...Show All
Smart Device Development How to copy a .DB file to Windows CE .NET Emulator(Default)
Hi I have created a Project (.net CF for Windows CE .NET Emulator(Default)) while deploying the application my database file(Sqlite file ) in the project needs to be copied inside the Program Files\AppFolder of the emulator.I am using VS 2003 where the "Copy to output directory" property is not present which copy files to the same folder on device as your EXE. Please reply soon I am sorry this forum is dedicated to questions related to Device Emulator shipped with Visual Studio 2005 only. You may want to post your question on microsoft.public.windowsce.app.development newsgroup where it has got better chances of being answered. -Thanks, Mohit ...Show All
Windows Forms Very Dangerous message
Dear all After I finished my Financial project by using VB2005.net and SQL SERVER 2005 and made publish for this project ,After that I Installed this project on my computer and when I open some reports from this project appeared this message below "Financial Project has encountered a problem and needs to close. we are sorry for the inconvenience If you were in the middle of smothing, the information you were working on might be lost " This message appeared alone in reports viewer and in this case I need to close the program How I can solve this problem I wrote this code on the places that i expect the error occure but the project work without any error inside the VB2005.net environement ...Show All
SQL Server sql CE constraints question for WM5
Hi, I'm using the windows mobile 5 and need to get the constraints information from the sql CE database from inside the C# code. I used both these queries but I get errors for both of them: "SELECT C.CONSTRAINT_NAME" + " , C.REFERENCED_TABLE_NAME" + " , C.REFERENCED_COLUMN_NAME" + " , C.TABLE_NAME" + " , C.CONSTRAINT_COLUMN_NAME" + " FROM MSysConstraints C" + " WHERE C.CONSTRAINT_TYPE = 1"; I get the MSysConstraints table doesn't exists error for this command "SELECT C.CONSTRAINT_NAME " + " , PK.TABLE_NAME " + " , PK.COLUMN_NAME " + " , FK.TABLE_NAME " + " , FK.COLUMN_NA ...Show All
Microsoft ISV Community Center Forums How to get printer names?
Hello guys, How do I get all the printer names from user machine using VBA-Excel Thank you. Hi, Please refer to my posting at thread http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=828879&SiteID=1 ...Show All
