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

Software Development Network >> jim and ebby's Q&A profile

jim and ebby

Member List

MarcGrushcow
DrRock
Koichiro
Phil Ekins
Mohan_info
rungsan
Ulrich Proeller
AleksandrKostick
ahives
Deadman
Tarek Madkour MS
j_ruez
totof42
valQC
Jan B
Brian Crawford MSFT
kit thambiratnam
Michael Chroman
DavBrook
ssingh
Only Title

jim and ebby's Q&A profile

  • .NET Development Create dynamic objects and invoking methods / properties

    Hi How would I duplicate the following code without including a project reference to Microsoft.SqlServer.Smo (this library is registered in the GAC during the install of Sql Server 2005) Microsoft.SqlServer.Management.Smo.Server server = new Microsoft.SqlServer.Management.Smo.Server(); server.SetDefaultInitFields(true); serverConnection.NonPooledConnection = true; This is all I've managed to get working so far. ObjectHandle oh = Activator.CreateInstance("Microsoft.SqlServer.Smo, Version=9.0.242.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91", "Microsoft.SqlServer.Management.Smo.Server&qu ...Show All

  • SQL Server Error on attaching a database

    When attaching a database that was detached  from another SQL Server instance(copied raw .mdf and ldf files).. I got the error message below: Error 602: Could not find row in sysindexes for database ID 25, object ID 1, index ID 1. Run DBCC CHECKTABLE on sysindexes. how can i solve this problem. i am using SQL Server 2000 Thanks and Regards   hi, Could you be  more specific. How did you detached the your database Did you do it by backup and restore or  copy the .mdf and .ldf file and attached. Michael Castillones ...Show All

  • Smart Device Development SqlCeResultSet Help

    Hey everyone, I have a VB2005 project with a SQL Mobile datasource. I'm trying to use SqlCeResultSet to return a list of records to a datagrid to solve some speed issues, but I think I have a problem with my code: Dim cnWorkOrders As SqlCeConnection = Nothing Try cnWorkOrders = New SqlCeConnection( "Data Source =" + """\Program Files\PWO\WorkOrders.sdf"";" ) cnWorkOrders.Open() Dim cmdSearchCust As SqlCeCommand = cnWorkOrders.CreateCommand cmdSearchCust.CommandText = "SELECT * FROM tblCustomers WHERE SUBSTRING(CustName, 1, 1) = 'A'" Dim rsCustome ...Show All

  • .NET Development puting a comboBox in my datagrid

    I have two tables tbl1 and tbl2. Tbl1 is the datasource of mydataGrid. Tbl1 has 4 columns (all with mapping names from Tbl1). I want to add a combo box in the fifth column that has its values from Tbl2. I m coding windows form application and not a Web application. Is that possible and how pls. Thanks Hi, I really doubt that. The Datagridview was specifically made for VS2005 and therefore it would require the .Net Framework 2.0... cheers, Paul June A. Domag ...Show All

  • Visual Studio Team System how to access the branch statement to use in fxcop?

    hi, i am writing a rule to check is declaration avoided in inside loops. For that i am checking is declaration avoided inside branching statements of MSIL. For that i need to access br.s and blt.s opcodes. I dont know how to access them... Can any one help me Thanks in advance... Hi Guns, loop detection and assignment inside loops is more complicated than just looking for branches. This usually is done with dataflow. Trying to implement this by just looking at instructions will probably be very tough. However, if you want to see all MSIL instructions in a method, use Method.Instructions. Each instruction object will hav ...Show All

  • Smart Device Development Convert from CF 2.0 to 1.0

    Hi, I would like to know if it's possible to convert an application from the CF 2.0 to 1.0, or if it's possible to compile it by changing the framework used Thanks, You can create new V1 project and add files into it. The problem here is what you won't be able to compile without major changes as V2 sources would use features not available on V1. You would have to correct that manually which is a lot of work. ...Show All

  • Smart Device Development Program won't run under vs2005 beta 2

    I have a program originaly written on vs2005 beta 1 (an opengl es game).  When I compile in using beta 2, it refuses to run on the pocketpc.  I just get the error "A critical component is either missing or cannot start becuase program memory is unavailable". The same program compiled using beta 2 works fine.  It also works if compiled in software mode. Other opengl apps however work fine using b2. Any ideas or tips Sean Sean, does the application dynamically link to msvcrt80.dll Can you run depends on it and see whether msvcrt80.dll or msvcr80.dll is in the dependency list If so, you'll n ...Show All

  • Visual C# How to serialize : MultiMap<TKey, UValue> : IDictionary<TKey, IList<UValue>>

    Hi ,I ve a class public class MultiMap<TKey, UValue> : IDictionary<TKey, IList<UValue>> but I dont khow how to serialize it Please help me Thks Read this thread and see if it helps: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=398223&SiteID=1 ...Show All

  • Visual C# overriding ToString () method for enumerations in C#

    Hallo I have to override the ToString () method of an enumeration. How is the syntax in C# to do that Can someone help me Thanks Franz Franz, Unfortunately it's not possible to override ToString() on a enumeration. Instead, you need to provide a helper method to do this: public static string ToString(MyEnum value) { return "This is my customized ToString():" + value.ToString(); } ...Show All

  • Visual Studio Express Editions New Express contest - $10,000 and all it takes to start is an idea...

    Just announced, a new contest for Visual Studio Express and SQL Server Express. Do you like to use technology to build cool and useful stuff Do you think you could do it with Visual Studio Express and/or SQL Server Express Would you like $10,000 cash Well then we have a contest for you! Learn more at www.MadeInExpressContest.com . Cool stuff. MJ Sounds cool. Is there like different divisions. For begginers, Intermediate, advanced etc.. Or wouldn't that just allow a a l33t programming to win everything Any idea on the allowed ages. Im only 14 ...Show All

  • .NET Development Performance issues with System.Collections under 2.0?

    I have an application (originally written using the 1.1 framework) which performs numerous ArrayList.Contains and Hashtable.Contains method calls using various reference types (which have NOT overriden getHashCode and Equals). When running the same code compiled against 2.0, the total speed of the application is significantly reduced. By doing a bit of performance analysis it would seem that these operations have just gotten slower. The default implementation of object.getHashCode also seems to take longer in 2.0. Has any of the underlying library code changed for version 2.0 which may explain these results Any clues as to what may have c ...Show All

  • Windows Forms load data only if needed...

    hi to everybody! i would like to have a custom datagrid, that only loads the first 10 records of a table. when the user scrolls down on the bottom of all avaliable records a function should then load the next 10 records. i need this 'cause i have a table with about 50.000 records in it, so it would be nice to only load the records the user&nb ...Show All

  • .NET Development Pass file stream between projects

    Hi, I have 2 web service projects called "CLient_Side" and "Server_side". "Client_Side" has a web reference to "Server_side" but its not the other way around (i.e Server_side will not have a reference to Client_side). I want to pass files between the 2 web services.   For moving file from Server_Side to Client_Side, I did the below: 1.  On Server_side, I read the file contents as a memory stream 2.  Attached it as a DIME attachment to Response Soap Context 3.  On Client_Side, got Server_Side.  ResponseSoapContext.Attachments and got the DIME attachment's memory stream and wrote to a file.& ...Show All

  • Windows Forms How to get the current row record from a datagrid after sorting, using C#

    How to get the current row record from a datagrid after sorting, using C#. The sample code is in VB.Net and the BindingContext in C# is a property instead of a function. Please help. Check whether you use the same form for datasource when binding the datagrid and retrieving the current row. if you use DataSource & DataMember then you need& ...Show All

  • .NET Development security options

    Hi. I just like to know what is the best way of making my application (very small, really to be used as a demo) more secure Basically the application gets some day from a stream (could be text file with some scripting code) and then displays to to the user in IE or some other method now, obviously if the user has javascript code, when the page is being loaded(html), it will obviously execute. we of course do not want this for alot of reasons. So what I did was simply to replace all the html tags with something else to prevent the script to run when the page is being loaded. This works fine. However I am wondering if there is perhaps some ot ...Show All

©2008 Software Development Network