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

Software Development Network >> Visual C#

Visual C#

New Question

help with c# basics
Moving from procedural to OO
A procedure imported by '{my assembly}' could not be loaded
copying a windows folder structure to sql server
COM Object Problem
X10 programming - send asynchronous messages through serial port?
principal.IsInRole working locally but not remotely?
#endregion syntax
Using Enum as Index
Does anyone have an example of attaching a vscrollbar to a picturebox?

Top Answerers

seva04121973
SHRESHTH
Bart Goltstein
UmaMohan
Krutika
Baller4lifeII
Jason_B.
Danny_FADBA
seadur
Cesar Francisco
Mik盲 on
Only Title

Answer Questions

  • CODUDE84 Console.Write problem

    I want to punctuate every call to a certain procedure which is a part of a Class separate from the calling procedure Class with Console.Write ("."); statement. I need a simple dot positioned at a line. It is primarily a debug situation but still I want it to be compact. I want all the calls being marked on one line, not 200 lines or so. In the setup like this Console.Write ("."); refuses to do what I expected. It acts pretty much like Console.WriteLine ("."). In other words it feeds in end of the line charactes. Is there a way to avoid it Thanks. RizwanSharp wrote: I dont think that there is something like what you are saying. Console.WriteLine() puts a carrieage return at the then b ...Show All

  • Blkbird Can't get custom build rules through automation

    Hi, I tried using automation for custom build rules. It looks like that only predefined rules (like MASM and lc) work fine. For newly created tools automation model doesn't work properly. See comment in red in the source code sample below. Is there a workaround for this issue Thanks, Vadim G to get the custom build settings through java script For a specific file Get a reference to VCFile object var fileConfiguration = vcFile.FileConfigurations.Item( "Release|Win32" ); var compilerTool = fileConfiguration.Tool; // ('VCCustomBuildTool'); // compilerTool.Description= 'Applying custom compilation' ; compilerTool.CommandLine= 'MyTool' compilerTool.Outputs= '$(InputDir)\$(Pr ...Show All

  • Peter Haik Please help me out in connecting to Active diractory

    hi frnds i am unable to read my active directory "Users" list through c# ( i tried sevaral sample code's available on internet.) pls help me in this issue thanks and regards ranu Have you tried this http://www.netomatix.com/EnumADUsers.aspx and i am getting the exception System.Runtime.InteropServices.COMException (0x8007203A): The server is not operational. what it exatly means and what should i do regards ranu thanks gabriel it will be great if you clear me that the whether the code you suggested won't be have any constraints with C# and what is the better way to initialize entry point. string strLDAP ...Show All

  • T.Ramesh How do I limit ticks is a checkListBox to one at a time?

    Hi, I am trying to use a checkListBox to select one of three options. I only want any one option at a time. I have found the following 2 instructions, which, I would have thought, would have done what I want, but I can still check all three boxes. this .checkedListBox1.CheckOnClick = true ; this .checkedListBox1.SelectionMode = System.Windows.Forms. SelectionMode .One; Incidentally, I tried this .checkedListBox1.CheckOnClick = true ; this .checkedListBox1.SelectionMode = System.Windows.Forms. SelectionMode .None; and this did whatI expected, I could not check any of the boxes. So, any one know what I am doing wrong Many thanks for being there John. Hi boban, ...Show All

  • Fille Cannot get program to display number with correct number of decimals

    I use Microsoft Visual Studio 2005 and i am not able to get my percents to display the percent sign or display only 2 digits after the decimal without resorting to just putting the % in myself. i thought that putting {1:P} would format the display to have 2 decimals and have a % sign, but nothing happens (yes, i have rebuilt the solution). Here is a sample from my program: Console .WriteLine( "Adults\t\t\t{0}\t\t{1:P}%\t\t${2:C}" , adults, percentA, feesA); #1(not 0) needs to be formatted so its printed out as 25.89% and #2 needs to be formatted to display money like $25.00. I know that {2:C} should make it do this automatically, but nothing happens unless i put in the $ and% signs myself. thank you very much. ...Show All

  • tdcntt Problem with obtaining text in an edit control

    Hi All, I am getting the text inside an edit control of another process. I tried to read the text inside the Notepad using Win 32 APIs. Unfortunately, there is no text returned. I don't know what's the problem. Here's my code: public static string GetEditControlText(IntPtr hEdit) { StringBuilder sbText = new StringBuilder(Windows.GetWindowTextLength(hEdit)); Windows.GetWindowText(hEdit, sbText, sbText.Capacity); return sbText.ToString(); } Here are my API declarations: public class Windows { [DllImport("user32")] public static extern int GetWindowText(IntPtr hwnd, StringBuilder windowText, int maxCount); [DllImport("user32")] public static ...Show All

  • arro239 Typedefs for Generics, Anyone?

    It seems kinda awkward to have to write this: SortedDictionary<String,String> myThing = new SortedDictionary<String,String>(); It would be nice to do something like this: using myMap = SortedDictionary<String,String>; myMap myThing = new myMap(); ...but I can't get that to compile. Is there any relief for the weary In other words, how do I do this Right, you need to put the using directive before the enum. You can do this. Not sure what your compiler errors are, but this works for me: At the top of the file, with all the other using directives: using myMap = System.Collections.Generic. SortedDictionary < string , string >; In some method in the same ...Show All

  • Glint System.Runtime.InteropServices.COMException : Bad variable type

    I am having a VC++ COM dll which I am referencing in a C# code. I am getting the following exception while calling a function in the COM dll. "System.Runtime.InteropServices.COMException : Bad variable type" I am passing a user-defined data type to the COM function.The code is working in certain scenarios. Can anyone help me with it The problem is happening when we are calling a function in the Active-X dll . I am passing an object of user defined type to that function from C# code. The COM funcion is having an object of type COleDispatchDriver I am attaching the object I send by calling AttachDispatch of this COleDispatchDriver object. The exception is happening when Inv ...Show All

  • yonderstar BreakPoint now working

    Normally, I store my source code on a network server. I have an app that i can run from this location. However, when I set a breakpoint in this app, it does not hit this point. But If I copy the source to my locale drive and set the breakpoint, it hits the point. Can anyone help with this. Thanks, Brian This might have something to do with the network share not being a trusted site. Because of this, .Net might be running the app in a sort of sandbox, where debugging is not possible. Could you try what happens if you add the network share to the trusted sites through your IE settings ...Show All

  • JimmyS Why Modifier can't be set like C++

    I am using C++ Language and learning in C#. But I used to set Public modifier as class cls { -----param public : -----method and param } Why C# don't have this. I think all modifier should be able to set as this method like C++. And can set like Java too. Or Microsoft has some reason Why it can't is syntax. Why it was designed that way has already been pointed out: to clarify member modifiers and to increase quality (by avoiding accidental and un-obvious modifier changes because a declaration's class offset was changed resulting in a different modifier). SmallTalk and C++ Access Modifier was able to applied to more than one member by one cast. with "public :" or "priva ...Show All

  • hemo bool and objects

    I have an collection of objects(arraylist)...in my list is want to check to see if properties within my arraylist have changed by using a _IsDirty flag...but i get an error saying cannot convert object to bool can anyone help me out here [code languge="C#"] for ( int x = 0; x < ArrayList.Count; x++) { if (Convert.ToBoolean(Arraylist[x]) == this ._IsDirty) { } [/code] how should this be too bad i am using 1.1 and i dont think it has Generics or does it I am storing Custom Control object types...everytime i create one i add to the the array list no it doesn't :-) it was introduced in .NET 2.0 yes that looks ok. A better way would be to use the Generic List<> collec ...Show All

  • killerless MemberwiseClone of a MarshalByRefObject

    When I call MemberwiseClone on an object that is a MarshalByRefObject that is currently marshalled I do not get a a "true" copy of that object but instead I get an object with the exact same proxy so the "clone" will share its identity with the original object and remote calls on a proxy to the clone will actually be executed on the original object but not on a copy (the way I would want it). Is there a way to force the creation of a "true" clone in case the MarshalByRefObject is currently being marshalled I found a hint [1], that suggests an approach to use reflections to " to nullify the _identity field in MarshalByRefObject". How would I do that Also first I would have to find out if the object is currently being mars ...Show All

  • bpeikes update datagrid

    how can i update a changed datagrid if(dg.haschange()) // dg is your datagrid name { dg.aceptchange() ; // or something like that dataadapter1.update( dataset or your table name) } /// dataadapter is a control to update from datatable or dataset to database does it help you/ DongMT, Vietnam ...Show All

  • Allaudeen_N_587b24 DTS 2000 with WMI

    All, Can i monitor DTS 2000 log details using WMI Pls help. Thx in advance. Regards, Abdul Kalam I'm already able to monitor SQL Server 2000 with WMI except DTS. Please help. Thanks, Kalam ...Show All

  • search and deploy Binding 'F1' to windows paste function - systemlevel

    Hello: how would I bind my 'F1' to use the windows paste function (outside of my app)...I'm using a global hotkey, but i'm kind of stuck. protected override void WndProc( ref System.Windows.Forms. Message m) { base .WndProc( ref m); // if this is a WM_HOTKEY message, notify the parent object const int WM_HOTKEY = 0x312; if (m.Msg == WM_HOTKEY) { // do whatever when the hotkey is pressed if (hot_key == Keys .F1) { Clipboard .Clear(); Clipboard .SetData( DataFormats .Text, textF1.Text); // need to bind here paste the clipboard data... } else { MessageBox .Show( "something wrong" ); } } Any guidance much appreciated, thank you! :) ...Show All

101112131415161718192021222324252627

©2008 Software Development Network

powered by phorum