Answer Questions
kada ATTRIBUTES
Hi everyone, Again something make me confused little bit about C# programming. ATTRIBUTES Ok, I understood the usage of predefined attributes in C# suc that serializable, obsolote,conditionally,.. However, I did not exactly understood the usage of Custom Attributes in C# . Why do programmers use Custom Attributes What is ithe main purpose of using our own attributes The reason for asking this is that I can not find any situation that I have ...Show All
Gokhan Berberoglu IntelliSense features : C++ vs C#
There is a lot of features available in C# text editor that C++ editor doesn't provide. Just have a look in the menu Tools/Options/Text editor for C# and C++ ... Many features are not language dependant : all advanced formatting option, generate XML documentation comment for /// There's also syntax coloration for braces under cursor and maybe others. I just can't understand where is the technical reason for that. Auto implementati ...Show All
Raghukas Windows Service ?
Hello All! I have written a windows service. The problem is that when I log off my system account the service stops. I want my service to be independent from the system account. Please help me in this regards thanx Mubashir A Windows service, once started, will continue to run irrelevant of whether a user is logged in or not. That is the whole purpose of the service. However you can't simply ...Show All
GregE How to Read/Write DBF file In C# use OleDb
See the topic! Give me an example to show me how to do this ,thx! And my msn is i_will_communicate_through_this_forum@msdn.com I can't insert a Datetime Object into the DBF file,why Grap the latest OleDB Provider for FoxPro here: Microsoft OLE DB Provider for Visual FoxPro 9.0. Now you can use OleDB to connect to your database and insert the values: // TODO: Set date value. ...Show All
golu What is the use of "STTBF".
Hi, Can any one tell the use of " STTBF ". No problem, thanks you for the fast replies! Please let us know how it worked out and if you found a solution for the problem. But i'm currious, why do you need the file-format Actually, I have generated a document by Mailmerge from the template doument. The mailmerge operation can bound the data from database to the template document mergefields. When merges these data to th ...Show All
john thom Has anyone been able to make a COM DLL from VS 2005
Hello Nerds. I’m trying to make a COM DLL in VS 2005 but without much lock. I have tried doing it manually in C# setting “Make assembly COM-visible” and “Register for COM interop” and signing the assembly using a strong name key file in properties for the project, as described in the examples I found on the Net. Just for testing I made a simple peace of code: using System; using System.Collections.Ge ...Show All
Andy Evans Creating A Folder
Ok. Can someone tell me how to create a folder using code. In a button clickevent I would like to create a new folder on my desktop. Can someone tell me how private DirectoryInfo makeDirectory(string path) { DirectoryInfo myDirectory; if (!Directory.Exists(path)) { myDirectory = Directory.CreateDirectory(path); } ...Show All
InfoDOG Hexadecimal Question
The code below (in VB) writes a hexidecimal number to a registry location. Can someone please tell me the equivalent hex representation in C# I put a couple of the lines that I tried below, but that didn't quite work right. When the value in the registry is correctly set, the C# code works (registry should be all "F's" which returns "-1"). The problem is that I cannot use a string to set this registry value, if I do it will ...Show All
Margie Open Command prompt from C# program and run sqlcmd utility
Hi This is with respect to this post http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=458786&SiteID=1 My C# program creates db and other db objects. I want to run .sql files from C# program. Basically I can read the files and run the command using sqlcommand. Tjis will take a lot of time if the file is large. I have decided to run the sqlcmd utility providing the .sql file as an input file. For this I need to launch command win ...Show All
Drew Davis determine if running in IE
hello, Is there some way for a C# dll to determine if it's running in IE, and, if so, redirect the page This is using the v1.1 Framework. using System.Runtime.InteropServices; [InterfaceTypeAttribute(ComInterfaceType.InterfaceIsIDispatch)] public interface ISimpleEvents { [DispId(1)]//Each event must have a unique DispId void ButtonClicked(); } The interface has a single method/event "But ...Show All
short-stuff Custom Control Error Message Hell!
Hey howzit I am trying to implement a new user control...all that it allows is for the user to assign each control to a group. One group of OurRadioButton's consist of 2 or more radio buttons and if they have the same checkgroup then you can only check one of them in the group. BUT I keep getting this error message: (the error message appears as a message box type message not in VS debug) "Property value is not valid: Una ...Show All
Code Writer How can I make the IDE create correct code?
I implement a component, but I can't get it's paraent (a control which contain the component). So I want to get the paraent from constructor's parameter. But the IDE can't create corrent code for my new constructor. How can I make the IDE create correct code I want to let the IDE automatic create the correct code, because I want to get the paraent in Design Time mode. example: The illegal code: &nb ...Show All
Pravin Indurkar - MSFT Help me to understand better the interfaces
Hi i read a bunch of articles on articles.. i know exactly how to amke them.. But i dont understand why should i use them .. or for what are they important.. Why should someone wanna make a interface for something... Please help!!! Try this: http://msdn.microsoft.com/library/default.asp url=/library/en-us/cpgenref/html/cpconbaseclassusageguidelines.asp lets .. take an example.. if i make a server class ...Show All
fg_garda help with data set
Hi I have made a data set from a xml file with no problem. However how do you bind the dataset to a data grid Thank you DataGrid1.DataSource = yourDataSet; DataGrid1.DataMember = "yourTableName"; DataMember property can only remember one assignment, since you are assigning a value in a for loop, it is going to remember only the last table name from your data ...Show All
Game Squirrel Registry
I was wondering if its possible to benchmark the registry Like total time to read each registry hive. If its possible any hints on where I can find out more information on how to implement this Check out the System.Diagnostics namespace, e.g,. PerformanceCounter class. ...Show All
