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

Software Development Network >> Visual C#

Visual C#

New Question

webBrowser1_CanGoBackChanged event doesn't fire!?
Question re top level types
GetType from instance that has a null value
Database Security Failure
Preview problem
Everybody fails this test: C# strange inheritance
How to edit any .cs file from my C# application?
error in compiling C# statement
Control Arrays - Which checkbox has been checked?
Int to string?

Top Answerers

_Alen_
Srikanth Pai
bool007
Evgeny Popov
Michael Ritzcovan MSFT
Achileos
Fortes
Ömer KAYA
BBuff
Timothy Downs
Pentelar Consulting Inc.
Only Title

Answer Questions

  • Details Monster Get a windows object from its handle

    How do I get a windows object from its handle in C# IntPtr pointer = MyControl.Handle // this is fine but how do I .... Control c = GetControlFromIntPtr(IntPtr). With all the different classes, methods, and properties; sometimes it's quicker to ask :-) Thank you. I had trudged through MSDN, this forum and Google with no luck. I even missed in Intellisense cus I had declared an ...Show All

  • dvferretm serialPort Questions

    I tried unsuccessfully to use the DataReceived event to read data from the serial port. It gives a thread exception and I cannot figure out what the error message is trying to tell me. So I put a button on the form and added: private void button2_Click( object sender, EventArgs e) {    while (serialPort1.BytesToRead > 0)    {       char [] c = new char [serialPort1.BytesToRead];  & ...Show All

  • farnaz Send Email...

    I have been looking for a way to send email and have found many ways to do it. All of them require an SMTP server though. Is their anyway to run an SMTP server "in" my program (minimized to tray) on localhost at all times Or is their a better way, such as open smtp servers etc. Thanks. That link seemed to mention how to send an email but I want to know if it is possible to do it without a remote smt ...Show All

  • Tarmo Tali sql Statment in c#

    I am using a access database which as you know does not support stored procedures. I need to know if this sql statemnt is right please help me with the syntax Thank you if exists ( select UserNameMentor , UserPassword from UserNames where UserNameMentor = UserName and UserPassword = UserPassword) /* SET NOCOUNT ON */ return 1 else return 0 1) Access database supp ...Show All

  • capyu Form

    how do I customize what the edge of the form looks like In what respect as in change the edge of the window box In VS2005 form designed in the properties box (whilst form is selected not a component) you can change the FormBorderStyle option. Not sure about custom borders well for example...look at windows media player..kind of like that. Hi, So you are referring to irregular shaped form. Then you ...Show All

  • Michael Boehm Windows switching

    Hi all, I'm working in automated test field. I have to create an appication that can automatic switch from one window to another window. Switching may depend on an input that specify the title of the window which want to switch to (or anything else that can identify each window.) If there are not enough information please notify me. Thank a lot, Thank a lot. Your suggestion is very helpful. Actual ...Show All

  • jorge1234567 dll

    hi, is there a way to see which dll's are used for the project. when i deploy my project t another computer i can not execute it. there is an system.dllnotfound error message. i am not sure if it is lookin for system.dll or another one. if it looks for system.dll (which system.dll). any ideas       System.Reflection.Assembly.GetExecutingAssembly().GetReferencedAssemblies() ...Show All

  • Roman K Dynamically Form Generation

    In C# , how can we easily generate form dynamically Suppose i want to write code under some buttons of different forms to show a form(where i may add controls anytime from anywhere) dynamically. I may click on those buttons more than one time. But it will show me the form only once. How can i resolve this Pls Help & Encourage Me (For more details) There are 2 forms(f1 and f2), 2 buttons(fb1 in f1 and fb2 in f2). Clicking on fb1 b ...Show All

  • gcollins evaluating variables with specific order?

    I'm new to VS C# express edition, coming from foxpro for windows. in Foxpro I can write (silly example ): for i=1 to 5 ii=str(i,1) offer&ii=i*5 next for i=1 to 5 ii=str(i,1) mod(offer&ii,2) next How you do this in C# Any suggestion please! Thanks, danny If you need five variables, you create an array. int [] i = new int [5]; Then you have i[0], i[ ...Show All

  • A. A. Object = Object - sets a reference?

    Hi, I understand that if you do object1 = object2; in c# that sets object1 to reference object2, so in essence they are one and the same. I'm trying to do this with two objects stored in a hashtable. I have a function that returns an object stored in a hashtable, so doing somehting like this public void SetValue(string Name) { obj = GetItem(Name); obj.value = 123; } will set the hashtable object's item value to 123. This works fine. However, I'd ...Show All

  • Paulo Sebastiao Getting Image Size Form Image Object

    I'm loading JPG file into Image object as following: Image image = Image.FromFile("C:\\myImage.jpg"); //Then I scale image by such way //then I need to get the Image Size after scaling ,how can I achieve this sorry i think that am posting to WIN32 GDI+ FORUM ,,,,am sorry I meant by size is the size in Bytes, does with and height help for find them, moreover am not using .NET framework im only using WIN32 GDI+ Save the Ima ...Show All

  • jkj13 C# generics on conversion operator and constructor

    I have so far a class Expr with a constructor taking a string, and the following two conversion operators. public static implicit operator Expr ( int expr) {    return new Expr (expr.ToString()); } public static implicit operator Expr ( string expr) {    return new Expr (expr); } I have various others, but they all get distilled down to a string using .ToString().  So, the obvious question: ...Show All

  • Fabrice MARGUERIE MVP Sharing variables between classes

    Hi all I have the following project.  I would like to have a common property across all classes, i.e. such as skin color in the example below.  Is there a better way of constructing this object and assign the skin color Thanks for the advice, Steve using System; using System.Windows.Forms;   namespace WindowsApplication1 {   public class Class1  {    public static void Main()   {  &nbs ...Show All

  • Kehama creating a COM object with c# and using it in VB6

    hello all, I've been searching for some tutorials/walkthroughs to do this, and I have not been able to find anything on it, could anyone point me in the direction any documentation that demonstrates this thanks! -ken Hi KenY,   I have some tips for you below based on my experiences. ----------------------------------------------------------------- You do not need to attached your C# dll with strong name ...Show All

  • Noddy Newbie Question

    Okay, I have decided to learn C#, so I created a basic form in Visual Studio C# 2005 (Not Express). What is the code to show Form2 For example Form1 has a button when the user clicks the button in Form1 it shows Form2. What is the code to do that s/MainWindow/Form1   Sorry about that, I had a differnt name for the form, I thought I changed all occurances.   And you can also do f2.Show(), ...Show All

8788899091929394959697989901234

©2008 Software Development Network

powered by phorum