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

Software Development Network >> Roger Luo's Q&A profile

Roger Luo

Member List

iemad
Jeff B.
Old_newb
Sander de Koning
Tony Bierman
Gabe Halsmer
mcl7cdm
Captain Hook
Eli Robillard
Mackz
scorpionguy
Zeeshan Gulzar
Alexander Groß
RYoung
oky
abstar
Roger17
Fremen
_Jon_
Ryan108
Only Title

Roger Luo's Q&A profile

  • Visual Studio Team System Custom Rules Development

    Okay, okay so I know that any rules I write now will need to be re-written with the next release of Visual Studio, however I write (and maintain my own rules and now I'm stuck) .... I've been tasked to write a rule that checks for multiple return statements in methods, this is to help enforce the structured programming principle of methods having single entry/exit points that some of the junior developers consistently ignore. The problem I have is that with introspection I only get the MSIL, which is of course optimised. The optimisation process [is so good that it] actually restructures the code, eliminating all return opCodes exc ...Show All

  • .NET Development Adding a new row to an existing table

    Hi, I am attempting to to add a new row to an existing access database using parameters. Here is my code (i am a bit of a noob so if you've got any suggestions on cleaning up the code please feel free to critisise!!):         private void addData()         {             try             {                 // Build SQL command for all form input fields using parameters              &nbs ...Show All

  • Visual Basic Page Not found error when i open a web page from windows application using SHDocVw.InternetExplorerClass

    Hi, I have a windows form. In that i am opening a web page using below code. Dim o As Object = Nothing Dim ie As New SHDocVw.InternetExplorerClass Dim wb As IWebBrowserApp = CType (ie, IWebBrowserApp) wb.Visible = True wb.Navigate(url, "PDSReports", o, o, o) it opens a new page correctly with the url i specified when my OS is XP. when i use the same code in windows server 2003, i get an error saying page not found. if i copy the same url and paste it in a new browser window then it works fine. when i use above code in windows 2003 server, do i need to specify any special configuration settin ...Show All

  • Smart Device Development getting milliseconds

    hi, i'm trying to get milliseconds. but getting always zero value for milliseconds. Label2.Text = String .Format("{0:d1}.{1:d3}", ck2.Seconds, ck2.Milliseconds) where ck2 is timespan. I 've seen that CF supports this property. then how I'm using VS2003. Thank You. It all depends on how you are populating your TimeSpan structure. Keep in mind, on Windows CE.Net, DateTime.Now is limited to 1 second granularity: http://msdn.microsoft.com/library/default.asp url=/library/en-us/cpref/html/frlrfsystemdatetimeclassnowtopic.asp " .NET Compact Framework Platform ...Show All

  • .NET Development how to attach acces file to project in visualstudio 2003

    hello can anyone help me to attach acces file to project becouse now when i change location of project, my project stop working becouse it has to be in same place where it was when i was adding a connection. I want to be able to change location of application and mdb file without any problems thank a lot arek Arek, While developing applications it is always a good thing decoupling your application with other sources (data sources - in this case your data source is access mdf file). I guess your were using a new connection wizard and hardcoded your connection string into your project and so coupled ...Show All

  • SQL Server SQL Server Mobile with Visual Studio 2003

    I've recently noticed the availability of SQL Server Mobile, and would like to take advantage of some of the new features, however, I'm currently using Visual Studio 2003. The requirements state that Visual Studio 2005 is required, but I was wondering if anyone has had any success getting it to work with VS 2003 I hope that I can do this with VS 2003, but if VS 2005 will be required, I'd like to clear up a few issues before asking my workplace to fork out more money for the upgrade: What have your experiences been like in getting clients to upgrade from SQL Server CE to SQL Server Mobile I've seen some postings regarding p ...Show All

  • Visual Studio Express Editions Treeview Nodes

    Hello, I have a treeview control with a parent and 2 child nodes. When I run the application the parent node is closed. Is it possible to run the application with child nodes showing I thought there may be a property for fully expanded but can't seem to find one. Thanks Unfortunately there isn't a property that allows you to set this (IsExpanded is read-only). You instead have to call a method on the node you want expanded (in your Form.Load for example): Do the following to expand the first node of the TreeView: this .TreeView.Nodes[0].Expand();   Do the following to expand the first node and it ...Show All

  • Software Development for Windows Vista Can't copy executables ?

    I'm on 5219 (Beta2) as given out at the PDC. I'm a member of the local machine administrators group, but I can't copy executable programs to the program files directroy, or format discs All I get is access denied or permission denied. -- Dan     It's not working terribly well in 5219. When I turn it on  it only seems to show process which change state (so some CPU or memory usage change) it doesn't list everything, hence my not thinking it works .... ...Show All

  • Visual Basic QueryInterface calls

    If I write a COM component in VB.NET, is there any way to tell which interfaces I'm being queried for John ...Show All

  • Windows Forms Custom controls Docs

    Hi, Where can I find docs about creating custom controls I mean, I need the reference that says how to interact with the object inspector and the form layout. Create that arrow on the right top corner of the control, and others... This is the basic and everything is derived from this. If you need something more advanced, just ask. about the icon, the best way is to create a 16X16 bitmap and give it the full namespace name: MyNameSpace.UserControl1.BMP. add it to the project, set its properties BuildAction to Embedded resource. on the user control header: [ ToolboxItem ( true ), ToolboxBitmap (MyNameSpace.User ...Show All

  • Software Development for Windows Vista BPEL conversion

    Hi, I'm currently working on a project investigating the possibility of WF in combination with other products (mainly microsoft). An important question in this project is the relationship with BPEL and importation from other workflow (design) tools. BPEL being a good “general” format to use for import/export. In some articals I have read that Microsoft is working on a BPEL import/export tool for WF, when will this tool see daylight and when will we be able to use it. If it doesn’t come out in short time, it will mean we have to develop something for ourselves to do the import from BPEL to WF. This does make the projec ...Show All

  • Visual Studio Team System Satellite Assembly

    Hello all, I have worked on this satellite assembly thing for over a week now and i can no longer see straight... i have read artical after artical and i am just flat out missing something some where that is most likely very small.. i am trying to make a satellite assembly and from the way reflector looks i am in the correct name space and i have a BIG GREEN LIGHT and go ahead but i can not for the life of me display the text that should be for the germany language. ----------- Here is the Localize control --------------- <asp:Localize ID="Localize1" runat="server" Text="<% $ Resources:Strings, Welcome %>"></asp:Localiz ...Show All

  • Visual C++ extracting function prototypes (header info) form a DLL

    Hi, we're trying use the functions in a DLL in Matlab. Matlab requires the DLL (which we have) and a file containing the function headers (declarations, prototypes, whatever you call them). My question is since we have the DLL is it possible to extract the function headers Can this be done in Visual Studio, if so how or is ome other software required Thanks, Cliff Having only a DLL with (maybe) plain names (without name mangling), you have no chance to generate the function headers without debugging it. ...Show All

  • SQL Server Synchronizing Very Large Database from PDA to SQL Server 2005.

    What is the best way to synch with a very large database (e.g. 40,000 products in Inventory Master) in connection oriented way and also offline mode for remote synchronizing the Data from PDA to SQL Server 2005. Kindly provide us some of the best practices on this concept. Thanks SQL Server 2005 Mobile Edition is the one that suites for your scenario. Especially look out for Merge Replication and RDA.  SQL Server 2005 Mobile Edition Books Online is part of SQL Server Books Online. Need more info please feel free to contact us back.  We will be very happy to provide you more info. Thanks, Laxmi NRO MSFT, SQL Mobile ...Show All

  • Visual Basic when true isnt really true

    A feature I think would be the best way to describe this... or at least it doesnt behave how I would expect... Try the following: debug.print(true) I would expect a boolean value of -1 to be returned.... true being defined in the VB docs as being a boolean value of -1 with false being a boolean value of 0. What I actually get is a string value of "True" Ah well.... How did I discover this Well I was pre-populating a checkbox column value with [checkboxcolumnnameyadayadayada].value = True on a datagridview and I was then capturing the on change event, I was getting: Conversion from string "True" to type 'L ...Show All

©2008 Software Development Network