Software Development Network Logo
  • Visual C#
  • .NET Development
  • Game Technologies
  • Microsoft ISV
  • Visual C++
  • Visual Studio
  • Windows Forms
  • VS Team System
  • Visual Basic
  • Smart Devicet
  • Audio and Video
  • Visual FoxPro
  • SharePoint Products
  • Windows Vista
  • SQL Server

Software Development Network >> Ethan Hunt's Q&A profile

Ethan Hunt

Member List

dto
compucv621
Tricia J
Prabu.
smc750
Mark Visneskie
Jason D. Camp
thelonesoldier
Giber
AndyW027
shahrul
game-maniac
BIG037
MarcD99
zhihao
dni
Sarah21
Sweeps78
Eswans2000
RizwanSharp
Only Title

Ethan Hunt's Q&A profile

  • Smart Device Development Problem related saving the image to a file at runtime

    hi all, I want to save the image at runtime. If user changes the current image, then it should prompt for replace and if user says yes, then it should replace the existing image file.or open the savefiledialog to save the image if user refuses to replace. I tried alot but didnt got any solution. DialogResult Result = MessageBox.Show("Do you want to save the changes", "Save", MessageBoxButtons.YesNo,MessageBoxIcon.None,MessageBoxDefaultButton.Button1); if(Result == DialogResult.Yes) if (File.Exists(FormClassReference.DeviceImagesForm.ImageCollection[ImageIndexForPreview].ToString())) { StreamWriter(FormClassReference.DeviceImagesForm.customSnapList.ItemsCollection[ImageInd ...Show All

  • SQL Server full text special characters

    I am trying to modify my noise word list and found that there are special characters that are ignored no matter what... I need to be able to search on these characters (well at least some of them) so I need to some up with a way to get them into the catalog. I am running SQL 2000 so using the thesaurus is out (feature not available) and microsoft does not recomment using the thesaurus for special charaters anyways. SO what I was thinking of was to when I build the data for the catalog, I use replace the special characters with equivalent words. Does this sound like it would work Then the procedure that does the searching would also have to look for the special characters and replace them as well.... Does anyone have a better ...Show All

  • Smart Device Development Running an .exe created in vb.net 2003

    I have the windows mobile 5.0 msfp emulator and I would like to know how to run a file myfile.exe in the emulator.. the file I created in vb.net 2003... the emulator is connected properly but every time I tried to run the file it tells me TypeLoad Exception could not load type system.windows.form from assembly system.windows.forms, version=1.0.5000.0 .. What else do I need... thanx :) An .NET CF 1.0 application sould run on the emulator. Most likely your application is not a .NET CF 1.0 application. This exception usually occurs when you try to run a desktop application on your device. Make sure you selected the 'Smart Device Application' template when creating the project in VB.NET 2003. ...Show All

  • .NET Development How to create an object relying on a Type structure?

    I am new to .NET, and many basics of it have not been grasped yet. Can you help me about this: //-------------------------------------- class A{}; A^ obj_sample = gcnew A();  // I am using C++/CLI //If I can get obj_sample=>GetType() as a Type structure, how can I use it to create another A Class instance on the condition that I am unaware of the Declarator of Class A //Though, I use Object^ myobject = Activator::CreateInstance(obj_sample->GetType()); //the myobject is Still a Object type one, but I need a A type one, otherwise the members defined in A class can not be accessed.(Compiler can not get through). // I know A^ myobject = (A)Activator::CreateInstance(obj_sample->GetType()); //should work, ...Show All

  • Visual Studio Express Editions Add numbers

    Hello all, I need my program to add nine numbers together and get the some. I am using this code: Private Sub Button1_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click TextBox2.Text = Txt1.Text + txt2.Text + txt3.Text + txt4.Text + txt5.Text + txt6.Text + txt7.Text + txt8.Text + txt9.Text TextBox2.Text = TextBox2.Text / 9 End Sub It is not doing what i need it to. Without deviding, lets say all of the numbers were 100, it would write 100 tons of times. How can i fix this Both the input and output of a textbox must be a string, not a number. If you need to process a numeric input mathematically, then it must first be converted into a number, and the ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. How to create a level editor

    I was wondering if anyone out there has written a level editor for their XNA game If so, how did you write it and did you use XNA to write it I am mostly interested in 3D games. I am trying to decide whether I should create the level in a modeling program and inport that for the enviroment, but this seems like it would be far to resource consuming. Any help would be greatly appreciated. :) Thanks. One nice thing about creating a level editor in XNA for your own game is that you can re-use some parts of your engine. You can tailor the editor with commands/behavior specific to your own game. For example, if you want to keep track of where the walls are in your game. When user adds/removes/modifie ...Show All

  • Visual Studio Cross project code generation

    Hi, I'm very new to actually working with DSL and software factories, so the questions can seem a bit dumb. Here it goes: If I create a new DSL and an acommpanying custom tool, I can generate code by walking over the diagram. Is there a way that the generated code can be split accross existing projects in a Visual Studio 2005 solution Would referencing artefacts that belong to other projects in a diagram (e.g. a diagram in a data access layer project has a reference to a business component in another project) be a good and allowable practice That's it for now Any help or feedback is highly appreciated. Regards, W. Jansoone The things you're mentioning are possible, although not 'out of the box ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. First Community Sample

    We would like to announce our first community sample provided by Matthew Clever. Matthew demonstrates how to poll mouse input and then uses that input to make a cursor on the screen. http://www.xnaspot.com/Sample_Mouse.aspx As always we love to hear from you. Please email us Submit@XNASpot.com . Also if you have any sample code or tutorials you would like to share please send them in. Thanks That helped me out some, using that same principal, I've figured out a rather simple way of catching keyboard input. For the sake of supplying the community with information, and samples. Here is the code I have used, I hope this helps somebody //Declare the keyboard state you ...Show All

  • Windows Forms Problem displaying image with alpha

    Hi, I'm having some problems displaying an image with alpha. Here's what I have // get the image bits from an handle IntPtr imgBits = GetSurfaceBits(m_surfaceId); // create a new bitmap from these bits m_bmp = new Bitmap(512, 512, 4 * 512, PixelFormat.Format32bppPArgb, imgBits); To display it: private void panel1_Paint(object sender, PaintEventArgs e) { using (Graphics g = e.Graphics) { // clears the panel to blue g.Clear(Color.CornflowerBlue); // this doesn't do anything if (m_bmp != null) g.DrawImage(m_bmp, 0, 0, m_bmp.Width, m_bmp.Height); } } I'll just get a blue panel when doing this. The bitmap is correct because if I do: m_bmp.Save("test.png", ImageFormat.Png); the image gets saved correctly ...Show All

  • Visual Studio 2008 (Pre-release) Error message: New transaction is not allowed because there are other threads running

    I used the same code in ADO.NET vNext CTP sample "WinAppSample" in Windows Presentation Foundation. I am able to retrieve data in WPF but when it comes to save changes e.g. ObjectContext.SaveChanges() in WPF I am getting following error message "New transaction is not allowed because there are other threads running in the session." Any help Thank you in advance. Thanks Looking a little further at the exception in general, this kind of problem can occur if you have a reader open at the time when you attempt to call SaveChanges. SaveChanges will begin a new transaction (so that all of the changes made to the context commit or rollback together), and with SQLServer 2005 you cannot start a new transaction while a read ...Show All

  • SQL Server Table Partioning with Computed Column

    This full version of this reporting table will have about 12 million row for each of three years. Prior years will be in separate partitions and frozen but the current year will be reloaded each night by source_key, probably in parallel. I am trying to do this with a computed column but I can't slide the partition back into the main table due to an apparent problem with the Check constraint. I have tried everything I can think of and still can't get it to work. I hope I am missing something simple. Anyone know why this does not work or how to fix it ALTER TABLE SWITCH statement failed. Check constraints or partition function of source table 'db_template.dbo.foo_year_source_partition_test_stage' allows values that are not allowed ...Show All

  • .NET Development Connection to sqlexpress from network

    Hi Please if any one can answer.I am developing .net vb app sqlexpress database. In single user work ok.In multiuser from other computer on network I cannot get data.Any form without data workok fine . The error I am getting is as follows. Application attempted to perform operation not allowed by the security policy. request for permission of type 'System.data.sqlclientpermission,system.data, version=2.0.0.0.,culture=Normal, publickeytoken=b77a5c561934e089' Zaabdullah ...Show All

  • Visual Studio Express Editions image with grid coordinates?

    Hi, Is there any way to define an image with grid coordinates in order to use the mouse over event Ken Public Class Form1 Private Sub PictureBox1_MouseDown( ByVal sender As Object , ByVal e As System.Windows.Forms.MouseEventArgs) _ Handles PictureBox1.MouseDown Dim x As Integer = e.X ' These are relative to the picture box Dim y As Integer = e.Y End Sub End Class ...Show All

  • SQL Server How do I create an SSIS project?

    How do I create an SSIS Project in BIDS I installed BIDS, but I don't see any SSIS projects to create. When I click File - > New Project I see the following options under "Business Intelligence Projects" section. 1. Report Server Project Wizard 2. Report Server Project No where do I see anything about SSIS or integration services projects. Am I missing something Did I not download something I have Windows XP SP2 Visual Studio .Net 2005 SQL Server 2005 Express SQL Server Management Studio Express Installed Business Intelligence Development Studio My company has a SQL 2005 server that I connect to in which I want to run SSIS projects off of. I'm sure I'm just missing something small. Can someone point me to th ...Show All

  • Windows Forms IntelliSense in .net application

    i am creating a formula editor and would like to provide intellisense feature to the textbox in formula editor. does any one know how can i do that thanks Hi, I would suggest that you go and look at SharpDevelop http://www.icsharpcode.net/OpenSource/SD/ the is an open source Visual Studio clone, you can look at the source code and see how there intellisence is implemented. Mark ...Show All

©2008 Software Development Network