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

Software Development Network >> Napalm-uk-RTW's Q&A profile

Napalm-uk-RTW

Member List

A. Weisberg
one_pom
AnthoDesigns
noob_vber
Liam404
Jayaram Krishnaswamy
Jeremy.Murray
theblackhat
rw-ral
cssjm
Corby111
dbcuser
celinedrules
tickling
xishan shigri
Malleswar
Kent Liu
Amanda Jamin
StealthyC
xRuntime
Only Title

Napalm-uk-RTW's Q&A profile

  • Windows Forms DrawToBitmap missing!

    Hi I'm trying to use the DrawToBitmap function of a Panel to print it but it doesn't come up in the intellisense and it doesn't compile if I type it in manually. Anyone have any idea why Thanks in advance Pom. private : System::Void printDocument_PrintPage(System::Object * sender, System::Drawing::Printing::PrintPageEventArgs * e) { Graphics * g = e->Graphics; Bitmap * bp = new Bitmap( panel1->Width, panel1->Height ); panel1->DrawToBitmap( bp, this ->ClientRectangle ); } Thats it. Pretty straight forward so far. I get the following compiler error C2039: 'DrawToBitmap' : is not a member of 'System::Windows::Forms::Panel' ...Show All

  • .NET Development trying to Use App_Data to get to XML file

    I am using the following code: DataSet mydata = new DataSet (); mydata.ReadXml( "~/App_Data/sdn.xml" ); But instead of going to the App_Data directory of my web site (hosted on IIS on my local machine for test purposes), I get the error: System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\WINDOWS\system32\~\App_Data\sdn.xml'. Is there something I am missing If I put the file into a different path and reference the path directly, the program works fine, but I need the service to look into the correct app_data directory to deploy to a remote web server. You should use the physical path while reading from a file. DataSet mydata = new DataSet ...Show All

  • Windows Forms Steam, Runtime error

    --------------------------- Microsoft Visual C++ Runtime Library --------------------------- Runtime Error! Program: C:\Program Files\Steam\steam.exe This application has requested the Runtime to terminate it in an unusual way. Please contact the application's support team for more information. --------------------------- OK --------------------------- Can anyone explain this to me and maybe give me a solution please Thanks Ken I'm sorry, but I have no idea, I'm afraid to say that only Steam will be able to help you. That error message means very little without access to the source code, and only Steam has that. ...Show All

  • SQL Server Help with SQL

    I have a table named "policy_details" having four columns called policy_details(varchar),effectdate(datetime),Historyid(int) and policy_status(varchar). I want to keep only the maximum historyid records in "policy_details" where policy_details and effectdate should be equal and policy_status should be '30240084' . I want to delete the remaining records where policy_details and effectdate should be equal and policy_status should be '30240084'. Cheers Praveen Use A CTE, it will work: WITH myCTE AS ( SELECT ROW_NUMBER () OVER ( PARTITION BY policy_details , CONVERT ( CHAR ( 10 ), effectdate , 103 ) ORDER BY historyid DESC ) as num FROM ...Show All

  • SQL Server SSIS Performance Issue

    Hello, I have been running massive ssis packages and testing the performance. This is my execution design: I have a main package that gets a list of packages to execute from a table. Then using a foreach loop in send the package to execute ( somewhere in the middle i delete the corresponding old log file for that package ), each of the packages configures themselves from the parent package variables. What i have been analysing tells me that for example a package runs in 2 minutes and then the time wasted from the end of the package to the start of the other task is in average 3 to 6 minutes... thats alot... since i run about 20x12 packages witch gives me of wasted time about 20 hours. My question is... what can be causing ...Show All

  • SQL Server stripping decimal data from an nvarchar value...

    I have a table that contains an nvarchar column of data. The data is actually a monetary value; sometimes with a decimal point sometimes without. My problem is that I need to strip the decimal portion of the string if it exists. From a select statement I can use: SUBSTRING ( DW_OBP_ORD_TMP_IC . VALUE , 1 , LEN ( VALUE )-( LEN ( VALUE )- CHARINDEX ( '.' , DW_OBP_ORD_TMP_IC . VALUE ) if a decimal point exists. But if one does not the CharIndex comes back 0 and my equation does not work correctly. I need to pull the data from the table, along with many other fields. How do I do this without using a cursor I have millions of rows so need a solution that will be quick. thanks in advance, Marilyn ...Show All

  • Visual Studio Express Editions What's the square root code in vb 2005?

    Hi Friends I am really new in visual Basic, I knew that the square root code in vb 6 was sqr but in vb 2005, it doesn't work Help, Please Thanks very much.................. There's lot's of difference. Microsoft.VisualBasic.VBMath handles old VB6 forms such as variant datatypes and err. I wouldn't use it. It's for supporting VB6 code. ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Questionable Design?

    Granted, I'm only a hobbiest, but it seems that many of the samples in this beta just have some very poor design regarding encapsulation. Is it no longer one of the pillars of good OO that an objects data is private and exposed through accessors Now that my tears have dried and my heart is no longer hurting I can give you a response since I did the coding for Microsoft for SpaceWar. 1. There was no such thing as a game component when SpaceWar was written - it was done on pre beta1 code. Hence no content pipeline, hacky model loading and no components. 2. The code was originally intended for a demo and became a beta starter kit after it was started. The idea was to give everyone at least one complete ...Show All

  • Visual Basic more questions

    When I copied that code into Visual Studios it only won't take e.KeyChar it allows e.KeyCode, but I still don't know what I have to do. You can use the ASCII code for the e.KeyChar.  For example, the code for the Enter key is Chr(13). Here is a sample of how you may add a KeyPress event to a textbox control.  After the user enters something in the first textbox and presses the Enter key, the focus will move to the second textbox.  ----------------------------------------------------------------------------------- Private Sub txtFirst_KeyPress(ByVal sender As Object, _   ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles txtFirst.KeyPress        If e.KeyChar = Chr( ...Show All

  • Gadgets How to add Vritual Earth API in the Live.com Gadget?

    Hi, Is there any way to add Vritual Earth API to Live.com Gadget It seems failure if writing "<script src="http://dev.virtualearth.net/mapcontrol/v4/mapcontrol.js"></script> " in the gadget content. Thanks Hi, The reference of VE API have been solved, but there is still a problem. Gadget seems different from the normal web page. How could I use "new VEMap('elementID')" to load a map in the Gadget Thanks, ...Show All

  • Windows Forms Stopping a form appearing on the taskbar

    Whenever I open Form1, Form2, etc - each form shows an icon in the taskbar. How can I prevent this from happenning Thanks ! Hi, You need to go to the Form in Designer view and change the value of a property called ShowInTaskBar to false. Alternatively you can change it via code by doing this.ShowInTaskBar = false; Hope that helps, Amol. ...Show All

  • SQL Server sp_MScheck_uid_owns_anything equalent in SQL Server 2005

    Hi Is there any undocumented Sp's in 2005 which we can use. Hello, This information can be easily found in the sys.all_objects view (principal_id column), and the sys.schemas view. Cheers, Rob ...Show All

  • Windows Forms highlighting

    i'm building this app, a code editor (educational purposes) and I have the GUI ready and I can save, load and do much more with it, so i'm not a total noob at C#. but i try to highlight some of the code and it works quite well. I select the code and color it. but the problem is when I try to type some more the app selects it again . so my question is: How can i make sure that the RTB deselects the selection and so that is does not select it again. here's the code: string echo = "echo"; int index = richTextBox1.Text.IndexOf(echo); if (index != -1) { richTextBox1.Select(index, echo.Length); richTextBox1.SelectionColor = Color.Blue; index = richTextBox1.Text.IndexOf(echo, index + echo. ...Show All

  • Microsoft ISV Community Center Forums adding text to cell with vba script

    I've done this before but I am completely blanking on what I am doing wrong with adding text or in this case a formula to a cell. The line I have and am getting an error on is Workbooks("DSL Annual Rollup").Worksheets("DSL Annual Rollup").Cells(i, 3)="January!D"&i&"February!D"&i&"March!D"&i&"April!D"&i&"May!D"&i&"June!D"&i&"July!D"&i&"August!D"&i&"September!D"&i&"October!D"&i&"November!D"&i&"December!D"&i but how do i put 2 items on there. I'm drawing from 12 different spreadsheets. so in this c ...Show All

  • SQL Server Writing CapturedSql to a file

    I am trying to write my captured DDL to a file but all I get in the file are funny characters like 癤湥 敲潗歲 . What am I doing wrong. Here is the code: private void ScriptComputedColumns() { Server svr = new Server ( "localhost" ); Database db = svr.Databases[ "AdventureWorks" ]; svr.ConnectionContext.SqlExecutionModes = SqlExecutionModes .CaptureSql; UrnCollection urnc = new UrnCollection (); foreach ( Table t in db.Tables) { urnc.Add(t.Urn); } foreach ( Table t in db.Tables) { for ( int i = t.Columns.Count - 1; i >= 0; i--) { Column curCol = ( Column )t.Columns ; if ((curCol.Collation != "" ) & (curCol.Computed)) { ...Show All

©2008 Software Development Network