Voodoo45's Q&A profile
Visual C# Load user control during the run time
how can I load the user control into my main form during the run time Thanks, Tammy At the very least it's just as easy as adding any other control, you need only create an instance and add it to the Controls collection of the parent container: MyUserControl control = new MyUserControl (); this .Controls.Add(control); You are free as well to put any additional init info you'd like between the two above lines. ...Show All
Visual Studio how to passs parameters to a crystal report from vb.net
HI I want to pass date parameter to crystal report using vb.net My requirment I have an enquiry details table in sql server i want to get a report for the all enquires between two dates ...Show All
Software Development for Windows Vista Multiple NTVDM.exe
I work for a corporation(TimeManagement Corporation) that uses a 16 bit application that runs in the virtual dos machine. Two years ago Microsoft released a security patch(MS04-012) that caused each new 16-bit file to open in it's own ntvdm thus not allowing our 16-bit application to communicate with other files that it calls. We contacted Microsoft about this but it was not taken care of until we posted on a forum. They then released a hotfix(KB841559) to fix this issue. We are now having the same problem with MS Windows Vista and would like to know if we can get a fix for this issue to allow our program to be compatable again. Paul, is your console elevated because when you run it from desktop, it sim ...Show All
Visual Studio Team System question about the trial version of TFS
I installed the trial version to test it for a couple of weeks and TFS is not allowing me to add domain accounts to it. Is this a limitation in the trial You installed workgroup edition, which is limited to "workgroup" environments, not allowing AD users, and being limited to only 5 users in the "Team Foundation Licencesed users" group. ...Show All
Visual FoxPro Rotation vfp helpfiles not working
this code is copied straight from vfp 9.0 help files. i just added the two paramateres this code works in vfp and when i run just the application on the computer that has vfp installed. however it is not working on non vfp computers. on a non vfp computer all i see is a wait window that says rendering and its tallying up the pages. PARAMETERS REPNAME,ANGLE_OF_TILT LOCAL oListener oListener = CREATEOBJECT("rotateText") oListener.ListenerType = 1 REPORT FORM &REPNAME OBJECT oListener #define FRX_OBJCOD_PAGEHEADER 1 DEFINE CLASS rotateText AS ReportListener IsInPageHeader = .F. PROCEDURE Init() DECLARE integer GdipRotateWorldTransform In GDIPlus.Dll ; integer graphics,single angle,integer e ...Show All
Visual C++ How to restore old source file
I've modified the source file a lot, as VS save the source file automatically when compiling, how can I restore the original source file pressing undo button to rollback all previous typing is not fun. Thanks. VS 2005 Professional comes with Visual SourceSafe. You can install that and will find a new Source Control submenu in the File menu. You can then add your projects to a source safe database. Now you must checkout files before you use them and when you check them in again, SourceSafe will keep a history. So you could rollback to all previously checked in versions. -- SvenC ...Show All
Windows Forms Scrollbar.value cant be set to scrollbar.maximum
In a windows form app it's impossible to set the value of a scrollbar (hScrollbar or vScrollbar) to it's maximum by moving the thumb or clicking the scroll arrows. The value will be no higher than approx. 90% of the maximum. It makes no difference whether the maximum has been set in the IDE or from code. Repro: - create a new Windows application - add a scrollbar and a label to Form1 - add a scroll handler to the scrollbar and add the following line to it: label1.Text = "Maximum: " + Convert .ToString(hScrollBar1.Maximum) + " Value: " + Convert .ToString(hScrollBar1.Value); - run the app and try to set the scrollbar to it's maximum value I can't imagine that no-one has encountered this befo ...Show All
Visual Basic Combobox ItemData is not available/accessible
I have a VS.net solution (multiple projects), created entirely within VisualStudio.Net 2002. I try to access and update ItemData property of a MS-form combobox, design mode, yet the property is not accessible. NewItemID is not accessible either. I have queried from the internet and found an article, from Microsoft, stating similar problem when migrate from VB6 application into VisualStudio.NET 20056. However, for my scenario, the entire solution is completely created within VisualStudio.NET 2002. Thank in advance. I've read in the online help system, comes with VS.NET 2002, itemdata is available for listbox, hence combobox. Currently, my comboxbox(es) is loaded with user-defined class, that has 2 properties; 1, defaul ...Show All
Visual Studio Express Editions User Control and Happy New Year
Happy New Year to Everyone at the forum. My first question for 2007 is, How do I get a user control into my program, I right clicked in the solution explorer Add > Existing item , navigated to the ctrl that I wanted to add and it appeared in the solution window, now how do I get it into the Toolbox so that I can use it in my project Hi Graham - Happy New Year To add the control to the toolbox right click on the toolbox and select Choose Items. Under .Net Framework Components select Browse. Find the dll for the control you have created and select it. And it should appear in the box. ...Show All
SQL Server Urban legend - SqlSvrExpress Works in Production Web Site!!
After days of trying to deploy my web application along with the ASPNETDB database I am convinced this is actually just an attempt on the part of the MSFT developers to drive us nuts. It simply will not work. As reported by everyone in all of the forums, it works fine in development but does not work when deployed. If I move my data to a full SQL Server instance and modify all of my connection strings accordingly, it works fine, as well. It just does not work when I publish the app and try to run it using the AttachDBFilename methodology. I am convinced that only Santa Claus or an honest lawyer can make it work. Let's recap the steps: first, I create the folder that I want to use for production and give Modify permissions on that fol ...Show All
Visual Studio Cannot Edit Macros
Hi; I'm trying to edit a macro that I've recorded in VS 2005. In Macro Explorer, I right-click on TemporaryMacro, click on "Rename" - and I renamed it to Macro01 - OK - no prob. I then right-click on the macro, click on "Edit" - and nothing happens. I also did the following: Tools > Macros > Macro IDE ... ... and I get a message box, with the error message "Class Not Registered." Perhaps this is related - I dunno. I'm a novice at this, and not very bright, so PLEASE take things slow with me. BTW: Can macros be written in C# ... or is it Visual Basic only THANKS! Carlos Quintero MVP wrote: For the first part you can try to repair/reinstall VS. I've just done that, and it seems to ha ...Show All
Software Development for Windows Vista missing winable.h
Hi, I've installed Windows SDK RTM and associate the SDK with Visual Studio 2005 by clicking "Integrate Windows SDK with Visual Studio 2005" in the start menu. But after doing so, some of my projects cannot be built any more. After some investigation, I've found that there're several missing files. For example, winable.h oleacc.idl are missing. They're in the Platform SDK included in Visual Studio 2005. So can I use the 2005's include files anyway or are there any other workaround for this Thanks in advance, I understood the situation. But the problem is that we have so many legacy codes which depends on these files and the codes should keep compatible with older Visual Stud ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Computer problems or XNA problems?
Ok. I recently just followed "The Wizard" Tutorial found here: http://www.xnadevelopment.com/tutorials/thewizard/theWizard.shtml It's a great tutorial but for some reason, a lot of my code went wrong. Some functions were already defined....in fact a lot of them were. Not only this but code like "Sprite.Sprite" wouldn't work. I eventaully gave up & copied the entire source to my project so it would work. Could any of this have resulted from my computer or simply from XNA Thank you, I have made an effort to break new tutorials down in a more step by step process as requested by most people. I always appreciate advice and feedback. Hopefully the quality just continues to impr ...Show All
SQL Server ETL Guidance
Hi, We've decided to use SSIS for an ETL type project. We are going to convert some files to our special flat file format. Our special flat file format will not change, but we will need to convert about 40 different style flat files into this format. We will receive any of these files at random intervals. We will likely have to add more file formats to the 40 at some point, too. I'd like to use a flexible design, but I just started with SSIS and its going to be hard to test all the possible combinations, so I hope I can find some guidance in this forum. What would be a good approach to allow for the most reuse of work to support these various file formats Jamie Thomson's excellent SSIS ...Show All
Software Development for Windows Vista How to build a generic runtime host?
Hi, I know this is a quite a big question, but I have to ask it :-) How would I write a generic windows workflow foundation runtime host. What I want to do is: 1. Write a Windows Service that exposes the Windows Workflow Foundation Runimte as a remoted Singleton object. Let's call that one WorkflowEngine. 2. The WorkflowEngine has state persistance and tracking services enabled. 3. The WorkflowEngine offers a method lets say Startworkflow( workflowToStart) that is able to start any given workflow as long as the assembly the workflow is defined in is available to the Engine. ( I can imagine how to do this this with System.Refelection.Assembly.Load() and GetType.... 4. The WorkflowEngine offers a method RaiseEvent( workf ...Show All
