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

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

micah1990

Member List

c_shah
GaneshSharma
vic07
Fahad349
WarrenT
David Scherf
Antropoid
TJ2007
rjShadow
Naveeeen
Ankith
ManniAT
Markus Kropik
chakravarthi
CBuilder
.NET Developer
elixic
Nick Winters
kewlbuddy
Blackuke
Only Title

micah1990's Q&A profile

  • Visual C# Formatted number incrementer????

    I want to know can i generate a counter number, in the format of 001000101 so that every time i click my button control it will increment like 0010000102 , 0010000103 and so on....any idea's on how i can get this done...... Yes, the documentation on formatting is poor. Try something like this: private void button1_Click(object sender, EventArgs e) { for(int ix = 1000101; ix < 1000111; ++ix) { String s = String.Format("{0:D9}", ix); Console.WriteLine("{0}", s); } } ...Show All

  • Visual Studio Datasource List<String> problem

    I have a custom business object that returns a List<String>. In the Report designer, it allows me to use the following property values to bind a textbox to: Fields!Chars.Value Fields!Length.Value The Length works fine and returns the correct lengths for the strings, but the Chars never returns anything. Since Chars doesn't appear to be a property of the String class, I'm wondering if that is the problem. I've tried some other combinations "Fields", "Value", but I can't get anything to work. Does anyone have any ideas I know the actual text is in the object since the length works, and I also switched to a custom class that only contained a string and returned a List<customclass> and that worked fine. S ...Show All

  • .NET Development Using VB2005 Express to add new rows to database

    Please, forgive my ignorance, but I need help with VB 2005 Express edition. I'm trying to make an employee database for work to store when someone signs in or out of the office. I have the form almost done, the signing works perfectly, but I can not figure out how to add new records to an existing database. Basically, whenever someone signs into the form, a new record should be saved onto the database with their name, time in, and date on it. I've created the database, but I'm not having much more luck here. This is my code: Public Class Form1 Private Sub Form1_Load( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase .Load Me .Employee_TableTableAdapter1.Fill(SteadlandsInfoDataS ...Show All

  • Visual C# Pointer

    as far as me know, this statement MyClass o = new MyClass(); are actually create instance of [MyClass] in memory and [ o ] are not the instance but the pointer which point to memory. am me right My problem is : Dictionary<string,MyClass> myCollection = new Dictionary<string,MyClass>(); myCollection.Add("Object01",new MyClass()); // and somewhere else MyClass obj = myCollection["Object01"]; ok, here the problem, according to theory above, [ obj ] are also the pointer which point to the momery, when me :- myCollection.Remove("Object01"); the instance are still exist, because what me have remove/kill are only the pointer which point to the "real" instance, so the [obj] are still able t ...Show All

  • Windows Forms ADO Interop problem

    I have a project that uses ADO, and which works fine in the development environment. However, when I install on an enduser workstation (same OS), I get the following error message when the app opens.: ************** Exception Text ************** System.Runtime.InteropServices.COMException (0x800A0E7A): Provider cannot be found. It may not be properly installed. at ADODB.ConnectionClass.Open(String ConnectionString, String UserID, String Password, Int32 Options) at ctlorders.Common.GetCount(String strConn, String strSQL) at ctlorders.frmProductionMain.GridView1_FocusedRowChanged(Object sender, FocusedRowChangedEventArgs e) at DevExpress.XtraGrid.Views.Base.ColumnView.RaiseFocusedRowChanged(Int32 prevFocused, Int32 focusedRowHandl ...Show All

  • Visual FoxPro programmatically finding out if dbf is part of dbc??

    I'm going through a directory that has free tables and a dbc. I can get all the dbf names and info, but I don't know how to identify if a dbf is in the dbc or is a free table. Is there a function that will give me that info or does someone have code that pulls this out of the dbf header file Thanks!!! ** Code snippet with problem in red below** ADIR(laArrayTables,".DBF","D",1) lnNumberTables = ADIR(laArrayTables, '*.DBF') && Create array FOR nCount = 1 TO lnNumberTables && Loop for number of databases lcDBC = "" lcTable = ALLTRIM(laArrayTables(nCount,1)) lcTable = SUBSTR(lcTable,1,AT('.',lcTable)-1) IF "|" + lcTable + "|" $ "|STABLES|SFIELDS|SINDEXES|" LO ...Show All

  • SQL Server Running SP with a different user

    We are using SQL2000. User insert table in one database DB1 and trigger insert the record into another database DB2. In this scenario, is it possible have a trigger in DB1 to execute a stored procedure in DB2 with a different user If this is in the trigger, is there any way I can run stored procedure with OpenRowSet and make trigger code invisible to the user who is inserting record since the password is there. Thanks, ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. text mixed with 3d

    thought id ask another question while im at it. i want to display text on the hud of my 3d engine. i did some searching and came across some of the text components out there and chose the nuclex.fonts componenet (very good imo). this works fine on its own or with other 2d objects (eg. sprites) but if i render any 3d objects, all the 3d objects have z buffer issues. i noticed this problem when i first introduced sprites into my engine and it was fixed via the spritebatch.begin methods savestatemode parameter. however, this functionality doesnt exist with the nuclex.fonts package, so my 3d objects are all screwed again. is there another option to prevent this, or can someone tell me how to manually save my renderstate and restore it after re ...Show All

  • Visual C# Hide Console Window in C# Console Application

    Hi, How can I hide the console window in my Console Application project Well I managed to hide the console in VS2005 C# Express by changing the output type under Application in the project properties to Windows Application. ...Show All

  • SQL Server Replicating Schema Changes

    Hi there, I'm using Sql 2005 merge replication and I have noticed something, I'm not sure if this is true or not:... My publication is set to replicate schema changes (replicate_ddl = 1). Now, I have noticed that schema changes are only replicated if the current snapshot is valid. Is this right If so why My next question carries on from the first. If I'm about to run a TSQL script on my publisher that will add a column or two to a published table, how do I ensure my snapshot is valid inorder for the ddl changes to be replcated Should I be using: EXEC sp_mergearticlecolumn @publication = <publicationname> , @article = <article name> , @force_invalidate_snapshot = 1 , @force_reinit_subscriptio ...Show All

  • Visual Studio 2008 (Pre-release) How can I obtain from a service implementation instance a reference to its Host ?

    I'm opening several services with a thread pool. The services are declared as InstanceContextMode.Single. I want to know from my service implementation when a service host state becomes opene d. I can not use the OperationContext.Current.Host, cause it is only relevent in a operation method call. Using the InstanceContext and giving (this) in the constructor did'nt work either, the state remained Created all the time and did'nt change to Open. You can subscribe to the host's Opened event: using System; using System.ServiceModel; using System.Collections.Generic; [ServiceContract] public interface ITest { [OperationContract] string Echo(string text); } [ServiceBehavio ...Show All

  • Visual C# [C to C#] Send Structur with byte array from C# to C

    hi, i have a structure : ------------------------------------------------------------------------------- [StructLayout(LayoutKind.Sequential)] public struct DRVBINFO { public UInt16 wCardsNumber; public UInt16 wChannelsNumber; [MarshalAs(UnmanagedType.LPArray)] public byte[] myIntArray ; } ------------------------------------------------------------------------------- i want to send this structure from a C# to a C function ------------------------------------------------------------------------------- [DllImport("LightMng.dll", SetLastError = true)] static extern uint LightMngInit([MarshalAs(UnmanagedType.Struct)]DRVBINFO DRVBinfo); -------------------------------------------------------------- ...Show All

  • SQL Server Select Into help

    I want to select from a table with the following columns ( title , firstname , surname , email, state , pcode , question1 , question1a , question1b , question3 , dob , timetocall , contactname) into another table which has a few more columns which should just have null because they don't have equivalent columns in the table i want to select from. IS this possible In the table I am selecting from the last 2 columns are timetocall which will either have (AH or BH) and contactname (which is a phone number) When timetocall is AH I want contactname to be inserted into the column HomePHone in the table I am inserting into and when it is BH I want contactname to go into the BusinessPHone field. Are these things possible in one ...Show All

  • Visual C# Exposing interface

    A related thread in another forum regarding FxCop warning led me to this question. List<> implements, among other interfaces, IList<>. Exposing List<> as IList<> nominally restrict the access to the IList<> interface, but if the user casts it into List<>, then the user has full access to the members as defined by List<>, not IList<>. Of course the premise is that the user somehow knows/assumes the underlying type is List<>. I think languages generally (or at least C++) don't detect and disallow such intentional transgression, but does C# provide a means to protect against such behavior No, you cannot "separate" the interface from the object th ...Show All

  • Visual C++ Problems with VS2005

    Following a mini-rant regarding the quality of VS2005 on the DirectX Dev list, it was suggested that discussion was continued on these forums, so I'll try and quantify my earlier rants/complaints with real problems I've encountered over the last six months. It should be noted that all these problems I've encountered are with the Professional version of Visual Studio 2005, building native C++ projects targeting x86, x64 and Xbox 360. My PC is a dual core 2Ghz AMD with 2GB of RAM and an X800 ATI video card. IDE Aside from the performance issues, which I'll get to in a minute, these are the main problems I have with the IDE in VS2005: Configuration Manager is broken. Really broken. Changing platform or solution configuration l ...Show All

©2008 Software Development Network