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

Software Development Network >> vincent.wang's Q&A profile

vincent.wang

Member List

ahaun
sunils
Rahul Saxena
AndreasHa
DLdfrd
OmarShahine
_John Reynolds_
DavidSmith
PatKat
Ghassan Tadros
kemal
Jeff Reed - MSFT
Damodarnet
Chintan Soni
CEisen
VishalKulkarni
Ravi K. Kalyan
codrakon
pn123
Julian Heal
Only Title

vincent.wang's Q&A profile

  • .NET Development Xml Deserializing order

    Alright, i got a serializable class with a default constructor. now when i serialize the class, i want him to do something with the just deserialized information, for example: public ref class Test { private:    String^ TestName public:    [XmlElement("Name")]    String^ Name;    Test() { TestName= Name; } }; this class makes absolutely no sense, but i did it for example. Now, when i deserialize this class, i get a error. sounds like he cant set TestName, because Name doesnt have a value. So my question of today. How can you let the class first put data in the Name string, and after ...Show All

  • Visual C# ClickOnce

    For my application I use an access database and ClickOnce for installation. When I run the application after installing everything works just fine. however, if I change something and run setup to update to the latest build the changes to the access file are gone. I figured this was because ClickOnce will install updates to new directories so I decided to move the access database to an outside directory. I figured ClickOnce would not be able to touch a directory it was not installing to. well, I updated and again the access database gets wiped. Evedentally MS has made ClickOnce very smart. I think this is great since it helps to insure depend ...Show All

  • Visual C++ Detecting compile in Studio 2005 vs. Studio 2003 or 6.0

     I share common source code with several other projects that compile in Studio 2003, Studio 6.0, Borland, or (gasp) an embedded Green Hills compiler. Is there a #define I can look for so that I can fix all the deprecated CRT functions when I use the code in Studio 2005 (and so I can leave the old unchanged version in place for all the other folks) Something like #ifdef STUDIO_2005     strcpy_s(DestString, sizeof(DestString), SourceString);     errno_t err = fopen_s(&fp, Filename, "r"); #else // for older compilers     strcpy_s(DestString, sizeof(DestString), SourceString);   &n ...Show All

  • Visual Studio Express Editions Choose Toolbox items, adding to toolbox, which dll?

    This must be a simple question: I have created a classlibrary with some components. Now when I select 'Tools, Choose Toolbox items..' and select 'Browse' to find my library, should I use the dll in the 'bin' folder or the one in the 'obj' folder Also, I assume, I should use the 'Debug' version. Right Yep, select the one located in the Bin folder. If you're component is compiled as Debug, choose the Debug version, otherwise, choose the Retail version. ...Show All

  • Visual Basic Visual Basic Visual Studio 2005 Debug.Write doesn't work

    I recently purchased Visual Studio 2005, and am trying to learn Visual Basic .net via an on-line class. Most of the less on s are very simple short programs to write messages to the Debug Output Window. For example: Public Class Form1 Private Sub Form1_MouseMove( ByVal sender As Object , ByVal e _ As System.Windows.Forms.MouseEventArgs) Debug.WriteLine(e.X & "," & e.Y & " " ) End Sub End Class However, when I run it in Debug/Start Debugging, I see nothing at all appear in the Debug Output window. I asked the instructor about it, and he has no clue, but says the c ...Show All

  • Windows Forms How to get modified rows from a datagrid , when the changes are made on the editable datagrid itself

    I have a datagrid bound to a datatable , which has customized table style. I display the editable datagrid. I modify some rows ( say row 1, 5 and 6 ) on the datagrid from the interface.  Now I would like to get this set of modified rows in the program. Somehow followoing methods are  not working for me    Method : 1 (objDRow.RowState&nbs ...Show All

  • Software Development for Windows Vista Smart tags lost functionality in Beta2

    I'm not sure if WWF has a spot on the MSDN Feedback site or not, so I'm not sure where to report bugs. In Beta 1.2 when you dropped a code shape on the designer the smarttag would light up on the code shape indicating that you needed to set the code handler. In that Beta when you selected the smarttag and clicked on the message it would open the property window and place focus on the property that needed to be set. In Beta 2 I notice that clicking on the smart tag message seems to have no affect at all. Also, the little red icon that previously was shown in the property window to indicate which properties have issues is not displaying ...Show All

  • .NET Development Convert Web services to COM+

    Hi Guys,  I have an exisiting web services, now i need to convert it into COM+, meaning this COM+ will expose the webservices. How to do that  Is there any work around for this Does anyone have the detailed steps to achieve this. Thank You regards... Please consider using the APIs in the System.EnterpriseServices namespace:     http://msdn.microsoft.com/library/default.asp url=/library/en-us/cpguide/html/cpconwritingservicedcomponents.asp Daniel Roth ...Show All

  • Visual Studio Express Editions Hi, Im new here. Any one know where i can find resources for learning to develop casino games like slot machines...

    Hi. Anyone knows where i can find resources for learning to develop casino games, especially slot and fruit machines. like how to make a 3 reel on payline slot machine and animate the wheels. And how to make a algorithm to calculate win percent and the wheel stops like in realworld slots. im a slot machine fan and would love to develop soem. have many ideas i want to come real :) Thanks You're talking about something that's pretty basic, from a gaming point of view. Depending on what language you are using, I would tend in C# or VB.NET to just write that using windows forms and not worry about DirectX at all. ...Show All

  • Visual Studio Team System Scenario level of detail

    Heya, we are trying to use the MSF Agile process but are quite new to it. I'm wondering about the level of detail for the scenarios. As I understand it, a scenario should describe the exact way a user access a particular feature of the system. In our case this would spawn a zillion scenarios, which would be difficult to manage. Is there a recommended level of detail for scenarios I'm in a small project and we don't have the resources (time and staff) to do all of these scenarios. I'd love to see some more examples on scenarios too. Cheers, Chris I would divide entire sysem in major/minor business fu ...Show All

  • Architecture Advantages of OOP ?

    Hello, Im a fun of OOP designs. I design my bussiness classes when I start a new project. Then maybe I will write mapper classes for bussiness classes to map DB tables or using an O/RM tool or an ODBMS . Think that this project is big one and it has long deadline. You will develop it 2 or 3 years. Requirements will be changed. To develop this project with OOP designs and n-Tier application design is good idea. But I am asking myself this question "Why am I choosing this long way ". I think the advantages of OOP are re-usable and flexible (when there is a new requirement). OOP makes less code behind user-interface. But I dont un ...Show All

  • Windows Forms Bindable MaskedTextBox DataGridView Column

    Does anyone have code/usage for a bindable masked datagrid column (preferably visually designable) I have phone numbers stored as char(10)s and I'd like to show and edit them as formatted cells in a bound datagid. Sorry if this is asked a lot, the forums search option refuses to work for me. It seems common enough... odd that it's not a default option. VStudio 2005 beta 2 Thanks in advance, Luke Or if you havent installed those just go to: http://www.windowsforms.net/default.aspx tabindex=4&tabid=49 and download the datagrid examples. ...Show All

  • Windows Forms validate DataGrid bound to Array

    Good afternoon, I have a DataGrid bound to an ArrayList.  The ArrayList contains "segment" objects. Among other properties each segment object has a "value" and a "length".  The following must be true: segment.value.Length = segment.length In other words, if segment.lenth = 3 then segment.value = 245 would be OK but segment.value = 2456 or segment.value =&n ...Show All

  • .NET Development AccessViolationException when network adapter is disabled

    I have similar problem as described in http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=168193&SiteID=1 I have Desktop client that consumes MyWebService. If i disable network adapter while SOAP HTTP Rrequest sent by MyWebService.MyMethodAsync() is executing i get AccessViolationException Blaming NOD32 (imon.dll). Is this NOD32 or .Net Framework 2.0 bug, is there workaround and will it be solved and when Tnx! Several people have run into this problem. Here is a good post that describes the problem. http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=309141&SiteID=1&mode=1 ...Show All

  • Windows Forms updating a label based on valuemember of combobox

    Hi I am connecting to a sql database. In the table I am using I have 2 columns, scannerid and scannername. I have bound the scannername column to a combobox and set the displaymember to be scannername. I have set the valuemember to be scannerID. I am trying to get my app to update the text of a label with the relevant scannerID. (see code sample below) When i first fill the dataset (by pressing a button) the first name is displayed in the combobox and the correct id is displayed in lblScannerId.text, however as soon as I select another name from the combobox, all that is displayed in lblScannerId.text is "SCANNERID" (which i ...Show All

©2008 Software Development Network