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

Software Development Network >> Visual C#

Visual C#

New Question

Help
cross threading help
Hard to be a newbie: Type conversion problem.
Application.ProductVersion
label.text repetition
Preview problem
Why is this code giving a compile error?
count number of objects crated in runtime
Retrieve logged on user info
how to make an application that loads automatically when windows start??

Top Answerers

Santiago Caceres
yael_per
Pete Lux
Tommy Campbell - MSFT*
xuemingqiang
Ramoas
Wallace_
Bill2000
tyou_aki
Bezel
XMLProbe
Only Title

Answer Questions

  • prageeth Mdi Forms Problem

    Hi, first of all m using .net 2005 visual studio, my problem is about mdiparent and child forms Problem: I ve 2 forms name Form1 and Form2, i set Form1.isMdiContainer = true; and i added this line public Form2 TeslimKForm = new Form2 (); public int OpenControl; to Form1.Designer.cs And my Form1.cs file : public Form1() { InitializeComponent(); this .OpenControl = new int (); OpenControl = 0; } private void MainToolSt ...Show All

  • Ashirwad Cross-thread operation not valid

    public void listenerThread() { TcpListener tcpListener = new TcpListener ( IPAddress .Any,1234); tcpListener.Start(); while ( true ) { Socket handlerSocket = tcpListener.AcceptSocket(); if (handlerSocket.Connected) { lbConnections.Items.Add(handlerSocket.RemoteEndPoint.ToString() + " connected." ); lock ( this ) { alSockets.Add(handlerSocket); } ThreadStart thdstHandler = new ...Show All

  • FourT2 Empty C# application use almost 20mb memory

    I just started learning C# and decided to make a small alarm application, like an egg clock. And after a while i noticed the alarmclock used almost 20mb of memory when it was minimized to the systray. If i minimized normaly it went down to 1mb, and when it’s on normal form it uses 20mb again. I also noticed that its the exact same thing with a empty C# application. Why is that A small windows form with a button, textBox and timer should not ever ...Show All

  • Bob Heitzman Assertion Failed error from MonitorDocumentsService during project load

    When loading a solution containing several projects (converted from VS2003) I get the following error message twice: Assertion Failed: Abort=Quit, Retry=Debug, Ignore=Continue  X at MonitorDocumentsService.OnBeforeDocumentWindowShow(UInt32 docCookie, Int32 fFirstShow, IVsWindowFrame pFrame) If I try to debug it just shows disassembly code and doesn't help. If I select Ignore, I can continue and things seem ...Show All

  • B_a_s_i_c File.encrypt method

    I'm just trying to do a simple encrypt of a file.  I'm getting a System.IO.IOException thrown when the method executes.  Am I mis-interpreting this method   The documentation states that it's available in C#.  Here's a snippet of the important parts. using System; using System.IO; using System.Security.AccessControl; try { File .Encrypt( "G:\\test.tx1" );   //this is an NTFS partition } catch ( IOExceptio ...Show All

  • Suchat DataBase - Duplicate Records

    In my form, in a button_Click event, I have the Insert Query command. How do I prevent from inputing a duplicate record Can anyone help If you need more clerfication, just reply.   You could do a DELETE FROM tablename WHERE (xxxxxx) before you do your INSERT to insure that an item is not already in there.  You could do it all in one fails swoop with "DELETE.......; (<=== semicolon) INSERT........"     ...Show All

  • Mshock Please hepl me solve this problem

    When I press F5 to run the project I receive this error message : Error while trying to run project : Unable to start debugging on the Web Server (But I run without debug (Ctrl + F5) it's OK) I don't know why. Please help me this. Thanks a lot ! I had the same error. I found a post on the VB forum that suggested to enable the "Terminal Services" - service. And what do you know... it fixed the problem. Now I am ab ...Show All

  • crpietschmann How can I use API GetClassName?

    The belowing code does now work. [ DllImport ( "user32.dll" , SetLastError = true )] internal static extern int GetClassName( IntPtr hWnd, ref string lpClassName, int nMaxCount); private void Form1_Shown( object sender, EventArgs e) { string className = "" ; GetClassName( this .Handle, ref className, 255); } Can anyone help me how to fix it That's it! Thanx. ...Show All

  • WinFX_Girl Custom Scrollbar

    I want to customise the look of the HScrollBar, what is the best way of doing this Extending System.Windows.Forms.HScrollBar and overriding the OnPaint() method This is my first time trying to create a custom control. yup but you should also delete the last H scrool bar :D Override the OnPaint() Thanks for you quick replies! I've overloaded the OnPaint function however it still draws the defau ...Show All

  • Rahul_D Is there a .Net way to get "Shared Documents" path?

    I know of Environment.SpecialFolder which can return many paths, but it doesn't have a method for returning "Shared Documents","Shared Pictures", "Shared Video" or "Shared Music". Is there a way to return these paths without hard-coding them Thanks! Dear BenjStarratt, Thanks for your interest in .Net Framework. Having completely researched on your raised question, ...Show All

  • Aquilegia Missing C# Templates

    How many Templates should be installed with a new installation of VS 2005 It looks like we are missing them. I see there was a problem with this with C# Express Beta's. We have three different installations and none of the installed templates are the same. It is dependent upon what you installed.  C# itself for projects has 4.   Windows Application Windows Control Library Class Library Conso ...Show All

  • B*C Type Reference in Generics

    The following code is from a book of Tod Golding (wrox) public void InferParams<I, J>(I val1, J val2) {...} public void InferParams<I, J>(int val1, string val2) {...} InferParams<int, string>(14, "Test");// call the second function InferParams(93, "Param2"); // call the first function Can anybody explain the difference Why there is no compile error Thanks! The compiler can infer ...Show All

  • derrick2658 Showing FileName

    Ok, when I put the following code for a label to display it a file name it displays the whole directory: label1.text = file.FileName; What I want is just to dispay the name of the file. Not the whole directory. ie. Eddie McClain - Living Forever.mp3. Is there a way to do this. Can someone help me Ok. I got it. How to show a file name with an openfiledialog.   Label1.Text = System.IO.Path.GetFileNameWithoutExtension ...Show All

  • mghile We Fly 24/7

    I know that this is going to sound like a silly question, but in what order are the labs in Wefly24/7 Hi, I think this would be the right forum to ask such things not here. http://www.learn247.net/community/ShowForumGroup.aspx ForumGroupID=4 ...Show All

  • Neil Danson Which technologies do you recommend for Client/Server Application (3 tier)

    I'm going to be building a client/server type of application and would like to use .NET technology - but am a little unsure about the architecture/which technologies to use. Let me describe the application for you: The server side program must be able to parse web pages for certain data and store this data into a website. The server must do this every sunday night at 2am to archive that week's data. From what I understand, I will able ...Show All

505152535455565758596061626364656667

©2008 Software Development Network

powered by phorum