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

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

DJW1005

Member List

GlennZarb
mabrouk
gmaenrile
Tryston02
James Bender
Kurt Jaegers
Robert Gregory Garfinkle
yjacket2006
Mateusz Rajca
carp
Stanley Yuan
Tb2006
Jassim Rahma
Ultrawhack
krick
BobishKindaGuy
manishjain9
Mark Piontek
Bigmo
Yustme
Only Title

DJW1005's Q&A profile

  • Windows Forms DataGridView: why not remove new row when saving?

    I have a DataGridView bound to a BindingSource which in turn is bound to a collection of objects. In the BindingSource's AddingNew event, I will create a blank object, like this:     private void myBindingSource_AddingNew(object sender,         AddingNewEventArgs e)     {         MyClass obj = new MyClass();         e.NewObject = obj;     } The problem is after I finish editing the current row, and press Tab key, it will go to the next row and a blank object will be inserted in the collection. Then when I press save button, the blank object is invalid and validation will fail. Or I have to point to a ...Show All

  • Visual Studio Express Editions Guessing somthing has changed. Array Issue

    here is my code, a simple declaration of a array in VC++ exp. I'm watching the 3dbuzz video tutorials on C++ to try and pick it up, yet though their version of Visual C++ allows it, mine gives me this error: error C2440: 'initializing' : cannot convert from 'int' to 'int [3]' Code: #include <iostream> void main() { int myarray[3] = (0); } I just want to create an array and assign all values of said array to 0. What am I doing wrong here Thank you for your time. Not quite, do this: int myarray[3] = {}; All 3 forms are possible and the result is the same, an array with all elements initialized to 0. int myarray[3] = {0, 0, 0}; // this is obviously correct int myarray[3] = {0}; // t ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. 2 Questions for Beta 2: Flipping and Initializing

    Hello! So, yesterday I've finally compiled my game under new Beta :) And an hour ago I've even launched it. Now I got 2 questions: 1. Help says: "The Initialize method is where you can initialize any assets that do not require a GraphicsDevice to be initialized." Well, when I work with my program GraphicsDevice seems to be well initialized in Initialize (more exactly after calling of base method). Is it just a side effect and I should not rely on it or it is an error in documentation 2. I use SpriteEffects to flip my batches. When I first run my game under Beta 2 all sprites are not flipped. I've look through documentation but got no clue - XNA seems to be ignoring SpriteEffects. What's wrong Thanks! Stas ...Show All

  • Smart Device Development generate a beep in CF 2.0 VS2005 C#

    how can I generate a beep in CF 2.0 using C# Thanks when i call the function PlaySound(string strFileName) which parameter should i pass in there do i need a file to play sounds I just wanna use the system sounds lib on my ppc. ...Show All

  • Visual Basic Version control

    Hi, when I build and publish a VB.net 2005 program, the version number is incremented automatically - is this held in a variable anywhere that I can use to display within my application Try this: Dim theFileVersion As FileVersionInfo theFileVersion = FileVersionInfo.GetVersionInfo(filepathandname) ...Show All

  • Visual C# local or remote path

    Hi, how can I determine (inC#) if a path refers to a folder/file on the local machine or on another machine in the network Thanks for your help, Ralph Hi, Yes, its possible. I havnt gave you that info because its a bit lengthy process. So i thought if not required then why one would like to go for unneccessary long process. Any way, for your solution, please use the following code. I have made a sample for you but as per your requirement, you change the methods, return types and the information how its being filled in these methods. For this, you will need to use Management apis (WMI) to get the mapped drives. So add System.Management.dll as reference in your project using "A ...Show All

  • Visual C# where can i get sample software made c++ or C#?

    where can i get sample software made c++ or C# 101 C# samples can be downloaded from here: http://msdn.microsoft.com/vstudio/downloads/101samples/default.aspx Moving thread to C# forum ...Show All

  • .NET Development Converting an XSD to .NET Classes

    I tried to export a Data Model using ERWIN into a XSD File. Now I am trying to convert the XSD file into C# Classes using XSD.exe from VS2005. It failed giving me this message: Schema validation warning: Invalid 'name' attribute value '10XXR_identifier': 'The '1' character, hexadecimal value 0x31, at posit ion 0 within the name, cannot be included in a name.'. Line 210, position 2. Schema validation warning: Invalid 'name' attribute value '10XXR_status_identifier': 'The '1' character, hexadecimal value 0x31, a t position 0 within the name, cannot be included in a name.'. Line 245, position 2. Schema validation warning: Invalid 'name' attribute value '10XXR_status_identifier': 'The '1' character, hexadecimal value 0x31, a t position 0 w ...Show All

  • Windows Forms Combo Box

    When creating a Combo Box, Can I populate the drop down options from an XML file Hi, In theory can load it from any kind of source but not via the designer. These kind of things need to be done via code. Here is an example: http://www.functionx.com/vcsharp/xml/comboboxitems.htm Greetz, Geert Geert Verhoeven Consultant @ Ausy Belgium My Personal Blog ...Show All

  • Visual C# Using protectsection on a windowsservice during installutil.exe not working

    Thanks for reading... Has anyone protected an app.config section during a service installation I put some code to protect my connectionstrings inside my projectinstaller.cs and it is not executing. I checked my \bin\debug\*.config files and cleartext is still there after running installutil. What am I doing wrong using System; using System.Collections; using System.Configuration; using System.ComponentModel; using System.Configuration.Install; namespace MyService { /// <summary> /// Summary description for ProjectInstaller. /// </summary> [ RunInstaller ( true )] public class ProjectInstaller : System.Configuration.Install. Installer { private Syste ...Show All

  • Visual Studio 2008 (Pre-release) Setting the focus to an editable combo-box with code

    Hello everybody, In a WPF application, I have a dialog-box Window on which there is an editable ComboBox inside a TabItem (first displayed tab). I'm trying to set the focus on this control when the window is first displayed. To do this, I called the Focus method on the combo-box edit, on the window constructor, just after the call to the InitializeComponent method call. The focus is changed by the call but is not really on the combo-box edit: - The combo-box is displayed with a blue border that indicates the focus. - The caret is not displayed in the edit part of the combo-box. - If I press the Alt key 2 times (one for the menu and one to exit the menu), a dashed box is displayed in the edit part of the combo-box. - If I press the Tab ...Show All

  • Smart Device Development Read simple HTTP page

    Hi guys, Having issues making a connection to the outside world, and also reading the data sent back. I simply connect like so: DWORD dwContext = 1; hWaitForHandleCreation = CreateEvent(NULL, TRUE, TRUE, NULL); hWaitForCompletedRequest = CreateEvent(NULL, TRUE, TRUE, NULL); ResetEvent(hWaitForHandleCreation); ResetEvent(hWaitForCompletedRequest); // Open the internet connection and send the URL http = InternetOpen(L"CeHttp",INTERNET_OPEN_TYPE_PRECONFIG,NULL,NULL,INTERNET_FLAG_ASYNC); InternetSetStatusCallback(http,(INTERNET_STATUS_CALLBACK)InternetCallback); httpRequest = InternetOpenUrl(http,CA2W(url),NULL,0,INTERNET_FLAG_RELOAD,dwContext); // Wait until handle is created WaitForSingleObject(hWaitForHandleCreation,5000); httpReq ...Show All

  • Visual Studio Tools for Office Protected sheet gives exception with Databound Listobject

    Hi there, hope someone can help. I have a Workbook that needs protected so the user cannot edit etc. However, I have a ListObject that is bound to an object array as so Customers customers = new Customer [3]; customers[0] = new Customer ( "Mr A" , "A Street" , "111" ); customers[1] = new Customer ( "Ms B" , "B Street" , "222" ); customers[2] = new Customer ( "Miss C" , "C Street" , "333" ); Globals .Sheet1.customerBindingSource.DataSource = customers; Globals .Sheet1.list1.RefreshDataRows(); However, if I save the workbook and reopen I get an exception. I presume this is because upon initialisation the array ...Show All

  • Visual FoxPro Help: Open a Table from within a Report?

    Hi, I am supporting an Accounts program that is written in Visual Foxpro. I am editing a Report using the Report Designer and the Data I wish to access is in a Table that is not open in the Data Environment, and I cannot simply Open it and Save as the Data Environment reverts when re-opened. I am aware that there is a way to Open a Table in the Header of the Report by adding a Field and using a Command in the Expression Builder as I found out about a year ago, unfortunately I cannot remember or find the Command for doing this. Can anyone put me out of my misery and give me some help on how to acheive this Many Thanks. Then you may use a expression with field: expression(<table name> ...Show All

  • Windows Live Developer Forums Blocking registration in Windows Live for specific domains?

    Is there a way to block Windows Live from accepting registrations for specific domains that we own We have having a constant problem with people registering non-existant emails under own domains and then trying to trick others into thinking that they are affiliated with us. Thank you for your response, We need a solution to stop people registering with Windows Live using our domains, or a method to allow us to authenticate requests to register using our domains. This is a serious security issue as it allows anyone to masquerade as if they were part of our team. ...Show All

©2008 Software Development Network