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

Software Development Network >> Visual C#

Visual C#

New Question

Fingerprint Scan Code With C#
why am i getting this error?!!
repeating code
.Net 2.0 INotifyPropertyChanged Interface Implementation
Why can't an interface method be internal?
Windows Task Scheduler C# 2.0
devenv crashes (when opening designer)
change default development settings in visual studio 2005
Datagrids: How to format boolean values?
Compa Thread performance in C# and vb.net

Top Answerers

jameyer
GraceCai
David Mc Dermid
Nico Vuyge
Michael_75
dafan21
pisiiki
arsonist
Aaron Oneal
dkonline
XQuery: An
Only Title

Answer Questions

  • Jon Uk "Clean Solution" is missing from the Build Menu

    subject says it all. anyone knows ahy Hello All. Hermano Cabral: You can add this to the Build menu by right-clicking the menu bar and selecting "Customize." This will bring up a dialog that will show you all of the available commands for each menu. Select "Build" and about halfway down you will find "Clean Solution." Just drag that icon to the "Build" menu and the command will be added. HTH. ...Show All

  • UtterMan How to use methods from other class

    I am trying to create object of class that i have in my project. But its giving me error saying namespace not found. Include the project name in your class by using "using " statement. if it is in the same project try to rebuild. still u get the error, then close the IDE and reopen it. i hope now it will work properly. Thank you very much........... I used the same thing......... Can you post the exact error message you get, and also relevant parts of your code if its complaining about a different namespace or namespace not found then this means that the class in question has a different namespace than your current namespace, so either: change the namespace ...Show All

  • Mateusz Rajca Passing variables or objects?

    I am fairly new to programming in C# but I have been developing in T-SQL for some time. In SQL there is no such thing as objects so we pass everything with variables. I have seen sample C# code that passes data as a variable and other times as an object. My question is which one is better, for what reason and how would I know when to use one or the other. An example is below. Thanks for your help. Private void Sample1() { Int someInt; String someString; someInt = 1; someString = “test”; DoWork(someInt, someString); } Private void Sample2() { SomeObject someObject = new SomeObject(); someObject.someInt = 1; ...Show All

  • sahady Writing to a file

    I am having trouble figuring out why I can't write to a file, but I can read from a file fine. I've tried a ton of different methods including StreamWriter file = new StreamWriter("file.txt", false); StreamWriter file = new StreamWriter("file.txt"); Each time the program runs fine, but no file is generated. Even if I create a new file in the folder and add it to the project it still does not write to the file. I have VS 2005, VS 2003, but right now I am using VS C# Express Edition. Thanks in advance for any help, maybe this is just a problem with my C# Express Edition. Here is an example that doesn't do anything. [source]// *** Write to file *** // Specify file, instructions, and privelegdes FileStream file = new FileStream("test.txt" ...Show All

  • Luke R Component class adding a List attribute

    Here is a piece of code from my component class. I am trying to add a List attribute: [Description("The type of the parameter"), Category("Behaviour")] public string Type { get { return this.Type; } set { this.Type = value; } } [Description("List of parameters"), Category("Behaviour")] public List<Fields> AllFields { get { return this.AllFields; } set { // } } Fields is a public class: public class Fields { public string type; public string name; public string value; } My question is how do I Set the value to my List<Fields> Eventually I need to add values to the list at design-time ...Show All

  • kmishle Why is it failed to export template in my VS2005?

    Hi,everyone,        In my VS2005, it is always failed to export project and item template. Either error messages or '.zip' files are shown out. But the first time I have succeed in exporting C# project. Neither opotion have I changed after that. And in the option page, I have not found the option item for this.        Could any one do me a favor Thanks.                                                       ...Show All

  • TheBlackShadow Move form without titlebar

    Hello, How can I move a form without a titlebar Hi, Two ways. First: //API functions to move the form public const int WM_NCLBUTTONDOWN = 0xA1; public const int HTCAPTION = 0x2; [DllImportAttribute("user32.dll")] public static extern bool ReleaseCapture(); [DllImportAttribute("user32.dll")] public static extern int SendMessage(IntPtr hWnd, int Msg, int wParam, int lParam); And in your mouse down event of the form: public void Form1_MouseDown(object sender, MouseEventArgs e) { //If the left mouse is pressed, release form for movement if (e.Button == MouseButtons.Left) { ReleaseCapture(); SendMessage(Handle, WM_NCLBUTTONDOWN, HTCAPTION, 0); } Second: protected override void WndProc(ref M ...Show All

  • Squirrel70 wanto use a function as a parameter

    in C# can this be done private bool CallItUp(objetc o) return (o's condition) true:false; } private void ProcessBy(object o) { PleaseHelpMe(); } public static void main() { ProcessBy(CallItUp); } This is incorrect but i would like to now something simlar, possible Yes its posible through delegates: Just have a quick look: private delegate bool FunctionRef(object o); // Should have same signature as function to which it holds reference private static FunctionRef functionRef = new FunctionRef ( CallItUp ) ; private static bool CallItUp(object o) return (o's condition) true:false; } public static void main() {    &nbs ...Show All

  • kiran1234 Is there any way to implement an application that close other running application???

    help me if there is any way to implement an application that close other running application... thanks in advance.. It's best to post a close message to a process in order to "ask" it to close. Killing a process abruptly can lead to many problems.  peter >>>this is not doing anything ... it does not terminate applications.. it just like press a free button... I do not know what is wrong in it ... I see it coding I think you did not understand me well MY application should to close other applications ... this is the situation .. In my server there are not less than 120 to 150 application running at the same time .. so ...Show All

  • Ralf Abramowitsch MessageBox.Show()

    Hi all Can the default popup message box MessageBox.Show() be coerced to always show up in a certain location on the screen, rather than dead center Thanks Heinz Thanks sirjis , after reading the artice I will roll my own indeed. Probably, but I would definitely recommend against it. It would be much easier to make your own form that looks like a message box. If you're really set on using the canned MessageBox, take a look at http://www.utmag.com/wconnect/wc.dll 9,7,10,775 (the first good result I found, although I'm pretty sure I've seen some on codeproject before). ...Show All

  • billqu Cannot implicitly convert type 'string' to 'bool'

    private void DataGrid1_ItemDataBound(object sender, System.Web.UI.WebControls.DataGridItemEventArgs e) { if (e.Item.ItemType==ListItemType.Item || e.Item.ItemType==ListItemType.AlternatingItem || e.Item.ItemType== ListItemType.EditItem || e.Item.ItemType==ListItemType.SelectedItem) { CheckBox cbBI=e.Item.FindControl( "Price" ); cbBI.Checked=e.Item.Cells[18].Text.ToString(); } } check the length of string cbBI.Checked = e.Item.Cells[18].Text. Length >0;   mark answer questions tell me if some thing goes wrong Sorry Mohammad but i am using .net framework 1.1 and in class String IsNullOrEmpty method does not exist.What I should do Thaks for help. ...Show All

  • Barry Kwok video buffer

    Hi.. im developping a client-server application in which i stream video.. i take 5 frames every second and send them to the server like this.. private void timer_snap_Tick(object sender, EventArgs e) { byte[] bpic; MemoryStream ms = new MemoryStream(); pictureBox_snapshot.Image.Save(ms, System.Drawing.Imaging.ImageFormat.Jpeg); bpic = ms.ToArray(); if(bpic.Length <5001 && bpic.Length >800) m_VideoSocket.Send(bpic); ms.Close(); ms.Dispose(); } Two possible reasons I can think of. You're using a UDP socket (correct for streaming video) and you're losing packets. More likely: a synchronous Send() over the Internet is going to be slow; you're los ...Show All

  • DanUp Recommended C# Books for Beginners

    What books or training videos would you recommend for someone wanting to learn C# I am a complete beginner to programming. Books : Beginning Visual C# 2005 Express Edition From Novice to Professional (APRESS) Videos : http://www.learnvisualstudio.net/ https://www.microsoftelearning.com/visualstudio2005/ _______________________________________________ May the God blessings be. LotraSoft Ltd. http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=849534&SiteID=1 ...Show All

  • GrahamY Visual Studio stops responding using CDATA within Comments

    I'm running Visual Studio for Software Developers on Vista. I've installed Service Pack 1 and the beta for }Vista. Has anyone else experienced a problem when trying to create an xml comment in a .cs file such that Visual Studio stops responding and begins to eat all the memory on the system until it crashes public partial class WebUserControl : System.Web.UI.UserControl { /// <summary>asdf</summary> /// <example> /// <code><![CDATA[]]> /// </code> /// </example> protected void Page_Load(object sender, EventArgs e) { } } As soon as I try to add some HTML in between the [] in the CDATA, Visual Studio falls on it's sword. Am I alone here ...Show All

  • Tryin2Bgood Load a Form Inside a Panel

    Hi The Main form has a Tree view and a panel. There is a Tree view Control In the Left side of the form.On clicking a node i have to load a from which is in a specific path(dll) in to the Panel. Assembly objAssembly = Assembly .LoadFile( @"D:\C#_Test_App\LoadForms\form1\form1\bin\Debug\form1.dll" ); object objFrm = objAssembly.CreateInstance( "form1.Form1" ); //((Form)objFrm).Parent = panel1; (( Form )objFrm).Show(); I dont know how to make the Form Loaded into the Panel. Pls help me One solution I used to do this myself was to create the form, then copy the reference to all of the controls in the form's control collection to the panel's control collection. This mad ...Show All

535455565758596061626364656667686970

©2008 Software Development Network

powered by phorum