Software Development Network Logo
  • SQL Server
  • Visual FoxPro
  • Visual Studio
  • Visual Basic
  • Architecture
  • Windows Forms
  • Smart Device
  • VS Express Editions
  • Visual C++
  • Game Technologies
  • Visual J#
  • VS Team System
  • Microsoft ISV
  • Windows Live
  • .NET Development

Software Development Network >> Scott Gunn's Q&A profile

Scott Gunn

Member List

dario-g
Anil Kumar Dogra
Nuno_L
TheBigIrishman
Jim Beachy
Renderflash
nlecren12
jbullard
Meisash
shhh
Kyleruby1
Brian_Russell
Micky G
Greenstead
mohamad m hadi
kurra kiran
markchimes
mstrate
Regeneratez
roberwong68
Only Title

Scott Gunn's Q&A profile

  • Windows Forms Inherited form question

    I would like to create a base form with a menuStrip control that contains 2 menu items to appear on each inherited form. This is no problem! However, I need to add different menu items to the menuStrip on the various forms which inherit from the base. I have set the status attribute to protected on the base form's definition of mnuStrip. I still cannot add items to the mnuStrip on the inheriting form. Any suggestions will be appreciated. What you mean by Status Attribute. Whatever, do the following: select the menustrip in property window box change the Modifier to protected. I think this s ...Show All

  • Smart Device Development Building a cab which should install an app and install it to run at startup...

    I noticed that you can build a cab/cabs within VS 2003. Is there a way to create a shortcut within this cab that starts your app when the device starts I'd like to do this so it would build the correct cab, perhaps by script, every time I run BUILD CAB. Anyone got any ideas, or am I nuts Thanks! That is possible. You would have to edit CAB's INF file manually and build CAB by starting batch file VS creates for you. If you build CAB via VS, it would overwrite the INF and your changes will be lost. INF is described here: http://msdn.microsoft.com/library/default.asp url=/library/en-us/wcepbguide5/html/wce50conCreatinganinfFil ...Show All

  • .NET Development dll file is getting locked even after the domain in which it is loaded is unloaded

    hi, i am having a problem with dyanmic loading of assemblies.the problem is that the dll file is getting locked even after the domain in which it is loaded is unloaded.The code below shows a dll search being loaded in domain appdomain.then we get a specific type from the dll and unload the domain thereafter. Now if we want to replace the search dll  or delete it ,it is shown as being used and hence can't be deleted. But unloading a domain should have made it free.Does anyone have a solution for this behaviour .please help.code is as follows =============================== AppDomain appdomain = AppDomain.CreateDomain("loader domain"); ...Show All

  • Visual C# from ConsoleApplication to Form. Need some hints...

    I have a question regarding a WindowsApplication. I want to create a Form with one textbox for input and one label for the result. There should also be an OK button. The code is currently written as a ConsoleApplication and it works fine. Now I want to use the same code in my Form, but I'm not sure how to do that. I want to create a class, 'CheckNumber', with a single property, 'number'. This is the ConsoleApplication code: using System; namespace BirthDateAndBirthNumber {     public class CheckNumber     {          public static void Main()    ...Show All

  • Visual Basic showing a new form in vb .net

    okay, this is going to sound really stupid, but i can't figure out how to open another form in vb.net. in vb6, you could just say: Private Sub command1_Click() form2.Visible= true End Sub or: form2.Show but it isn't so easy in vb.net. i've figured out that to change most of the properties of a form in vb.net, you have to use MyBase , but that doesn't work well if you want to open a different form. please help. sonny jim haha! yes! instancing does work in 2003! \ i still like 6 better, but now that's one of the major problems that was solved! the entire concept of even having to instance a form is rea ...Show All

  • Visual C++ Registry editing

    I'm having trouble creating the code for a button to change a couple of registry keys. I've searched google for hours and hours now, but all the code I can find about registry editing doesn't work in my version (2005 beta 1). I can't even get the code from MSDN to work So my question is simple (I hope): Let's say I want that button to change the value from Username in the map HKEY_CURRENT_USER\Software\Blasoft\3dgame\ to Savarage, how would i do that Thnx! This works for me: Registry::SetValue(keyName, "Username" , "Scamp" ); Registry::SetValue(keyName, "Password" , gcnew array <Byte>{ 0x ...Show All

  • Visual Studio Tools for Office Problem with VSTO installation

    After installing vsto, i havent find office(new project wizard) when im trying to create a new project in visual studio 2005 Can u help me regarding this Did you see any failures during setup time What SKU of VS2005 did you install Can you also take a look at your setup.log file - are there any errors there Thanks. ...Show All

  • Visual Studio Elements doesn't appear to the target designer (SDK June CTP)

    Hi! I've created a simple DSL and a diagram with two compartment shapes and one GeometryShape. Everything goes fine, no errors/warnings when building the dsldefinition solution, and the target debugging solution runs fine. But when I drag elements from the toolbox to the drawing surface, I cannot see them. They appear to the dsl explorer but no to the drawing surface. Any ideas how to resolve this issue Thanks in advance.. Risto That's correct. The link paths in an EMD always end with the object-to-link segment. That's because you're telling it what link to create. If there are more than two segments in ...Show All

  • Windows Forms GridView not saving changes to Database on Update

    Hi - I have seen other posts about this, but I still can't get this to work. I have a DataGridView on a windows form and I have "Enable Adding", "Enable Editing", and "Enable Deleting" all checked. I added some code on the CellEndEdit event to try and persist the data back to the database, but it seems to just update the DataTable in the DataSet instead. Here is the code I have: private void dataGridView1_CellEndEdit( object sender, DataGridViewCellEventArgs e) { this .myBindingSource.EndEdit(); this .myTableAdapter.Update( this .myTrackerDataSet.MyDataTable); } This code wil ...Show All

  • Visual C# Keep getting exception message that Type is not marked as Serializable

    Hello, I a pretty sure that I am on the right track. I am trying to serialize a object which has a multitude of member variables. Some are collections of graphics based objects ie objects which are drawn in a view (TabPage derived). The object to the serialized also is drawn in such a view. It is like a parent object that contains other objects. I have separated code from data so that I am not trying to serialize anything like the TabPage view or Pens, Brushes.... Despite this, I am continually getting an exception when trying to serialize the object. I am being told that a view of mine OpeningsView is not marked as seriali ...Show All

  • Smart Device Development Picturebox that behaves like a button

    I would like to create a user control with a picturebox in it. The picturebox would display an image that behaves like a button when clicked. Does someone know how to do this Would appreciate if you can give me some sample code. thanks That's very simple. Inside your designer, add the picturebox onto the control, double on the picturebox, VS would generate click event handler. Write your code inside that handler and it would behave as if you clicked on a button. Sample code: // pictureBox this .pictureBox.Image = ((System.Drawing. Image )(resources.GetObject( "pictureBox.Image" ) ...Show All

  • Visual Basic Operator Overloading and Enumerations?

    Is there any chance that in future versions it will be possible to overload operators for enumerations I was very skeptical if it was really necessary to introduce this feature to VB. I almost never missed it. As someone with Pascal background I like speaking numbers, so I often use enumerations. <Flags()> _ Enum SampleEnum   Value1 = 1   Value2 = 2   Value3 = 4   Value4 = 8 End Enum   I would like to write Code in this way:    Dim e as SampleEnum    e = SampleEnum.Value1 + SampleEnum.Value4   and not:   Dim e as SampleEnum   e = CType (SampleEnum.Value1 ...Show All

  • Visual FoxPro Need help Database trigger

    Hi    I have been tasked to convert an old Clipper app to Foxpro Ver 9.0. The old software has 2 fields in all the databases one called ChangedOn and one called DeletedOn. These fields hold the date,time,computer name, and login name of the machine and user. These fields were updated anytime a record was changed or marked for deletion.   I would like to use the database triggers to update these fields because of the numerous places in the app that modify or delete records. I have created a procedure to modify this field in the record but I get an error that the cursor is read only. I am not sure what I am doing wrong. I would ...Show All

  • Smart Device Development Device Emulator V2 Crashes when date is changed

    Like the topic says, Device Emulator V2 crashes (auto shutdown) when I change the date and tap on "yes" to save. Previous beta didn't have this problem. Anybody else faced this Hello, I tried this on my m/c but couldn't repro it. Can you please share with us following details 1. What image you are using 2. On what OS version you are running emulator 3. If possible please create a crash dump and send me at mohit.gogia[AT]microsoft[DOT]com -Thanks, Mohit ...Show All

  • Visual Basic Workaround for Compiler Error That Was NOT FIXED BY THE PATCH

    For those of you unaware: There is still a seemingly random problem with the VB .Net 2005 Compiler (And yes everyone of our developer machines has the recently released patch installed). Basically a DLL project somehow gets corrupted on a specific machine, and any project that references that DLL immediately begins getting compiler errors (even on load of the .NET Project). From that point on that machine can no longer load any project that references that dll. Note: Disabling edit and continue does absolutely nothing Completely deleting the files and copy over fresh WORKING projects from another developer machine does nothing ...Show All

©2008 Software Development Network