mmresnick's Q&A profile
.NET Development Problem Connecting to MSDE 2000 from VB.NET 2003
I'm stuck on something and looking for any direction to assist... I am creating a windows application in VB.NET 2003 which connects to an instance of MSDE 2000 Rel A called "MyDatabase". I have a database called TEST on this instance. I can connect via the Server Explorer and also via code. Everything is fine on my developer machine. I use the following connection string: Public Function ConnectToDB() As Boolean Dim ConnString As String 'ConnString = "workstation id=SWEETNESS;packet size=4096;integrated security=SSPI;data source=MYMACHINE\ORACLEHELPER;persist security info=True;initial catalog=master& ...Show All
Visual Basic how to add a "spinning icon" while my program is running
my program takes around 5 seconds to finish each task i'd like to put a spinning picture to make this waiting less boring just like in many installation programs how can i do that what image format should i choose thanks I guess an animated GIF is the obvious choice. Your UI and tasks should be on seperate threads for this to work, you can call Application.DoEvents in your loop if you prefer. ...Show All
Windows Forms MDIChild Login Form
Hi all, I've got this problem: I have an MDIParent form called adminForm and a MDIChild form called loginForm. The loginForm will be loaded at startup, and all the menus of the adminForm will be disabled. When user successfully login, the loginForm will be closed, I want all the menu items of the adminForm to be anabled, but I cant access such menu items in the class that contains the login form (MDIChild form) I use this code to activate the MDIChild at startup private void frmAdministrator_Load( object sender, System.EventArgs e) { frmLogin loginForm = new frmLogin(); loginForm.MdiParent = this ; loginFor ...Show All
SQL Server pagesize of report is much larger than expected when printed
I created a report with RS in VS.NEt and set the width and height to 8.5in by 11in from the property window. When I designed it , everything fit on one page nice and neat. When printed it prints on two pages and the font size comes out much larger than expected. The whole document seems to have been blown up bigger and the right side of the document has been cut off. Why is this Do I need to configure vs.net to print Am I missing some setting somewhere Other documents print out fine on this printer, so it is not the printer. Any help would be greatly appreciated, thank you this seems small but if I can't get the report to pr ...Show All
Visual Studio 2008 (Pre-release) Simple expressions in Binding
I'm trying to set the text of a button based on whether a panel is visible or not Is it possible to have simple expressions like tenary operators in binding expressions for XAML e.g. something like the suedo code below or should we use triggers instead Thanks (I'm really new to WPF but like it so far) < Button Click = " ShowTop " Content = " {Binding Value=( myContent.Visibility == Visibility.Visible) 'Hide' : 'Show'} " ></ Button > you need to use an IValueConverter. see my posting earlier in the forum: http://forums.microsoft.com/MSDN/ShowPost.aspx ...Show All
Windows Forms How to run a dos command in the Window Forms
Hi, I want to design a button in a Window form. Pressing the button, then a Dos .exe file can be implemented. Is there anyone can help me out Thanks a lot. The answer can be found in the following article: http://www.codeguru.com/Csharp/.NET/net_general/threads/print.php/c8503/ A 'DOS command' would be called like this: CommandLineProcess cmd = new CommandLineProcess(); cmd.Command = "dir"; cmd.Arguments = "C:\"; cmd.UseComSpec = true ; bool bSuccess = cmd.Start(); ...Show All
Visual Studio Express Editions C# compile problem
Error 3 The assembly "c:\dev\my Documents\VstdioProj\C#\SomeClass\SomeClass\bin\Release\SomeClass.dll" could not be converted to a type library. Type library exporter encountered an error while processing 'SomeClass, SomeClass'. Error: Element not found. C:\WINDOWS\Microsoft.NET\Framework\v2.0.50215\Microsoft.Common.targets 2674 9 In the foldler C:\WINDOWS\Microsoft.NET\Framework\v2.0.50215, I found the following folders: 1033 CONFIG MSBuild MUI RedistList ASP.NETWebAdminFiles Microsoft .NET Framework 2.0 Beta 2 Temporary ASP.NET Files and the file Microsoft.Common.targets In other word, don't I have the fiel w ...Show All
Visual Studio Express Editions Problems with StreamReader
I have an "address.txt" file containing some sample data ... for example containing 5 records. The fields are | deliminted and the records are separated by a " " or carriage return. Gomez|Addams|001 Cemetery Lane|Spooky|CA|90120 Morticia|Addams|002 Cemetery Lane|Spookyville|NV|12584 Lurch|The Butler|003 Cemetery Lane|Spooks|WA|25874 Thing|Handyman|004 Cemetery Lane|Sparkle|OR|65874 Grandmama|Addams|005 Cemetery Lane|Spegal|PA|55555 I initially load my form with record #1 and I have a next button which moves through the records 2, 3, 4, 5. My question is ... let's say I'm on record 3 and I want to immediately go b ...Show All
SQL Server using SQL for small apps
I’ve been programming against Access databases under VB6 for a while, but since everyone is talking about moving to the latest and greatest of .NET, SQL, etc. I’ve been trying to learn these new technologies, however, I’m unsure if they’re right for me. My database programming has been on a small scale, using databases for personal applications, for example, the way Adobe Photoshop Album uses an MDB file to keep track of all the tags and pictures in it’s database. Another common scenario where I utilize MDB files is when I have reasonably complex user settings that need to be saved and manipulated. I generally don’t progr ...Show All
Visual C++ Printing to Laser vs Inkjet
This is my first post, so please guide me if I have cjosen the wrong place. I am printing from my C++ application written under Visual C++ 6.0, and I can print fine to Laser printers such as LaserJet II or LaserJet 4400, but if I direct the print to a DeskJet printer, the document doesn't print and the printer status box always seems to dhow 48 bytes printed out of whatever the document size is. The code I'm using to start printing is..... ============================================== vertpos = 0; dinfo.lpszDocName ="Membership Card"; dinfo.lpszOutput = NULL; ...Show All
Visual Studio Team System Merge tool - missing dialog button labels and toolbar icons
When comparing two identical files, the Visual Studio dialog box that should read "The files are identical" does not display the message or the "OK" or "Help" button labels. When comparing two different files, the differences are displayed but the toolbar icons are missing. What is odd is that it is only occurring when using the merge tool. I thought it may be a control library issue, but the controls in Visual Studio, SQL Server, and other applications render fine. OS: Windows XP Pro SP2 VS: 8.0.50727.42 (RTM.050727-4200) TFS: Beta 3 Refresh .NET: 2.0.50727.42 Any comments, suggestions, etc. will be ...Show All
Visual C++ Help Need Compiler Errors
Hi All, I am having the following error when i try to recompile my source from VC 6.0 to .NET 2003. Any help in resolving the error is appreciated. ------ Build started: Project: dataAccess, Configuration: Debug Win32 ------ Compiling... TemplateBinMonitor.cpp c:\airs6.x\tags\CODE\interface\state\TagsString.h(93) : warning C4018: '<' : signed/unsigned mismatch c:\airs6.x\tags\CODE\implementation\h\dataAccess\TemplateBinMonitor.h(49) : warning C4114: same type qualifier used more than once c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xmemory(138) : fatal error C1001: INTERNAL COMPILER ERROR (compiler file 'msc1.c ...Show All
Visual C# What is this message telling me?
I keep getting this error message and haven't been able to locate a solution: An unhandled exception of type 'System.IO.DirectoryNotFoundException' occurred in mscorlib.dll Additional information: Could not find a part of the path "J:\DOH SSN MATCH\Unwise\tempFile.txt". The error pops up on the StreamWriter in following code: private void CheckForCrlf () { string chekText = "" ; FileInfo fi_SourceFile = new FileInfo ( m_inFilePath ); StreamReader sr_chekTest = fi_SourceFile . OpenText (); StreamWriter sw_chekTest = new ...Show All
Windows Forms Obtain the control beneath the cursor
I'm writting some custom drag-and-drop code. I captured the mouse to begin the drag. During the mouse movement of dragging, I need to obtain the control (or window handle) directly beneath the cursor - the same way Windows dispatch mouse event to different window while it's not captured. I checked the Platform SDK, no such API found. Seems I have to en ...Show All
Visual C++ user breakpoint exception
Hey Everyone, I am trying to debug my application but its giving me UserBreakpoint exception. The debugger stopped with this exception. When I tried again with putting my exe on shared drive and attaching my debugger to that process, surprisingly it worked fine. From one of the forum I came to know that this happens because of heap alloc problem. I have no idea how to handle this situation. Can anyone help me with this Thanx in advance. See if this can help: http://www.debuginfo.com/tips/userbpntdll.html ...Show All
