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

Software Development Network >> Visual C#

Visual C#

New Question

Deployment projects including all files
Events
Is C# 100% pure OOP.., Boxing n unboxing
Creating a Datatable from a ArrayList
Returning a DataSet from a load function
BindingSource Filter with textbox.
Where should I store passwords?
Using C# to register to a call back function written in vb.net
Monitoring an object for changes
Code conversion C to C# problem with bitwise << shift

Top Answerers

edralph
c_shah
DrunkPanda
WHats wrong
suamikim
D--
riemerg
markovuksanovic
m_nille
Djalma Rosa dos Santos Filho
XELOPES Data Mining Library
Only Title

Answer Questions

  • Enkht How to import C# library to VC++ 6.0.

    Hi, Is it possible to use C# library to VC++ 6.0. If so can you please give a steps to create a sample from VC++ using C# libraries. Thanks for your help. Yes.  There are two ways to pass data.  One is through the use of C# sockets on the managed side and native sockets such as C sockets, Windows API sockets, or C++/MFC Sockets on the unmanaged or native side.  You can serialize objects even by using the serializable attribute on the managed side. The other way is to use COM Interop where COM-Callable Wrappers are created around managed code and consumed then by native-unmanaged code in VC++ 6.0. Managed Code // Under Project | Properties | Build, make sure you register the project for COM Inter ...Show All

  • HeatherLK Ctrl+Space has stopped working

    I am using Visual Studio 2005 Professional and C# (this happens in all other languages, though), and Ctrl+Space seems to have stopped working. I have never messed around with the keyboard bindings before, so this is a mystery to me. In the text editor, normally I would get a list of variables, etc. by pressing Ctrl+Space and could select from them. If I just start typing on a blank line, or type a period after an object, the Intellisense still pops up, but Ctrl+Space has stopped doing anything. I have tried going to Tools->Options->Environment->Keyboard to see what that key configuration was mapped to. In the box that says Press Shortcut Keys, I can press ANY other key combination and it will tell me what it maps to, but pressing ...Show All

  • lrryklly Create Window

    Hello , I want to create a Window and place it over any running application. My Window should behave as if it is the part of running application. Any ideas.. Pls suggest me . If possible please give me some code sample or list of APIs .. Thanks Sachin Kumar Rana Hi, Please reference to use SetWindowPos : http://msdn2.microsoft.com/en-us/library/ms633545.aspx  to set the window at the most top of the apps. Thank you And here is the example: http://www.developer.com/net/csharp/article.php/3347251 P.S. Replace the " HWND_BOTTOM" with " HWND_TOPMOST" in SetWindowPos method can do what you want. Thank you ...Show All

  • SimonOng SoundPlayer Exception: The wave header is corrupt

    Platform: .NET 2005 with .NET 2.0 framework. Windows XP Professional When attempting to utilize the SoundPlayer I always get the error message: "An unhandled exception of type 'System.InvalidOperationException' occurred in System.dll Additional information: The wave header is corrupt." I first thought that my source wave files were corrupt but when attempting to play system sounds (c:\Windows\Media) I get the same exception every time. The other unusual behavior is that the player actually plays the entire wave file while raising the exception. Has anybody else seen similar behavior Thanks for any help given. I, too, get this error, but when attempting to play the data from a wav file using a Visu ...Show All

  • hwti {"Specified array was not of the expected type."}

    Hi, I'm trying to interface between OPC (OLE for Process Control) and C# using Siemens' OPCAutomationDAServer (comes with a package called PC Access). Now, there are some VB6 examples, and indeed they work perfectly fine. There are many such occurances of the above message. One has the following signatures: VB6: AddItems(x as int, y() as string, z() as long, k() as string, l() as string...) from C# the signature reads as : AddItems(int x, ref Array y, ref Array z....) I tried using the same array types that are in use in VB6, and I tried arrays of objects and I tried System.Array.CreateInstance(). Nothing worked. If someone can shed light on this, I'd really appreciate this! Thanks in advance I ran into ...Show All

  • Constantin Dragomirov Strong versus Weak Event Pattern

    You need perhaps read the following to understood my question: See: http://msdn2.microsoft.com/en-us/library/aa970850.aspx In WPF there are situation for weak events. Not enough understanding when or how to prevent memory leak associated with events. Can I use the same pattern with my ordinary C# code, not related to WPF Peca Yet more questions Can atached or depency properties introduce life-time extensions out of knowledge of user of sealed system classes How can you drop or make backtrack point(parent don't need to honor childs local request - can I do it layout or render level) One more stupid queston: Why C# don't support constructor inheritance After C# 3.0 you can make extension methods to basic intrisinct t ...Show All

  • CF2006 connect SQL server 2005 to Visual C#

    Hello everyone... Pls help me to connect SQL server 2005 to visual C# in Windows Application. I have already the database... Thanks. Ron. hi it is very easy. I just try to give you some keywords to connect to any database fist you need a connection object. for example to connecting to a sql database you need SqlConnection then you have to set the connection string attribute of your SqlConnection that includes information about your database like your database name, your server, username, password,... then you have to open your connection by Open method of your SqlConncetion. then you are connected to your database and you are able to make a dataAdapter and fill it to dataSet or m ...Show All

  • LouArnold Controlling EventHandler Auto-Naming

    Hopefully this will be an easy one. Say I have the following: public class Foo { private double _angle; public event EventHandler < OnValueChangeEventArgs > OnValueChange; public double Angle { get { return _angle; } set { _angle = value ; OnValueChange( this , new OnValueChangeEventArgs (_angle); } } public class OnValueChangeEventArgs : EventArgs { public readonly double value; public OnValueChangeEventArgs( double value) { this .value = value; } } } Then, in my application, I create an object of Foo: Foo f = new ...Show All

  • fatquack Solving Systems of Linear Equations

    Ok .. I need to solve for F and A in this problem below. The question is how do you program that Equation 1: 190 = (F/2) + A Equation 2: 169 = ((F/2) – A) * -1 BTW I worked it out with pen and paper (Substitution Method) the answers are: F=21 A=179.5 Thx again guys ... been a really big help! -Avotas Hi Avotas, are you looking how to solve linear equations in general, or just for the specific case you mentioned If it is just a specific case as above with the values always being 190 and 169 then: 190 = (F/2) + A 169 = ((F/2) - A) * -1 Then replacing 190 = X and 169 = Y: A = (X + Y) / 2 Substituting back into equation 1 you get F = X - Y. So if you wa ...Show All

  • robingandhi21 How to use GC.Collection() and Dispose()

    In my application, it use 10.000 files. And every files have 5000 lines. My application openning the shown folder and scaning the files. Well then, it is reading all lines and write them to database. It takes 30-40 hours. Time is not our problem. The problem is "Memory". I am using "GC.Collection(); dispose();" lines ending all methods. But memory useage increasing. I can not stop it. Someone could give me an idea What are you disposing How do you open and close files, how do you handle the file's context I see: ok, then at least, get the connection.open() into the loop. foreach (string dirs in Directory.GetFiles(pathFile2)) { connection.Open(); ReadFile(dirs ...Show All

  • danielda Moving from procedural to OO

    I have been coding in C for upwards of 4 years now and a friend of mine has brought to my attention that a lot of employers now want their programmers to use OO instead of procedural. I have gotten a book on Java and 2 on C# (one on the basics and one on network programming), but I must say this OO thing isn't really catching with me. I am still in high school, so I don't have much time on my hands, but do any of you have any good resources on how to relate OO to procedural, or to just make it a bit understandable Thanks private CarRadio theRadio = null; Ok, this creates a new object, theRadio and sets it's value to null, which is kinda like empty, but not empty. This is done in Main. It can't be done ...Show All

  • joeydj Destination for Build output?

    Hi there, I need some help with where the output of my build goes. How do I send my build output to a different folder than where the source code resides Is there anything special I have to do to support this TIA, JackStri. Project properties, Buid tab, Output path in the Output section. Regards. Thanks! Rgds, JackStri. ...Show All

  • Alexandre Defalque input data to website

    Ok right now I have to configure routers manually by inserting the exact same data into a router's configuration panel (website on router) then swap out the configured router with one that needs the exact same setup and redo this process over and over. I would like to write an application that fills in all the needed boxes,selects values from drop down menu's and fills in any other information and presses the save & restart button for me is this possible I initially though about trying to find the file on the router that its writing to thinking making its one config file maybe if thats the case I could just write to the file but im not entirely sure. right your first idea sounds like what I want to ...Show All

  • angi.w Visual C# Training Programs

    Hi i need to get used with the inbuilt classes n API s provided in C#. can someone suggest some programs which i can write in such a way that i get used to the above. links to sites which contain such problems, with solutions, will help. thanks in advance. ...Show All

  • AdrianG Converting a string to int

    I'am building a console program and need to convert a string that the user types to an int. If I use convert.ToInt32 a get the ascii code for the number but not the number it self. can anyone help me find a easy way to do this, if there is one :) Hi, Arnar. Convert.ToInt32(string) should work, but it would be helpful to see an example of how it is not working as you expect. You can also use int.Parse(string) or int.TryParse(string, out int) . Note that there is a small difference between Convert.ToInt32(string) and int.Parse(string). If the argument is null, Convert.ToInt32(string) will return 0, while int.Parse(string) will throw a System.ArgumentNullException exception. Also, int.TryParse(string, out int) is only availa ...Show All

798081828384858687888990919293949596

©2008 Software Development Network

powered by phorum