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

Software Development Network >> nathan_k_c's Q&A profile

nathan_k_c

Member List

nils_gate
ronnoc
TLunsf
Escimo
JanakaF
Evian_
z2bass
TLJohnson
fap99
Jon13
Shelto
gbeez
private21
jcwc888
******RisingStar
Dennis Gray
Udi2000
Giles Nutkins
RomanJB
Frederic01
Only Title

nathan_k_c's Q&A profile

  • Visual C# Perhaps I shouldn't be trying this, but...

    I have some code that is repeated throughout my application.  Part of it exists at the beginning of a function and the rest at the end of the function.  I'm getting tired of repeating myself, so I thought I'd wrap it up into a class that implements IDisposable and use the "using" statement to wrap the code of the function.  Like this... using( MyStuff stuff = new MyStuff()) {    ... } The problem with this approach is in handling exceptions.  Does anyone know of a way to detect in the Dispose method whether or not an exception was thrown   (I looked at the stack trace in the debugger and it looked ...Show All

  • Windows Forms MDI + external exe

    Hi can anybody give me the code so that i can load external exe's as MDI childs into my application. Also cn anybody give me code so that i can load exe's from .dlls as MDI childs into my application Thx Assuming your exe or dll is .NET.... ' MyAssembly exe or dll contains the form to be instantiated System.Reflection.Assembly asm = System.Reflection.Assembly.LoadFrom( "MyAssembly.exe" ) ' This create an instance of an Object Class, but it's castable to the proper  System.Windows.Form or custom Form Class. objClass = asmExternal.CreateInstance("Form Name") objClass.Parent = MainForm ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Want to learn game programming

    Hello, I am currently an intermediate visual basic .net programmer. I would like to learn how to make some games. I have also downloaded a directX SDK but I have no idea where to start. Also i seen that most games are made with C languages so i was going to learn one but not sure which to learn first(C/C++/C#) Any help and some tutorials are something to get me started would be greatly appreciated. Thanks, Korab I think since you are a vb.net programmer you could start programming games in vb.net with managed Directx. This way you get familiar with the whole 3d concept, when you know your way around you can look further. The DirectX SD ...Show All

  • Visual C# Enumerating an array of Desktop Window names

    I would like to create an array listing all open windows on the desktop.  This includes other windows that are not related to the application. For example, the list would show a list similar to when you bring up the task manager, showing items like an open Excel spreadsheet, Word Document, or other software. Then, if a particular program is running, I would want to bring that window to the front of the desktop. Can someone point me in the right direction Thanx,  Allen You'll have to call Win32 APIs directly.  Check out EnumWindows and SetForegroundWindow on MSDN.  ...Show All

  • Visual C# C# equivalent to C "union"?

    Is there a C# equivalent to the C union typedef I have a 64 byte array that can either be byte or int (USB data packet). I would like to be able to access these bytes as either type. In C I would declare: typedef union byte_array { struct { byte byte1; byte byte2; byte byte3; byte byte4;}; struct { int int1; int int2;}; };byte_array   ...and access them by: byte_array myarray; mybyte = myarray.byte1; myint = myarray.int1;   How would I accomplish this in C# It would honestly depend on a variety of other factors. If I could detect the type of the incoming data, I would create two differen ...Show All

  • .NET Development Access Permission Probelms - Mission Accomplished!

    I have two computers, a desktop and a laptop, both running win xp home. Both are wirlessly enabled and connect wirelessly to the internet through a belkin router. The desktop will happily see the laptop and share files, and everything seems to work just fine. The laptop, however, refuses to see the desktop. I have shared all folders properly, both are part of the same workgroup, and I have run the network set up wizard, and tried to connect using RUN and the IP address. Whenever I try to connect the laptop to the desktop I get the same message; \\... is not accessible. You might not have permission to use this network resource. Cont ...Show All

  • Visual Basic C# or VB ?

    other than familiar syntax is there any reason to use VB instead of C# is the difference only syntax Hi Ever since .NET arrived this question has stirred emotions between those developing in VB and those developing in C# (needlsessly so in my opinion). You often find the usual ramblings that C# is better than VB which I guess stems from when VB classic was an interpreted language against C++ which was a compiled language. Prior to the release of VS 2005 there were things that you could do in C# that you couldn't do in VB such as operator overloading, XML comments (although this can be achieved using third party ...Show All

  • Visual C# How can enable or disable mainmenu's items on MainForm from childForm ?

    When I click an item on menu on MainForm I set it's enable property is false to open a childForm. When I close childForm I want to set menuItem on MainForm is true to can choose it again but I couldn't do that. Please tell me how can I do like that Thank you very much ! What I did was to implement a write-only property on the child form to store a reference to the menu item. Then in its FormClosing event the menu item's Enabled property is set to true. Form1.cs: private void form2ToolStripMenuItem_Click(object sender, EventArgs e) { form2ToolStripMenuItem.Enabled = false; MenuItemChildForm.Form2 frm = new For ...Show All

  • .NET Development how to open ur custom file format in ur application

    hi, i am developing an application in C#.For saving the state of an application i am using a custom file format.Now suppose a user using the application want to save the state of the application he can save it as "savedstate.abcd" where .abcd is the new extension to be supported by my application.Now when he double clicks on this saved file named "savedstate.abcd" my application will open up and the objects being used in my application will be instantiated with the saved data. i have done addition in the registry so than when a user double clicks file with my extension ".abcd" the application will start.but how do i read the applica ...Show All

  • Visual C# dropdown item ID

    Hi, I am using this code to populate data into combobox but i was just thinking how can i assign an id to each item in the dropdown list like the primary id for example because i want to save both id and name of the company.. // fill the insurance company; VDBAdapter.SelectCommand = new VistaDBCommand("SELECT account_name AS insurance_account FROM accounts WHERE account_type = 'INSURANCE' ORDER BY account_name", VDBConnection); VDBDataset.Tables.Add("insurance_account"); VDBAdapter.Fill(VDBDataset, "insurance_account"); //put the data from the dataset into the combobox DataTable tblInsuranceCompany = VDBDataset.Tables["insura ...Show All

  • SQL Server Slowly Changing Dimension with 600,000 rows

    Hi, We have been using tasks generated from the SCD wizard. We have smaller dimensions (< 30,000 rows) that work well. Our Product Dimension package is giving us performance problems (taking 7 hours to do 600,000 rows when 80,000 records are updated; the rest new inserts). It is similar to the smaller dimensions. Several columns are type 1 and are doing update statements; several are type 2 doing updates and inserts. The package had a complicated view as the initial task, but we have since modified to use a SQL command with variable and now the initial read appears quick, but is chunking in 10,000 record increments and taking the 7 h ...Show All

  • Visual Studio Team System Canceling/Overriding UpdateBuildNumberDropLocation task

    Hi all, I'm trying to make a build that doesn't update the Build Number in TFS database. When I add condition to the "UpdateBuildNumberDropLocation" and set it to false TFS build still adds the build number to the database and creates the drop locations. I tried to override the "UpdateBuildNumberDropLocation" task with an empty task but it doesn't help. The problem that there are no errors when running the build without this task.... Any ideas Thanks in advance, Roman The build number is added to the database prior to the initial execution of MSBuild.exe, ...Show All

  • Visual Basic How to make shortcut of program

    Hello How can I create a shortcut of program on Desktop, Start menu, Program Menu and Start Up Menu   Thanks & Regards When you create your deployment project, you can right click on the project output and choose create shortcut. You'll need to make one for each location. Rename these appropriately. Then you'll need to make folders for each location and move the shortcuts into these folders. Search MSDN for "Deployment Projects" for more information. ...Show All

  • Software Development for Windows Vista ManualWorkflowSchedulerService and Web Service

    When I call a web service from a workflow, scheduled using the ManualWorkflowSchedulerService, it appears to go idle and does not wait for the response. Will this behaviour be addressed by the new UseActiveTimers option or is there another solution Mark Philip Just to give a bit more detail to my issue: I have built a state machine workflow which implements an ASP.NET page wizard. Between some of the pages I would like to introduce calls to an external web service. I have called the web service generated proxies from a call external method activity in the StateIntialization of a state. I have to ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Animation in directX continue

    I'm DirectX begginer, trying to animate flying bird. I'm exporting the bird object from 3d max8. I don't undestand if animation is done by DirectX (and how), or I have to do it in 3d max before export to DirectX. Normally the bird's wings will be animated in max and then you'd use that animation track in your program. The movement of the bird will be done programmatically. (This is not the only way, but it's a reasonable way to do this.) If you're not able to create an animated bird in max (and I can't tell you how), and you still want it to flap its wings, you'd have to fudge it some other way, suc ...Show All

©2008 Software Development Network