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

Software Development Network >> Visual C#

Visual C#

New Question

Automatically install and start service
How to get a page source code of URL programmatically?
ThreadPool without aviable threads???
implementing the Equals method with and w/o override
Get Current Class Name
dynamic asp button click doesn't work first time
Setting Current Time - TimeEdit Control
help me to convert vb.net property to c# syntax
StackOverflowException was unhandled.
Deploying Web Site via "Copy Web Site"

Top Answerers

Markus Schiller
_Michael_
db_guy
testorp
Stampede2
BJones82
Anton__
Michael Herman - Parallelspace
Vesigo
Jonathan van de Veen
sitemap
Only Title

Answer Questions

  • Newt.Net what files for deploying

    I've built a windows application and when I build the project there are a lot more files than I really need: myconnectiondll.dll myconnectiondll.pdb myDB.mdb myapp.application myapp.exe myapp.exe.config myapp.exe.manifest myapp.pdb myapp.vshost.application myapp.vshost.exe myapp.exe.config myapp.exe.manifest I can grab just the .dll, .mdb and the .exe and it runs just fine. Do I need any files other than those 3 when I deploy the application Yes this would be the better solution. If you create a deployment project and specify using the the output of the main project then it will figure out what files are needed and track down any dependant assemblies. You should build the file in Release mo ...Show All

  • Sorin Sandu Saving Music Files

    I have a Media Player that I made but I can't figure out the streaming involved with saving the music that is currently playing on the player. I can play music with my player but I can't save it. using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; using System.IO; namespace Media_Player { public partial class Main : Form { public Main() { InitializeComponent(); } private void openMediaToolStripMenuItem_Click( object sender, EventArgs e) { openFileDialog1.ShowDialog(); WindowsMediaPlayer.URL = openFileDialog1.FileName; } private ...Show All

  • neuhawk How to get the ASP.Net controls

    Hi All , Could any one tell me how to include the DynamicImage control in Visual Web Developer Express Edition, i searched in the controls tab ,but i didnt find You are best to probably ask this question on the ASP.NET forums over at http://forums.asp.net they would reply quicker probably and the entire site is all about ASP.NET! Be sure to specify which version of ASP.NET you are using (Express) Hello I think it is not included in the Express edition if you wana to use a dynomic image in ur page then you have to manully do that ...like generate an image in a directory and then embed as <Img src ....in ur aspx page at runtime. ...Show All

  • Amos Soma a quick question regarding viarable scope

    In the scope of a "button click" event, I declared a string variable "result". In a for loop within this event, I tried to access "result' but with a compiling error " use of unssigned local variable". My question is: Why "result" is not visible in the for loop Thanks. Codes: private void btnGo_Click( object sender, EventArgs e) { string result ; Point newPoint = new Point (1, 1); Circle newCircle = new Circle (2, 2, 0.5); Cylinder newCylinder = new Cylinder (3, 3, 0.5, 4); Shape [] newShape = new Shape [3]; newShape[0] = newPoint; newShape[1] = newCircle; newShape[2] = newCylinder; for ( int i = 0; i <= newShape.Length - ...Show All

  • babakf Command Prompt To Prompt

    Can anyone tell me how to stop command prompt from flashing on my screen on startup It has been doing this for about a month now, and I know it shouldn't be. Thanks :-) im afraid you have posted in the incorrect forums. Best place is to post in the appropriate communities for your OS: www.microsoft.com/communities most likely you installed a piece of software doing this, you may wish to check the startup items. However again, please post in the appropriate communities Thanks I'm not real computer savy, even though I have had one for 8 years. All I know is that it flashes on my screen right after Windows loads. I've never used command prompt before...it scares me :-o. ...Show All

  • daph4ntom Read a String and identify number of Different characters ??

    I have a String which user enters, I need to determine how many types of different characters are there For Example : If User Enters : Test T or t - 2 E or e - 1 S or s - 1 This string can be really long what is the best way to get this done... Can you give me a code sample how to do that..Creating a Dictionary Thanks, Harsimrat   Hi, if it was me I would do the following: 1. Create a Dictionary<char, int> 2. Initialize the dictionary with keys of a to z with values of 0 3. Loop through each character in the string, and increment the count in the dictionary i.e. char currentChar = 'x'; charCount[currentCh ...Show All

  • akdpr Regex?

    Hi, I''ve got a pretty big string, and I'm trying to get all of the occurences of text between "== " into an array, so == Orange Juice == (note the space) would cause "Orange Juice" to be put into the array. In the string, there will be lots of these, and also some with === on each side, which I don't want. Each "== Word ==" is on a new line, and I though I could use regex: string reg = @"\n== (<Address> *) ==\n" ; but this gets no matches in my string - clearly I'm doing something badly wrong - can anyone help. Just to put it into context, I want to append the text which was between the "== " and the " ==", to a URL - so ideally my solution should be compatibl ...Show All

  • shishio Please Help!!

    Hi All, I am new to C# and have been assigned to build a small application in C#. What I have to do is make a database connection and gather the list of available server-databases and then populate a checkedlist box with this list. Then I have to take a user input for a data object(which can be a stored proc or a view) and search for this user input in the list of stored procedures for the selected checkedlist box items (eg: if there is a server-db like datadev - base and the user input is sp_orders then I have to check for sp_orders in all the stored procs listed under datadev-base). when I am able to find the stored procs tht call the user input data object then I have to display them in a list box. So far I have been able to make a D ...Show All

  • d2army What do all this files do?

    I have just started to learn VS and C#. I have noticed that when compiling a C# project many different files appear in the project folder, which adds to the confusion for a newbee like me. In my project folder (named HelloNET) I have the following: App.ico, icon AssemblyInfo.cs Form1.cs Form1.resx HelloNET.csproj HelloNET.csproj.user HelloNET.sln HelloNET.suo The are also folders "bin" and "obj", "obj"-folder contains the following: HelloNET.exe HelloNET.frmMain1.resources HelloNET.pdb HelloNET.projdata HelloNET.projdata1 "temp"-folder (empty) "TempPE"-folder (empty) "bin"-folder contains a "debug"-folder that contains the following: HelloNET.exe HelloNET.pdb I ...Show All

  • deen API

    Hi, I want to know whether an API written in 'C' will work in C# Will work in c#. But, we have to use P/Invoke methods to use that API. Hi, Yes, it's called P/Invoke. Here are some tutorials and references: http://msdn.microsoft.com/library/default.asp url=/library/en-us/csref/html/vcwlkplatforminvoketutorial.asp http://www.codeproject.com/csharp/essentialpinvoke.asp Thanks Yes they most likely will (but I'm sure there are exceptions). ...Show All

  • Emadkb Process class used from Windows Service fails

    I'm having trouble with the Process class. I have a Windows Service running as SYSTEM and I want it to spawn processes on behalf of users. I get the user's password there securely and create a SecureString. I get a Win32Exception "Access Denied" on Process.Start. If I run the service under the same account as the user I want to start for, I still get the exception except it says "The handle is invalid". I've checked and checked the SecureString and I've made it read-only so I don't think that's it. I actually had gotten it to work some time ago if I impersonate the client but this isn't really practical since the job can be queued up waiting for some time. I've signed all the assemblies involved and I've given the ...Show All

  • MWatts DllImport call using a struct as param throwing exception

    Hello, I'm trying to call a C DLL, and having some issues building a struct that will pass through successfully. Here's an abbreviated version of the definitions in the C .h file: typedef struct { /* inputs */ char hist[ 4 ]; char site[ 5 ]; char behav; char grade; char age[3]; char size[3]; char ext[3]; /* display outputs */ char t[12]; char tdescr[4]; char n[12]; char ndescr[4]; char m[12]; char mdescr[4]; /* error messages */ unsigned long error; char messages[ 2000 ]; } datacard;   #define CSTAGE_API __declspec(dllimport) CSTAGE_API int CStage_calculate( datacard *dc );   On the C# side, this is what I have so far:   &nb ...Show All

  • Medes_ Creating a machine account in sub domain

    Hello, I have a probleam in creating a machine account in subdomain lets say, I have user in dept.mycompany.com and the user belongs to account operatiors group in active directory. I wanted to create a machine account using the user account in sales.dept.mycompany does anybody got idea how to do that. thanks, Thaya ...Show All

  • molemenacer save richtext in database

    i have some text in a richtext control how could i save this in a database if i pass control.text from C# to the database the richtext properties are not stored. When i try to viw the text i stored none the rich text formatting are displayed. Save the richTextBox.Rtf property to the database instead of richTextBox.Text. Of couse, when loading, use the Rtf property also. ...Show All

  • satya999 How can I load an object?

    I am trying to make a notepad type application in C# for a test project. I have the menu toolbar done, and now I need to make it so that when, for example, the 'page setup' item is clicked, the page setup control is opened up. I need this for all of the items, such as open, save as..., etc. Can anyone help me please Thanks. Vampire I've sorted it out myself. I was doing it wrong. All I needed to type in for the close method was Close(); ...Show All

858687888990919293949596979899012

©2008 Software Development Network

powered by phorum