fchapa's Q&A profile
Visual Studio Express Editions Program freezes before all possible numbers are generated.
I wrote this little program as an experiment to generate a different random number each time a key is pressed. If user keeps pressing key, it should continue until all 30 numbers have been selected but it freezes up before then. Why (I know how to do this using an array, but I just wanted to experiment with a different technique.) Module Module1 Sub Main() 'buggy - stops and freezes before 30 Dim rand, ind, count As Integer Dim srand, st, norep As String norep = "" count = 0 Dim randnum As Random = New Random Console.WriteLine( "Press any key to continue, Esc to stop" ) Do count = count + 1 Do rand = randnum.Next(1, 31) srand = rand.ToString ind = nore ...Show All
Windows Forms folderbrowserdialog is available in .net framework 2.0 ???
Hi All, First question is does .net framework 2.0 supports "FolderBrowserDialog" class (1.1. supports and I want to use it) Second is how do I know "whether particular class is available in particular .net version or not" Hi there, The framework 2.0 supports the FolderBrowserDialog class as you can see here http://msdn2.microsoft.com/en-us/library/system.windows.forms.folderbrowserdialog.aspx (look at the bottom of the page for 'version information') To find out if a class is supported in a specific version you can search it on the msdn site at http://search.msdn.microsoft.com/search/ If you can find the class, look for the 'version information' section on the page. ...Show All
Visual Studio Express Editions HELP! HELP! HELP!
Hi im new and heres my problem: I want to create a program where you can create accounts and log in (somekind of password protected database) and see data of accounts and stuff like that. where do i start and do i have to do I want to save the data in the data table if you know what i mean.so when the user closes and reopens the program the data is still here. ...Show All
Visual C# How to open a new window form?
thank you for replay since you didn't explain really exactly what you are after, try this to open a new form, assuming if the form exists in your project: Form2 theOtherForm = new Form2(); theOtherForm.Show(); of course, replace Form2 with the name of the form in question you wish to show. You can also use ShowDialog(); to make sure that user cannot access previous forms until this form has been closed and will block the code executing from the caller until the form is closed: Form2 theOtherForm = new Form2(); theOtherForm.ShowDialog(); ...Show All
Visual Basic serial port communication with picaxe?
If anyone is familiar with the picaxe syntax sertxd ({#}data,{#}data...) to send 'data' (variable like b1 etc) through the serial cable can anyone tell me how to recieve the data in visual basic. im new to this whole chiptocomputer thing so can you talk simple, question: is this close 'send data via chip then... Dim trans as string trans = readport("COM1") label1.text = trans also can I just send the data from the picaxe at anytime (with the cable connected and battery connected) and then at any point after that read com1 or do I have to do something special really new please help!!!!!! ...Show All
Software Development for Windows Vista Manage Card Creator error
Try to create a .crd file using the Manage card creator but encountered error. Error: << Could not create card System.TypeLoadExecption: Could not load type 'System.ServiceModel.X509CertificateIdentity'from assembly 'System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'. at ManagedCardCreator.ManageInfoCard.SerializeAndSign(String filename, x509Certificate2 cert) at ManagedCardCreator.ManageCardCreatorWindow.CreateButton_Click(Object sender, EventArgs e) >> Anyone knows what is the problem What .NET build are you trying to run it on Which version of the Card Creator Have you tried the July CTP creating managed cards sample: http:// ...Show All
Visual Studio Express Editions exe is not shown on desktop when cliked on "show desktop" icon
Hi. I have a from with monthcalender control.I have placed the exe in the startup folder so that i get to see the current date on my desktop.The transparency level of the form is set so that only the calender is the clikable control.. rest areas of the form are made transparent.. more like glass form.The desktop items are accessible(clikable) through the transparent form However when i clik on "Show desktop" icon my form along with the control disappers( i think the form is also getting minimised with all other applications when i clik the "show desktop" icon) how can i correct this situation.Pls help Thank you Hi, I've kinda created a code. You better check it out coz zometimes it acts funny on my ...Show All
SQL Server Web service to call integration services
Hi, I'm hoping someone has tried something similar before. I am trying to run an integration from a remote computer using a web service. I have set up the web service and the bog standard launch package routine works fine. What i'd like to be able to do is to launch a package and also specify any parameters associated with it. I have the following code which is identcal to the main launch sub with the exception of an extra argument (jagged array of varible name and value variablePair[4][2]). It also processes the variable array and sets them on the DTSPackage object. [code] [WebMethod] public int LaunchSSISPackageWithVariables(string sourceType, string sourceLocation, string packageName, string[][] variableArray) { string packagePa ...Show All
Visual Studio Express Editions Breakpoints do nothing
I can't get breakpoints to work. I can set them, but they don't actually do anything (the program does not stop when it hits a breakpoint). As far as I can tell I am building and running in debug mode. I've tried re-installed VC++ 2005 Express several times. I've never gotten breakpoints to work. I'm a noob. Keep that in mind if you try to help me. OK, there are two things you can try. The first is to set a break point right at the start of the main function. The second is to use the f10 key to step through the program to see if you actually hit the breakpoints you set. ...Show All
Visual Studio 2008 (Pre-release) Setting an XElement's value
In section 2.7.3 of the XLinq Overview document of the May CTP release, a method named ReplaceContent is discussed for the purpose of updating an XElement's value. No where does it mention setting an element's value via the XElement's Value property. Is this a no-no It does work. Here is a code sample: XElement auto = new XElement ( "Automobile" , new XElement ( "Make" , "Ford" ), new XElement ( "Model" , "Mustang" ), new XElement ( "Year" , "2004" )); Console .WriteLine(auto); auto.Element( "Year" ).Value = "2006" ; Console .WriteLine(auto); And here are the results: <Automobile> <M ...Show All
Windows Search Technologies wds exception error when clicking file types tab
System WinXP current with all updates. WDS 3.0 beta 2. Uninstalled previous version of WDS prior to installing 3.0. When using control panel to access indexing options, then advanced button, then file types tab, I recieve the following error. RUNDLL An exception occured while trying to run "C:\WINDOWS\system32\shell32.dll,Control_RunDLL "C:\WINDOWS\System32\srchadmin.dll",Indexing Options" When accessing indexing options from right click on tray icon, then advanced button, then file types tab, I get the following. RUNDLL An exception occured while trying to run "shell32.dll,Control_RunDLL "srchadmin.dll"" I've spent most of the morning trying to find any information on this with no luck. I've also un ...Show All
Game Technologies: DirectX, XNA, XACT, etc. The Wizard: A new tutorial covering making a 2D character walk, jump, duck and shoot
There is a new tutorial ("The Wizard") at XNA Development walking through the code for making a 2D game character walk around, jump, duck and shoot. "The Wizard" tutorial also covers the concepts of game state (or in this case character state), using an image or tile sheet for textures, simple animations and some basic OO concepts. The tutorial and source code can be found here . Hope it helps! ...Show All
Windows Forms passing data between 2 datagridviews
Hi, How to pass data/rows from between 2 datagridviews For example: datagridview1 item id(txtbox) || item desc(txtbox) || 100(chkbox) || 200(chkbox) 1 || apple || (checked= Y) || (checked = N) 2 || orange || (checked= N) || (checked = Y) When user click on the specific row, it will transfer all the 4 columns and the row values into datagridview2 datagridview2 item id(txtbox) || item desc(txtbox) || 100(chkbox) || 200(chkbox) 2 || orange || (checked= N) || (checked = Y) Thank you for the help. Hi, TommyGL , W hat yo ...Show All
.NET Development Error Creating Control - CreateUserWizard1
Hello, Each time I use explicit localization for the DupicateUserNameErrorMessage Property or any other error message property I receive an error. Error Creating Control - CreateUserWizard1 Object reference not set to an instance of an object. This error is displayed on the control which is viewable in design view of VS 2005. I made the settings by going into Properties - Data - Expressions. I selected the DuplicatedUserNameErrorMessage as the bindable property - Expression type as Resources -ClassKey = AppResources and ResourceKey as ErrMsgNewAccountDuplicateUserName. I've used the same sequence of settings for explicit localization on other controls (ChangePasswordControl) without receiving this error. Unless I'm doing som ...Show All
Visual C# Application Events
I am running an application that has the capability of calling an external DLL when certain events occur. The application is not written in Managed Code, basically in the app's ini file you specify the .DLL you want it to call. The app needs to call 2 methods contained in the .DLL. My question is how would I go about writing this DLL in C#, is it even possible The docs give examples in C++, but they are way out of my league. Anyone have any resources they could point me to, to get me started Thanx. In Visual Studio 2005... 1) Add the third party dll as a reference to ur project. 2) Then right-click the added reference. 3) Select the option "View in Object Browser". It list u all the namesp ...Show All
