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

Software Development Network >> James Smiley's Q&A profile

James Smiley

Member List

Aldo Donetti - MSFT
Mark_van_Dark
WackyNET
RemiRenshai
Radhi
Renato Maia
Simon Tamman
Jphillips59
PamMin
_ilya_
Zeonz
DIEGOE
Jon Gonzales
tony_qy
Manlovefox
Niko Pamboukas
francis_zk
David Smitty
AlExtjAi
James Briant 2
Only Title

James Smiley's Q&A profile

  • Visual Studio Team System TokenizeCompoundWord not tokenizing as expected

    I'm running the VS2005 integrated version of FxCop but debugging by using the stand-alone IDE and I've noticed that I'm getting some funny results (visible in debug) from the RuleUtilities.TokenizeCompoundWord method when tokenizing words with underscores in them E.g. EMPTY_ARGUMENT_ERROR is tokenizing to "EMPT", "Y", "ARGUMEN", "T", "ERROR" instead of "EMPTY", "ARGUMENT", "ERROR" Also I have come across situations where a single 'word' tokenizes to nothing! E.g. variable name "x" tokenizes to "" Has anyone else come across these p ...Show All

  • Smart Device Development VS 2005 Failed To Connect To PPC2003 SE Emulator

    Installed VS 2005 from MSDN disk. Started Mobile project. Can connect to all devices, EXCEPT Pocket PC 2003 SE Emulator. Message that I get is "Connection failed. No connection could be made because the target machine actively refused it." Tried to go back to VS 2003 where this connection was working and, now, it also does not work. Most frustrating. As an aside, does merely connecting to the emulator need to be all so difficult Seems that there are many and varied problems in doing so. Had similar problems when trying to first connect using VS 2003. Hello, It appears to me that yo ...Show All

  • .NET Development about Reflection.Emit

    Hi, I want to insert new classes and attributes into an existing assembly. Reflection.Emit can be used to modify assemblies dynamically isn't. So can I use it to achieve my purpose Thank you. Yes and no. You can dynamically create new types and load them into the current appdomain. You can't change an existing assembly. In order to change the assembly you'd have to recompile the whole thing. Theoretically you could use reflection to get all the types in the assembly and then add new types and recompile but any assembly-level attributes (like signed keys and resources) would be lost. ...Show All

  • Windows Forms Forms application development with an Sql Express database

    Hello all, I've posted this to the Sql Express forum with no responses. I'm trying here too... I would like my newly converted to .NET 2.0 Windows Forms application to use an Sql Express database instead of MSDE. Previously, development was done on the default SQL Server instance using the full SQL Server 7.0. When deployed, MSDE was used with a named instance. The connection string in the application settings needed to be modified as part of the deployment. Now I've converted to .NET 2.0 and to Sql Server 2005, and/or Sql Express. What I'd really like to do now is have a project within my solution that, when built, creates the da ...Show All

  • Windows Forms Lock PC and Hide the Panel Control

    Hi, I'm starting a project of a Cyber Cafe's Manager.., I need hide the panel control for some users... somebody knows a code to do this  And I need also a code for lock all the shortcut keys.. help me guys.. thanks.. To disable the control panel in Win 2k/XP & ME User Key: [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\ Explorer] System ...Show All

  • Windows Forms Diagram Editor

    Hi! I was wondering if anyone can advice me or point me to samples that can help me to build a diagram editor. I'm thinking of something like a simplified version of Visio for my code generator. Any ideas Hmm... shouldn't you divide business components and UI pages  I would think that all your tables can be mapped to business entity& ...Show All

  • SQL Server Problem converting military time from CHAR column

    Hi all, I have a time column in CHAR(4) format. The contents are stored as 'military time': 1800 1830 2130 I tried using various functions, but was not able to convert to standard time. I need to take an existing datetime column, strip the time (00:00:00:000), convert the time column to standard and concatonate together to get the following result: 2006-05-31 06:30 PM Any help would greatly be appreciated. Thanks. - gshaf Worked! Just needed to correct the formatting. Thanks so much Elliot! - gshaf ...Show All

  • Windows Forms Help file (.CHM)

    Hi, Is it possible to link to a CHM file that is located in the same map as the solution I want to open the CHM if I press on a button. thx We suggest you to use Systems.Windows.Forms.Help Class which can be used to display the help files in your windows application. This approach will help you in deploying the application where in it gives the advantage of client machines should be removing the dependency of having Word application. The Help class exposes ShowHelp method which can be used to Displays the contents of the Help file. Help.ShowHelp( Me , <helpfile name>) Please ...Show All

  • Windows Forms Trouble accessing correct row in sorted DataGrid

    How do you access the correct row in a sorted DataGrid   I have tried: Dim bm As BindingManagerBase = Me.DataGrid1.BindingContext(Me.DataGrid1.DataSource, Me.DataGrid1.DataMember) Dim dr As DataRow = CType(bm.Current, DataRowView).Row As far as I can see, there is no usable value returned from this code like there is using CurrentRowIndex. What’s the next step please, or can anyone post ...Show All

  • Visual Studio Building target partially

    Building target "MyTarget" partially, because some output files are out of date with respect to their input files. How does MsBuild build a target partially Does that mean that it only run some of the containing tasks  I imagine that it can't figure out which tasks to run since inputs and outputs are not always defined clearly on a task. Update: After a while I figured out that is one of the dependent targets that skip building because of its inputs and output. The Target in question is build completely. Perhaps a better message would prevent a misunderstanding like mine! Hmm, I just tried that, but ...Show All

  • Windows Forms View Data Grid (for xml database)

    Since upgrading to VS 2005, when I right click on an xml database document that contains the schema, I no longer get a listing of the tables and cannot view the data contained in the tables. If I open the document created with VS2005 in VS2003, the grid populates fine. Thanks in advance for any replies. The tables are created and added to the dataset like this. DataTable dt = new DataTable ( "Table1" ); DataColumn dc0 = new DataColumn ( "Field0" , Type .GetType( "System.Int64" )); dc0.AutoIncrement = true ; dc0.AutoIncrementSeed = 0; dc0.AutoIncrementStep = 1 ...Show All

  • SQL Server Opening a hyperlink in new window

    Hi All, I have a hyperlink on my report. The target report opens in the same browser window. I want the target report to open in new instance of the browser. Any clues as to how to do this Thanks in advance Nikhil Dabke You could try a this URL for the action (remove the spaces): j a v a s c r i p t:if(window.open(yourPage.aspx','RsWindow','width=400,height=500,l­ocation=0,menubar=0,status=0,toolbar=0,scrollbars=1',true)){} ...Show All

  • Smart Device Development how to run an exe file or jpg file ?

    how can i run a program file exe .. i tried to use " shell " but it didn't work .. it is always saying that the path is wrong .. i tried "\My Documents\a.exe" and like this .. also i want to know how can i run a normal file like jpg , mpg regards .. mohammed The way I do thie is by opening them up in Internet Explorer. It's kind of cheating but it works. Just pass the full path in the argument for the URL. Like this: ProcessStartInfo psi = new ProcessStartInfo (); psi.FileName = "IExplore.exe" ; psi.Arguments = @"\somepic.jpg" ;  //Path goes here Process ...Show All

  • .NET Development Best Practice for modifying object in collection

    Hi. I am just wondering what is the proper way/correct way/best practice to modify an object located in a specific index of an array The way I have looked at it is to do this: object B index = in array, look for object B if index != -1 //we found it! someCollection[index] = objectB someCollection.Sort(); //or whatever else // do whatever end if is this a bad way if so - why how can it be improved please do tell me, I want to know!! :-) nothing at all, and wow what a speedy reply - thanks! I just wanted to make sure that I am not being an idiot and wanting to learn new and perhaps better wa ...Show All

  • Visual Studio Express Editions mySQL from C#

    HI! I wanted to connect ti mySQL nativily using the dll and .lib provided with mySQL and I wanted to know if there was a way of doing that in C# Thanks Yes it can be done, but not using the Wizards, you will have to code the datalayer yourself. Here is an example connecting through ODBC. using System.Data.Odbc; using System.Data; private void GetDataFromMySQL() { string connStr = ""; // i am not sure what the connection string for MySql would be, i think it might "Provider=MySQLProv;Data Source=mydb;User Id=UserName;Password=asdasd;" using (OdbcConnection odbcCon = new OdbcConnect ...Show All

©2008 Software Development Network