Adam Weigert's Q&A profile
Visual Studio Express Editions How do I
Hi, How do I get a form that I have designed to do the following: Take the data from 5 seperate input boxes (5 seperate text boxes used for input) and output the largest and smallest number to seperate output boxes (2 seperate labels used for output). If the user inputs a number in each box for example 25, 15, 75, 45 and 67 and then clicks my button "Find" I want the largest number to go in the largest output label and I want the smallest of them to go in the smallest output label. How do I code my button to take these 5 input numbers regardless of their order and output only the largest and the smallest of the group of numbers I hope someone understands what I am asking. Thanks, DC Here is my coding so fa ...Show All
Windows Forms textBox Question
is there a way to allow only ' a-z A-Z 0-9 ][{}()-* ' characters to be typed into a normal textBox the MaskedTextBox wont work in the way that i want it too. Im using VC++ 2005 thanks Hmm. You have to pass the e->KeyChar as the first parameter of IsMatch method... Some kind of conversion will be required... Also, make sure you have assigned the textBox14_KeyPress handler to textBox's KeyPress event... Andrej ...Show All
Visual Basic [OTP] Debugger Implementation
How can I implement Debugging operation in VB 6.0 for my own Editor window.The codings are required I need to use facilities like watch breakpoints,variable information window This forum is not for VB6 questions. Please read the following post: For Visula Basic 6 Questions, Please Read... http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=551512&SiteID=1 ...Show All
Windows Forms How do I programmatically add checkboxes to a form at runtime
The problem i'm having is programmatically adding checkboxes to the form. So far I have this code which works: Checkbox cbk = new Checkbox(); cbk.Location = new Point( 10, 10 ); cbk.Text = "I was created at runtime"; this.Controls.Add( cbk ); But I need to have the checkbox name generated by the database, I am unable to figure out how to assign a value from a SQLDataReader to be the name of the checkbox, my attempt below will not work (just replacing the hard coded name with the value from the db): while (reader.Read()) { CheckBox reader[1].ToString() = new CheckBox (); reader[1].ToString().Location = new Point (10, 10); reader[1].ToString().Text = "I was created at runtime" ; this .C ...Show All
Visual Studio Report Slow at the Printer
Have a couple of clients that are saying the report is quite slow at the printer. Both clients indicate that a page will print and there is a long pause until the next page starts to print on the printer. I tried a little test here in the office and found that a 200 page report grows to as much as 95 MB as it is spooling to the printer. I compared this to the old report writer we used for the same report in a previous version and the size only hit about 16 MB. Why is there such a difference in the size Has anyone one else found this situation and is there anything that can be done to resolved this Thanks in advance for any information. Jim The report viewer does generate an EMF file for each pa ...Show All
Smart Device Development How to simulate SMS and calls?
Hello, I would like to be able to simulate the traffic of SMS and voice calls (both incoming and outcoming). I think there are no problems with GPRS if you have properly working the ActiveSync. But I don't know if it is possible to debug the SMS and calling tasks on the emulator. Thanks, Alvaro I need to call SMS API in windows mobile emulator, too. But I have not got SMS DLL(sms.dll), Could you tell me where you download the dll file Could you give me web link, please Thank you ! chen.kline@gmail.com ...Show All
Visual Studio Unexpected number of DataSet classes found in user validation file
Hi, my VS2005/SQL Server 2005 app contains a number of forms that display and permit updates of database fields, via the standard DataSet/BindingSource/TableAdapter mechanism. For most fields, this is straightforward and works well. I'm having trouble with parameterized queries however. For a query that requires access to a second table, I establish a binding source & table adapter for that table on the form with no problem. When I attempt to do an 'Add Query...', and define a new return-data query (either via query text or the Query Builder), I get the error: "Unexpected number of DataSet classes found in user validation file. Do not manually modify the class-structure of this file." What might be the root cause of this ...Show All
Visual Basic Text color
Hi, I have a little sub here to add a line of text to a richtextbox and set the color of the first line. It works fine for the first line, but for some reason after setting the color of the first line, it sets the rest of the text in the textbox to the color it used for the first line the previous time the sub was called (which obviously isn't what it should be). Here's the sub (oType is an enum but I don't think that'll be the problem) So if I'm correct this is what you mean : Dim msgcolor As Color = Color.Blue Select Case otmsg Case oType.SendAlert msgcolor = Color.Orange Case oType.SendError msgcolor = Color.Red End Select txtOutput.Select(0, (tempdate & temptitle & tempmsg).ToString.Length) txtOutput.SelectionColor ...Show All
Smart Device Development Installing device driver
I have created a device driver for PPC that I install and setup registry entries for in HLM\Drivers\BuiltIn. Under PPC 2003, my device driver DLL gets loaded at boot time. If I go into he remote process viewer and view device.exe, my dll shows up in the list. OTOH, on a WMv5 device, the dll does not show up under device.exe until my application calls RegisterDevice. Is there a way on WMv5 to get my device driver DLL pre-loaded since it doesn't seem that BuiltIn works like it use to What limitations are there for loading device dlls On one particular device, The RegisterDevice call fails with a rc=2 (NOT FOUND) even though the DLL is in \Windows just like on devices where it works. I've been told that an rc=2 could mean, in this instance, ...Show All
.NET Development I am facing "Item has already been added"
I have an appliction created in .Net 2003 using SortedList. And it is working fine with .Net framework 1.1 Now we are analysing the impact of migrating the application to 2005. There we are facing this problem SortedList mySL = new SortedList (); mySL.Add( "First" , "Hello" ); mySL.Add( "Second". , "World" ); mySL.Add( "First" , "!" ); Error message: Item has already been added. Key in dictionary: 'First' Key being added: 'First' IS it only because of Duplicate entry Please any one kindly clarify this. Thanks Moi Hi, Yes you are right You cannot have duplicate keys. You can alternatively use Item property to add new elements ...Show All
.NET Development exception connecting to self hosted singletone server: An existing connection was forcibly closed by the remote host
hi, I used WCF to implement a self hosted singletone server. When I try to execute an operation from the client I immediately receive the above communication exception. Error code 10054. SocketErrorCode ConnectionReset. The code for the server is : Uri baUri = new Uri ( http://localhost:8080/AutoCalcServer ); CallSCGServer svcObj = new CallSCGServer (); using ( ServiceHost serviceHost = new ServiceHost (svcObj,baUri)){ try { serviceHost.Open(); Console .WriteLine( "The service is ready." ); Console .WriteLine( "Press <Enter> to quit." ); Console .ReadLine(); serviceHost.Close(); } catch ( TimeoutException timeProblem){ ...Show All
Visual C# On pressing F10 or F11 debugging is ending
Hi, I am using VS 2005 with SP1 , C# In my solution , i put a break point and it is getting hit. But, when i press F10 or F11 unable to continue further, just ending the debug with error : The program '[5892] AdminLoader.exe: Managed' has exited with code -532459699 (0xe0434f4d). I tried looking at all settings and dignostic attributes but everything is fine. Any Ideas kumar I am not getting any stack overflow neither any exception. Application is working fine, i just want to debug to put extra code for enhancement. I even created test app in my manchine , debug is working perfect in that project. No unmanaged code is written in the class which i am trying to debug. My application i ...Show All
Visual FoxPro MSCHART AND VISUAL FOXPRO 9
I am trying to use MSCHART with VFP9 and have some success until I want to set or change Legions, Titles, Colors etc. or to enter data into the second Y axis. Using any of the property / constant names only produces the message "Name Unknown". Any suggestions. Mervyn-w wrote: I am trying to use MSCHART with VFP9 and have some success until I want to set or change Legions, Titles, Colors etc. or to enter data into the second Y axis. Using any of the property / constant names only produces the message "Name Unknown". Any suggestions. You can go to the tools and utilities page at http:// www.tightlinecomputers.com and download the white papaer and sample code from my conference session on "C ...Show All
.NET Development Windows SDK Setup Wizard (.NET Framework 3.0) crash!?
i am having a problem installing the new .NET 3.0 SDK web install. I choose what options to install and it starts preparing but then i get a SDKSetup.exe crash (which is a downloaded file in my temp dir (I ran Setup.exe from my desktop). EventType : clr20r3 P1 : sdksetup.exe P2 : 6.0.0.0 P3 : 4546a930 P4 : sdksetup P5 : 6.0.0.0 P6 : 4546a930 P7 : b6 P8 : 22 P9 : system.nullreferenceexception A problem occurred while installing selected Windows SDK components. [SDKSetup:Error] Config_Products_Install: Windows SDK Setup (failed) Please resolve the issue and then start Windows SDK setup again. If you continue to have problems with this issue, please contact the SDK team at wsdkfdb@microsoft.com and provide a copy ...Show All
Smart Device Development CeFindFirstFile using VB6
Ok, my first Smart Device project and I've come to a bit of a standstill, trying to find out what files are on the device. Tried the CeFindAllFiles, but from what I have read I don't think it will function in VB6. So, on to CeFindFirstFile and and CeFindNextFile. It all looks so easy. I'm confused as to how you set up the returning information. I keep seeing references to 'CE_FIND_DATA', but what is that all about If anyone has an example or ideas it would be appreciated. Bert You need VS 2005 to develop smart device applications. You can use VB.NET, C# and C++ as your language of choice. Read this MSDN article http://msdn.microsoft.com/library/default.asp url=/library/en-us/guide_ppc/html/ppc_filemanagementf ...Show All
