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

Software Development Network >> Visual C#

Visual C#

New Question

Newline problem with running Cmd.exe in a process
Is there any way to implement an application that close other running application???
how can i get tablename from microsoft access database (*.mdb)
How to: create an enumeration user setting
on creating MDI forms
remove element from an array of string
constructor question (contains some managed C++ code)
SecurityIdentity.IsWellKnown(WellKnownSidType.BuiltinPerformanceMonitoringUsersSid) return false for Performance Monitoring User
How to open Excel sheet and use macros in .NET 2.0
Monitoring an object for changes

Top Answerers

John Mathews
clint 2
Stokh
Andrew A
Simpson474
Magnus Müller
Boris Mueller
Joel Hensley
Clinic332050
spanky4_3
XNGR
Only Title

Answer Questions

  • chxfryer Only support "DateTime.Now.ToLongDateString()" in file name?

    using (StreamWriter sw = new StreamWriter((@"C:\" + DateTime.Now.ToLongDateString() + ".txt"),true)) I tried to use "DateTime.Now.ToShortDateString" and "DateTime.Now.ToString()" and "DateTime.Now.ToLongTimeString()"....however, the program will encounter problems when running... It seems the format for file name only accept "DateTime.Now.ToLongDateString()", is there any way to add the current time in the file name Or maybe I can use the log file to record the applications However, I know nothing about the log file... But I do not know which should be the format for millisecond... DateTime.Now.Millisecond.ToString("HH:mm:ss: tt"); To s ...Show All

  • Jocker23 Changing the Caption/Titlebar Font

    Is there a way to use/set the font used in the titlebar of a form rather than the default one set by Windows I don't think its possible, but it is possible for a specific control (like a textbox) itll be down to changing your Windows theme im afraid. Sorry I could not have been of more assistance. If I find anything ill be sure to post You could possibly use the GetSystemParametersInfo() API function with SPI_SETNONCLIENTPARAMETERS. This is not easy to do in C# and will change the title bar font for *all* windows, not just your own. As an alternative, you can fake your own title bar on a borderless window. The ControlPaint class helps you draw all the necessary window elements. Th ...Show All

  • rebeccat Passing Command using shortcut

    I want to allow my application to capture some command that the user can pass into the application by define it in my application's shortcut properties, Shortcut Tag, Target field. Just like microsoft access shortcut, you can assign some command on the access shortcut properties. Is it possible for me to write an application that can capture the command assign in the shortcut using C# If I follow you correctly, you want the programs command-line parameters. These are passed to the application's Main() method in the args string[]. the term "command" that i am refering is like the following microsoft access example: - Right-click the Microsoft Access program icon, and then click Cr ...Show All

  • ElMagico Help with C# Screencapture --> avi

    Hello, I was exploring the possibility of creating a multi threaded screencapture program, that exports the onscreen content to an avi file in real time. I have looked around the MSDN help areas and cannot seem to find the information I need, such as how to capture the screen's image and put that into video format or capture the audio from either the stereo output, or mic. From the information I did find I am guessing that I will need to employ the threading and AVIfile classes. Any help would be great, thanks. you need to some how capture it to a video format - how is this done no idea, probably using the DirectX approach. To capture screen shots to an image file, take a look at this: http://forums.microsoft.com/MSDN/ShowPost.a ...Show All

  • lenak Declaration of Function

    Hi, I want to give you some informastion before I will continue to my question...Let's say that I have 2 Classes in my project... public class Cclass1 : System.Windows.Forms.Form{.......} public class Cclass2 : System.Windows.Forms.Form{.......} inCclass1 I want to create a function (e.g public void CallOtherFunctions() ) which includes some other functions of the same class...The others classes which I want to call are exact these : private EReturnType ClosePorts() { ..... ..... return eRetVal; } ...Now I want to call these function "CallOtherFunction" but from the other Class..."Cclass2"..How must I write the syntax for declaring "CallOtherFunction" and how can I call it form the other class. I mean I want to do sth like that ...Show All

  • Speedy2000 ErrorProvider makes default language loosing properties...

    Ok, I have a very weird problem. I have a windows forms with some basic controls in it, textboxes, buttons, labels. with only one tab (very basic). My problem is when I'm switching language, i'm loosing control properties in my default language. Here's the behavious when the errorProvider is in my form. 1- I drop a combobox in my form (in the default language), change the dropdownstyle value to dropdownlist. 2- In the initializecomponent, I can see myComboBox.dropdownstyle = dropdownlist; If i switch to another language (IE: Spanish), I can see the myComboBox.dropdownstyle = dropdownlist again in the initilizecomponent. The problem is when i'm switching back to default language, it is adding the dropdownstyle in the sp ...Show All

  • Kunal Sharma REAL C# world : open source C# projects

    I am a java guy, now I want to switch to C#. I want to compare both language. in the Java/J2EE web framework ----- Struts / Spring persistence object-relational ------ hibernate IDE ----- Eclipse third-party library ------ apache web server ----- tomcat application server ---- JBoss hot forum ---- www.javaranch.com what about REAL C# world Do we have lots of open source C# projects Thanks. Round up the usual suspects...check out SourceForge.Net  also check out the Mono project which can run  .Net on Linux, Solaris, Mac OSX and Unix. Spring about dependency injection isn't it For an open source .NET version see Spring.NET or ObjectBuilder . Spring is ...Show All

  • Lynn Trapp Convert Java To C#

    Hello Can anybody help me to convert this java code to c # private static int chooseOption(int min, int max) throws Exception { Scanner sc = new Scanner(System.in); while (true) { System.out.print("Enter a number: "); int option = sc.nextInt(); if (option < min || option > max) { System.out.println("Invalid number, you must enter a value between " + String.valueOf(min) + " and " + String.valueOf(max) + "!"); } else { return option; } } } Hi Fredrik Johnsson How R U Dear Long TimE no C ,haa haaa where were U My FrienD!! U HAVE QUESTION U Ursel ...Show All

  • Deepu_a AsyncCallBack problem

    I send an HTTP mesage (command) to a server and get a quick response, rather brief, about 200 bytes. It goes on to parsing. The latter is triggered by a signal record (last) of the response. The problem is that when my subroutine tries to process the response immediately after AsyncCallBack method call, the richTextBox where I expect the message to be is still empty and that part of routine fails. Short of introducing a timer to delay the execution of the second part, what is a competent method to deal with such situations It is not really convenient for me to set up the processing code in the parser although it would have solved the situation completely. Thanks. ...Show All

  • Nidonocu WindowsApplication1.exe has encountered a problem and needs to close...

    Hi. When I Create new C# WindowsApplivation Project in VS.net2005 and Compile it, I receive this error :   WindowsApplication1.exe has encountered a problem and needs to close….. I write no Code in this project and just after the Project Creation I used "Start without Debuging" for Compile it. What should I do Thanks. may I need to Reinstal ".NetFrameWork" or "VS.Net2005" again I'm so Confusing! what code have you put in Can you show us the code that you have coded in the application Where are you running from Within the IDE or just double clicking the file Hi and thank you for Reply.I said that when I create new WinApp and execute it I recieve  that error. I put in "no" Code. that&nbs ...Show All

  • Aerouk XML newbie

    I am trying to read all the values under Genre_Country and Genre_Funk. To loop thru each genre...and get the Title and url. Driving me nuts.... < Radio > < Genre_Country > Country </ Genre_Country > < Title > .977 The Kickin' Country Channel </ Title > < url > http://64.236.34.4:80/stream/1075 </ url > < Title > 1.FM - Country </ Title > < url > http://64.62.194.11:8020 </ url > < Title > .977 The Kickin' Country Channel </ Title > < url > http://205.188.215.230:8000 </ url > < ...Show All

  • CPedersen Issue copying to a network share

    I have a windows service that is responsable for copying files to a network drive at certain times. I use the IO.File.Copy() method to do this. everytime I run it with the network path I get this error: The network path was not found. I even tried a network path without spaces (my test share has spaces in the name) which gave the same. the share can be read and written to by everyone with full control to admins. The service runs under the system context. Any suggestions Thanks, Quilnux I think, but could be wrong, its to do with it not being able to instantiate the connection to the network drive/share folder. What happens if you create a net share by say, executing a process which creates the s ...Show All

  • Zak1968 is design, use cases,UML....etc very useful and highly used in business

    is design, use cases,UML....etc very useful and highly used in business to produce high and perfomant results or it mostly a waste of time and money. Can u please tell me how u look at that before we start coding in C# Thank you bit of both really. For large scale projects, like Windows for example, yes yes a thousand times yes. Most likely, probably - it just makes designing such software easier to maintain/manage/plan out. For smaller projects, not so much, I mean you could and probably is good to do but I know a good few companies that don't do that at all. I guess its all down to personal preference. use cases would be pretty much like testing in a sense where you have several cases of how a user would use th ...Show All

  • avinash kundal Pet Shop for C# 2005 ...

    Hi folks ... I realize this might be better in the asp.net forum, but posting a thread there seems to be a bit of a mystery. Please excuse the location. I'm wondering if there is a "Pet Shop" demo for C# and asp.net that is more recent than the 3.0 version, and works w/ Visual Studio 2005. Thanks DB   here you go... http://msdn.microsoft.com/library/default.asp url=/library/en-us/dnbda/html/bdasamppet4X.asp ...Show All

  • Idanle making .NET 2.0 tracefiles readable/parsable

    I have two questions regarding parsing and reading tracefiles: Is there a tool that can read logfiles that were generated by the .NET 2.0 tracing and presents the data in a human readable form Preferably with some searching, sorting and filtering options How can make the trace output to be written in XML format so that it is easier to parse.   ...Show All

686970717273747576777879808182838485

©2008 Software Development Network

powered by phorum