Mr. Hanky's Q&A profile
Windows Forms Multiple MainMenu problem
I have a Form with 3 MainMenus on it. I am trying to make as follows: foreach menu in "MenuCollection" menu.some_method My Problem is that I do not know where the "MenuCollection" is. I cannot create th ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Problem Installing Direct X 9c
I have problem installing it cos it always complete straight away. i check the version its still the same. This is my Direct X log File 03/18/06 12:36:36: dsetup32: === SetupForDirectX() start === 03/18/06 12:36:36: dsetup32: Feb 3 2006 07:30:18 03/18/06 12:36:36: dsetup32: DXSetupCommand = 0. 03/18/06 12:36:36: DXSetup: DSetupCallback(): Phase = 0, Steps = 0 03/18/06 12:36:36: dsetup32: DirectXSetupIsJapanese == 0 03/18/06 12:36:36: d ...Show All
Visual C# Object = Object - sets a reference?
Hi, I understand that if you do object1 = object2; in c# that sets object1 to reference object2, so in essence they are one and the same. I'm trying to do this with two objects stored in a hashtable. I have a function that returns an object stored in a hashtable, so doing somehting like this public void SetValue(string Name) { obj = GetItem(Name); obj.value = 123; } will set the hashtable object's item value to 123. This works fine. However, I'd ...Show All
Visual Basic How can I create a date control that validates and confirms that the user is entering a valid date
How can I create a date control that validates and confirms that the user is entering a date in the right format (mm/dd/yyyy). I don t want to create functions that validate the data that he user enters by checking that the first 2 digits are less than 12 (meaning it s a valid month). I guess VB does that automaticaly (I have VB.NET 2003) and am developping VB windows forms (not asp forms) I m glad I m now a memeber of this fabulous forum. ...Show All
Visual C# How can i make a program start on windows startup?
Hi I want my program start on startup on, in a way that i wold be able to create a CheckBox to choose if to start on startup or not. Hi I think this article might help http://www.codeproject.com/useritems/startedit.asp ...Show All
SQL Server Merge replication failing after recreating the publication
I am having a problem with merge replication after recreating a publication. It is a simple two-way replication between two servers allowing applications to update data at both ends, i.e. 1 publisher, 1 subscriber for all tables except some junk ones. The problem started after I did the following: 1) I dropped and recreated the publication to allow for some changes to the database schema. These caused problems so I dropped the subscription an ...Show All
Visual Basic Need to call external DLL that takes structured parameter
Hi, My application needs to call an external unmanaged DLL supplied by a third party. That DLL is written in C I suspect, it takes a struct parameter that holds some 30 fields, most of them of type char[x] where x varies for each field. What I did was a wrapper class, that has a declare statement like this Private Declare Ansi Sub ExternalSub Lib "ExternalDll.dll" (ByRef struct As strParam) The struct is defined like this & ...Show All
Visual Studio Express Editions Cannot Access Free Registration Materials via Thank-You Emails
Hi everyone. I'm trying to access the free downloads that come with registration, but I only see the Web Developer downloads listed. I don't see the icons, components, or book that come with C#. I assume they would all be listed on one page, but they aren't there. How can I find them Thanks, John Salerno P.S. I don't understand how to download what *is* there either. The link to the Web Developer book says it's a pdf, but when you download it ...Show All
Windows Forms converting image in a clipboard to memory stream
suppose i have copied an image to clipboard and then pasted it onto a picturebox. using: IDataObject iDataObj=Clipboard.GetDataObject(); //determine the format of data if (iDataObj.GetDataPresent(DataFormats.Bitmap)) { pictureBox1.Image=(Image)iDataObj.GetData(DataFormats.Bitmap); } in order to save this image to database. i would then have to convert the contnts of the clipboard to a memory stream object and then serialize to byte[] ...Show All
Visual C# How to know the type
Hi, I have a Hashtable (classLinks). The value can be of two types - either a struct type (HashData) or an ArrayList. The key to the Hashtable is of type string (name). Iam doing the following but it is not working. Type t = classLinks[name].GetType(); if(typeof(t) == HashData) MessageBox.Show("HashData"); else if(typeof(t) == ArrayList) MessageBox.Show("ArrayList") ...Show All
Windows Forms Unable to activate application.
Does anyone know what this error means. It occurs if I try to uninstall tha application or update it. PLATFORM VERSION INFO Windows : 5.2.3790.0 (Win32NT) Common Language Runtime : 2.0.50215.44 System.Deployment.dll : 2.0.50215.44 (beta2.050215-4400) mscorwks.dll : 2.0.50215.44 (beta2.050215-4400) dfdll.dll : 8.0.50215.44 (beta2.050215-4400) &n ...Show All
Visual Studio Express Editions Syntax Error, Missing operand after '=' operator
hi, i have this code to fill a data adapter in c#.net: this.freedomScooterServiceBindingSource.Filter = "CustomerID = " + comboBoxCustomer.SelectedValue; It worked fine during running of the application, but when i exit the application, it threw error " Syntax Error, Missing operand after '=' operator " on this line of code i checked it against some sample code, ther is no syntax error, but why is this happening p ...Show All
Visual Studio Express Editions Visual Web developer 2005 and SQL server
Hi to everyone, somebody can tell me how to validate a login with an aspx page and sql server with visual web developer 2005, it's my first time using web developer so i don't know how to do that!! Any help would be appreciated That is a conflict between the collation on you server and the scripts that you are trying to load, It has been a while since I played with collation problems. I would go to the SQL Server forums and ask the guys ...Show All
Visual Studio Document Explorer crashes
Thought I'd start a new thread, since I'm using Visual C# Express, rather than full VS2005. Windows XP Pro SP2, Visual Studio 2003 Pro, SQL Server 2000 Developer Edition, Visual C# Express, Visual Web Developer Express, SQL Express 2005, MSDE. I also have Virtual Server 2005 SP1 beta installed. Problem just started this weekend. Whenever I click on any topic in the Index, Document Explorer crashes. I've tried Repair on Visual C# Express, Visual ...Show All
Windows Forms Microsoft Word 2002 Microsoft Visual Basic issue....
Someone please HELP! Thanks in advance....here's my issue... I received some Word files from another user, and everytime I go to open them up, a Microsoft Visual Basic dialog box opens up with the following message: "An error occurred while  ...Show All
