I am attempting to load some controls at runtime based on information from an XML file. However, I can't get the System.Type object created properly. Documentation alludes to the idea that the System.Type object can only represent simple/base data types. Does anyone out there know if this is correct or not? Thanks Dan Broomall
Dan Broomall
Posts
-
System.Type Object -
InputPanel BluesI am writing a WindowsCE/Pocket PC application and need to enable/disable the InputPanel for text fields during GotFocus/LostFocus. Obviously, I can't just drop an InputPanel object on the form if this app is to be used for Windows CE as well. So, to enable/disable the InputPanle object, I wrote the following code: private sub setSIPDisplay() { if ( ipInput != null ) ipInput.Enabled = !ipInput.Enabled; } Now, it works fine until the user closes the form while the InputPanel is still enabled. Then I get an error. I placed the "dangerous code" in a try-catch block (on the assignment statement above) and I get the ever helpful and descriptive exception of "Exception". I am sure it has to do with the InputPanel being orphaned somehow, but I haven't figured out why. Any thoughts on how I can a) fix this error or b) get a better exception description so I can learn more. Thanks Dan Broomall
-
FindFirstFlashCard/FindNextFlashCardTHANK YOU, THANK YOU, THANK YOU! I couldn't understand why there wasn't a way implemented in managed code to find them. Thanks again Dan
-
FindFirstFlashCard/FindNextFlashCardI am attempting to access these functions through a .NET wrapper. I am using P/Invoke, but I am having very little success. Does anyone out there have an example of how to do this? When I can get it compiled and the call made, I get a NotSupportedException returned with very little explanation. Other times, I can't get it to compile because I have been unable to fill the Long variable (acting as a LPWIN32_FIND_DATA object) I am passing to the function call properly prior to use. Any thoughts on this? Thanks Dan
-
.NET Framework 1.1I have it on my machine. Did you search for dotnetfx.exe? If you still need it, e-mail me and I will zip it up for you.
-
.NET Framework 1.1I believe it is also freely downloadable from msdn.microsoft.com.
-
How do I change the icon on the dialog?Okay. I just ran a test of this and I have found two specific ways of doing this (although I am sure there are more out there). I created a project and added two different looking icons. The first I went into the form's properties and changed the icon there. The mis-leading part is that even though your icons are loaded as "part" of your project/solution, you will still have to reference them by path and filename. So, I set one of them at design time to make sure that worked. It did. Once this was successful, I went into the Form1_Load procedure and created an object of type System.Drawing.Icon. This has 6 different constructors, one of which accepts a path/filename. I created that and passed it "..\Icon2.ico" as the path/filename (.. because the root for execution is bin and I had the file in the main project directory). I then simply set the Me.Icon property to the Icon object I had just created. All tests were successful. Does this make sense?
-
How do I change the icon on the dialog?Let me make sure I understand the question before I say something stupid. You have created a custom dialog and you want to change the icon for that dialog. Correct? If so, then you should be able to simply change the Icon property of the dialog. It should simply be a matter of mapping to the Icon file that you would like to use. For simplicity, you could add the Icon to your project, then you won't have to worry about validating whether the file exists or not. It will be a part of your solution. Is this what you meant? Dan
-
drop-down text fieldI am looking for a web-like drop-down text field for a Compact Framework application. It would need to drop-down displaying past entries and allow new text entries as well. Much like you get with most of the Search fields on the web. Any thoughts or ideas? Thanks Dan
-
Fortran from an MFC ApplicationI am attempting to reference some legacy Fortran code from an MFC application. I get a flood of library and include file redefinition errors when I compile the code. Is this a compatibility issue between MFC and Fortran? I can use the same code in a generic C++ application and there is no problem. Any information would be helpful. Thanks in advance! Dan Broomall GIS Programmer/Analyst Forest Technology Group 125 Crosscreek Drive Summerville, SC 29485 (843) 832-4169 - Phone (843) 873-6618 - Fax www.ftgrp.com mailto: dan.broomall@ftgrp.com The bearing of a child takes nine months, no matter how many women are assigned. - Frederick P. Brooks, Jr, The Mythical Man-Month
-
Changing Static Text FontI am a little embarrased having to ask about this, but I have a need to change the font size/style of a static text field and I can't remember how to do it. My old code library is at my last job and I don't have access to it anymore. Is there anyone out there with a lead on where I might go to quickly solve this problem? Thanks for any help you can give! Dan Broomall GIS Programmer/Analyst Only two things are infinite, the universe and human stupidity, and I'm not sure about the former. - Albert Einstein