Taffy's Q&A profile
Windows Forms Maximize child MDI form without ControlBox
Visual Studio 2005 Beta 2, C# Maximize mdiChild form without displaying ControlBox ... pretty much says it all. I have set ControlBox, MaximizeButton, MinimizeButton and HelpButton all = False, Set the FormBorderStyle = FixedToolWindow (actually tried them all) and WindowState = Maximize. When I .Show the childForm a controlbox still appears above the titlebar of the MDI parent ... ugly, useless and takes up real-esate better used for displaying data. I provide navigation through ToolStripMenu. I have been trying to create a workaround by sizing the childForm in the mdiParent form's Resize event but I don't know the exact height - titlebar a ...Show All
Visual C# Settings - first chance exception of type 'System.NullReferenceException'
I'm getting following exception : A first chance exception of type 'System.NullReferenceException' occurred in Copy DB.exe When using the following code (bold part) : private void cboDatabase_SelectedIndexChanged( object sender, EventArgs e) { string s = (( ComboBox )sender).Text.Substring((( ComboBox )sender).Text.IndexOf( "_" ) + 1); int i; if ( int .TryParse(s.Substring(s.IndexOf( "_" ) + 1, 1), out i)) { s = s.Substring(0, s.IndexOf( "_" )); } else { s = s.Substring(0, s.IndexOf( "_" , s.IndexOf( "_" ) + 1)); } if ( UserSettings .Default != null ) try { tbTa ...Show All
Visual Basic Objects and instances
Hmmm... this is really quite a simple question, but never mind! I want to make a simple game which uses a grid of buttons. Each of these buttons has EXACTLY the same characteristics, but I cant put them all in manually for two reasons: There are 100 buttons to put in most of the time (time consuming!) The user is given the option of how many rows and columns of buttons to put in How do you define the behaviour for a button such as this (ie what code do you use), and how do you add more than one instance of exactly the same button at run time -Javawag You can create a new button b ...Show All
Visual Basic ActiveX EXE
Is there any information on how to build the equivalent of a VB 6 ActiveX EXE in VB.NET. What I need is an application that will manage the writing and reading to an XML file between COM (Word VBA) and a .NET application. Because of the sequence of events both of these application can sometimes clash when reading and writing to the XML file. I can stack file classes in the .NET application to lock and read the XML file but this is not possible in VBA. Locking the file will not work because the XML parser in COM will not be able to read the file when it is locked and stacking file classes in VB is not possible. Another solution would ...Show All
Windows Forms Can't install IssueVision due to a password complexity issue?
During the IssueVision install I get the following error at the IssueVision Database Setup: See the end of this message for details on invoking just-in-time (JIT) debugging instead of this dialog box. ************** Exception Text ************** System.Data.SqlClient.SqlException: Password validation failed. The password does not meet Windows policy requirements because it is not complex enough. at IssueVision.Setup.CD.SelectDB.btnInstall_Click(Object sender, EventArgs e) at System.Windows.Forms.Control.OnClick(EventArgs e) at System.Windows.Forms.Button.OnClick(EventArgs e) at System.Windows.Forms.Button.WndProc(Message& m) a ...Show All
Windows Forms memory consumption and windows forms
Hi all, I'm using Visual Studio 2005 and .NET framework 2.0. I have a windows form application in which I load a form that has a dynamic user control array. I may have hundreds of instances of my user control on the form depending on the user. The control is a simple array of text boxes but when I have hundreds of instances it uses several megabytes of memory, up to 20 MB depending on the number of instances. In the task manager, I've noted that when the form loads, the memory being used by the process for my app increases. But when I close the form, the memorty is not released. I'm disposing the form and everything that I can think of ...Show All
SQL Server Big Log file that won't shrink....
I have a fairly simple DB, One Log file, one data file, its got half a dozen tables in it that are used for a web based app that allows users to look each other up (think online telephone directory with a few extra bits and you are there), there's a data feed that adds new lines each day as users data changes or new people get added. But this is a couple of hundred or so lines a day, the tables hold about 40,000 data lines as we never delete data just retire it. The problem is the main data file is about 200Mb, the Log file however is 3.8Gb. Now we did import and re-import various bits initially and clear down tables and such. But I don't ...Show All
SQL Server full text search on views?
Can we buld full text search on views If yes, can I build a search catalog on a view that allowed both varchar and text columns Hi Abhi, I've asked help for Tony Ting which is full text expert and here are his comments: Answer is yes, but you could only build fulltext on indexed view (materialized view) and column are limited to all available in normal case but not on text/ntext/image/xml column. The later constraint is came from the current limitation that index could not be created on a indexed view w/ text/ntext/image/xml, but fulltext column need a primary index to work on. Hope this ...Show All
Software Development for Windows Vista Getting started with pages blank in Dec CTP
Hi, I installed Dec CTP on win XP SP2 and I tried to look at the following pages but they seem to be blank. http://windowssdk.msdn.microsoft.com/library/default.asp url=/library/en-us/sdkintro/html/9a2db508-5b77-43f8-afa4-1ca82d24bb83.asp Can someone point to some basic documentation on how to use Win SDK Thanks, Skyblue1 This is actually by design at this point. Since this is a Community Tech Preview, these topics are placeholders for content that will be forthcoming for future releases. In future releases, they will contain usable content. What specific questions do you have about using the W ...Show All
Windows Forms Possible leak with TreeView Control
I have an simple, empty, treeview control on a form with the checkbox property set to true, upon closing of this form i just hide it. on my main form i have a button that will open that form with the treeview. so the simple code goes like this for my two form frm1 and frm2 in frm1 i have this simple code: dim formWithTree as new frm ...Show All
Visual C++ Asynchronous event
This is C# code: public delegate void MyDelegate(int n1); public event MyDelegate OnMyEvent; ... OnMyEvent(1); // invoke synchronously OnMyEvent.BeginInvoke(1, null, null); // invoke asynchronously The same in C++/CLI: public delegate void MyDelegate(int n1); event MyDelegate^ OnMyEvent; OnMyEvent(1); // invoke synchronously OnMyEvent->BeginInvoke(1, nullptr, nullptr); // C3918 Surprisingly, I solved the problem removing eve ...Show All
.NET Development Delete from FTP server
Hi, I am trying to delete a file from a local ftp, using : FtpWebRequest request = (FtpWebRequest)WebRequest.Create(ftp://localhost/test.txt); request.Method = WebRequestMethods.Ftp.DeleteFile; FtpWebResponse response = (FtpWebResponse)request.GetResponse(); last line has an exception:{"The remote server returned an error: (550) File unavailable (e.g., file not found, no access)."} System.Exception {System.Net.WebException} what can be wrong Regards Are you sure the file exists on the server If so are you sure that the account the FTP server is running as has permission to delete the file ...Show All
Visual Studio MSDN in shared location
Hello there, I have installed MSDN library for VS.NET 2003 in a machine in the network. It should act like a web server. How can I view those documents from my development machine, Since it consumes more space I don't want to install the MSDN Library in my development machine. It is something like viewing a webpage on the browser. How can i achieve this Thanks in Advance, Sekar Hello Sekar, We don't have a perfect solution for your issue but there is a feature in VS.Net 2003 Library that can help you. Steps: First perform an admin install (Netcopy) of the library on a server. You can do this by fol ...Show All
Visual Studio 2008 (Pre-release) DLinq association code generation bug
The generator wrote some brain dead code for an Association. this._Organization.Entity = null; this._Organization.Entity.CdsUsers.Remove(this); Here it is in it's full glory for context: [System.Diagnostics.DebuggerNonUserCodeAttribute()] [System.Data.DLinq.Association(Name="FK_CDSUser_Organization", Storage="_Organization", ThisKey="ORG_ID", IsParent=true)] public Organization Organization { get { return this._Organization.Entity; } set { if ((this._Organization.Entity != value)) { this.OnPropertyChanging("Organization"); if ((this._Organizati ...Show All
Visual C++ variable in form
Is a good idea declare variable (like int, bool) in the form's scope Do you mean is it a good idea to add a data member to the class that represents the form If so: then yes: if you need to associated some state with your form then there is no reason why you shouldn't add a data member to the class. ...Show All
