GoodCook's Q&A profile
Visual C# Making a Tab Manager with vc#2003
I'm trying to make a program where you can clone tabs. You start with one tab, and then when you add a tab it duplicates the selected tab's controls. Another button on each tab needs to find out what members are on it's tab ( in order to access a RichTextBox on that tab and no other tab). I tried to create a tabMaster class but I keep getting errors when I try to pass TabPage objects to it (tried using ref keywords and also making it static, but it won't work) I created the initial form and tab using the IDE. I put a tabMaster in my form's member's section and then try to construct it in the form's constructor. No matter what I do I g ...Show All
SQL Server Shrink log transaction file
Good day, I have a database at the moment in SQL Server 2000 which is about 700meg, but the transaction log is just short of 50gig. How can I shrink this safely. Is setting the recovery model to simple and then truncating the log wise. Currently the recovery model is full. Please advise and help. Hi there, Basically to shrink your log file you will have to issue a BACKUP LOG statement to truncate/remove un-needed log entries and then issue a DBCC SHRINKFILE command against your transaction log file. If I have to do this, I tend to use something along the lines of DBCC SHRINKFILE(<File Na ...Show All
Windows Forms IS it possible to load Word into a VB.net App?
Hi All, Is is possible to load word into my vb.net app in such a way as to enbale the user to edit a document in the way they are happy with but give me control over what happens to the file. Ie control over 'save' and 'save as' Danny Hi, With the following code you can open an word doc: If IsFilePresent(mstrWordDocFolder, strGekozenString) Then Dim wordApp As Word.Application Dim wordDoc As Word.Document Try ' Create new hidden instance of Word. wordApp = CType (CreateObject( "Word.Application" ), Word.Application) wordApp.Visible = True wordDoc = wordApp.Documents.Open(([here the path and doc name ) ...Show All
Windows Forms .net 2.0 DesignerSurface
Hello, I'm not sure if this is the right place to ask, but I'm looking at the DesignSurface, and the way you can add runtime design support for a windows form. Can the DesignSurface be used for other types of design support Maybe webforms or even design datasets at runtime /Regards klaus Ok. Thanks Mike. Do you know, if there are any plans on making the asp.net designer public I have noticed that the WebFormsRootDesigner is to be located in the framework, but with limited use. regards ...Show All
Windows Forms Invoke Property Editor
Ok This is a simple question I hope. I want to be able to invoke a controls property editor. For example in VS.Net you select the control then select font and it shows the font dialog box. I want to be able to invoke that controls font property editor (the font dialog) from code. Is there a way to do this Joe Sorry. Took ...Show All
Architecture Need help on design pattern
Can somebody help me in deciding the best pattern I should use for following scenario Here is my scenario. XYZ is a company with different members. XYZ sign up with different providers. Each provider needs different information from members. Some of which is common to all providers like first name, last name. On member enrollment screen, first member will select provider and depend on that provider I'm creating controls dynamically (normally input boxes). This is working fine. I created member object with all possible information provider needs (object properties in my case). On submit button I’m assigning values from dy ...Show All
SQL Server Error updating data in table that uses a trigger?
Hello. I am new to SQL Server Management Studio 2005 and am using it to connect to a database on another machine running SQL Server 2000. Everything seems to work well, except when I try to edit table data on a particular table that has an update trigger associated with it. I am receiving the error: ------- The data in row 1 was not committed. Error Source: Microsoft.VisualStudio.DataTools. Error Message: The row value(s) updated or deleted either do not make the row unique or they alter multiple rows(5 rows). Correct the errors and retry or press ESC to chancel the changes. -------- I want it to update those the 5 ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Strange memory leak
Hello there, this is my third time recoding a simple 2D engine, but I keep getting the same memory leak. This is by far the smallest memory leak(8k a second), but I am still concerned with the problem. This is the code I have to rendering, and I am sure it's something with the way I display my tiles. Any help would be appreciated :) device.Clear(ClearFlags.Target, Color.Black, 1.0f, 0); device.BeginScene(); newFont.DrawText( null ,"Fonts are great\nRotation Angle: ", new Rectangle(16,16,0,0),DrawTextFormat.NoClip,Color.YellowGreen); thisSprite.Begin(SpriteFlags.None); for ( int sx=0;sx<10;sx++) { for ( int sy=0;sy& ...Show All
Visual C++ Win32 Text Box input??
Hi, I am rather new to the whole API and Win32 thing. I really like having control of what goes into my programs. I have a window that has two input fields, one of which is a username and the other is for a password. I decided to work with this type of program so I can be introduced to the several different window messages that will be called from all of the different usernames and passwords. My problem is getting the input from the username field into a string. For example here is the code: //lockout_header.h #pragma once //It is here because of problems with loading a bitmap #include <windows.h> ... #define C ...Show All
SQL Server Help setting up replication on remote IIS
Hello, I am trying to setup merge replication for a sqlmobile database. I was able to set it up on a test environment which the sql instance and the iis were on the same box. I am trying now to go live. Our sql instance is on another box than the iis. I am now getting a 404 error when trying to test in the url https://www.domain.com/sqlmobile/sqlcesa30.dll diag Is there a walk through for iis running on a different box, or does someone know of a solution HTTP Error 404 - File or directory not found. Internet Information Services (IIS) Hi John questions: -what do you understand under a "box" -can you o ...Show All
.NET Development OleDbCommand.ExecuteReader(CommandBehavior.KeyInfo) throws System.NullReferenceException.
System.Data.OleDb.OleDbDataReader reader; System.Data.OleDb.OleDbCommand selectCommand = new OleDbCommand(selectCommandText, OleDbConn); reader = selectCommand.ExecuteReader(CommandBehavior.KeyInfo); Error System.NullReferenceException: Object reference not set to an instance of an object. at System.Data.Common.ICommandText.Execute(IntPtr pUnkOuter, Guid riid, tagDBPARAMS pDBParams, Int32& pcRowsAffected, Object& ppRowset) at System.Data.OleDb.OleDbCommand.ExecuteCommandTextForMultpleResults(tagDBPARAMS dbParams, Object& executeResult) at System.Data.OleDb.OleDbCommand.ExecuteCommandTex ...Show All
.NET Development System.Timers.Timer
Hi all. I have developed a windows service that contains many worker threads. Each worker thread contains a System.Timers.Timer. This service is running well (no glitch) on WinXp, but when I try to run it on Windows 2003 Server it starts to have problems: some of the timers stops firing Elapsed time event. Any ideea Thank you in advance. Mircea Hi Mircea, I had a similar problem on XP machines. Try to implement System.Threading.Timer instead of System.Tiimer.Timer. It worked in my case. Thanks Tom ...Show All
Visual Basic Magic Number???
I'm trying to decompress a ZIP file using VB 2005. When calling the Read() method on a GZipStream object I get this error message: "The magic number in GZip header is not correct. Make sure you are passing in a GZip stream." I think I'm doing everything by the book. What is this magic number It sounds like the file is broken (doesn't have a valid GZIP header) http://msdn.microsoft.com/msdnmag/issues/05/10/NETMatters/default.aspx http://en.wikipedia.org/wiki/Gzip Best regards, Johan Stenberg ...Show All
Visual Studio Cannot get local version of MSDN to be called up from VS 2005
Hello, I have recently upgraded to VS 2005 release candidate. I then installed the full 2.6GB version of MSDN locally. I need to figure out how to get the local version of MSDN to be accessed from VS 2005. I have specified "Use local first, then online" as my option for help. Whenever I double click a class name and hit F1, I expected to get the local definition of that class. Instead, it goes through the relatively long process of looking online for it. Is this a bug or a feature I reported this as a bug also. TIA for your help, Joe Barry I am having the same problems with running MSDN October 2005 he ...Show All
Visual C++ MDI child frame window drag outside the mdi parent window
Hi All, Is it possible to get the mdi child window to be dragged outside the mdi parent area I know i have seen this before, but forget where Thanks mickey The MDI window itself cannot be dragged outside the MDI Frame. They are children of the parent. If you want to do something like this you have to reprogram this stuff. The window that should be dragged outside the MDI parent must be a parent of the desktop window. Maybe its possible to reprogram the drag stuff. When the drag is done you can create a new frame and set it as new parent to the window  ...Show All
