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

Software Development Network >> Visual C#

Visual C#

New Question

User Selected Database Path
QueryInterface in C#
Multiple languages on the same WinForm
Capturing KeyPress "Always" !!
Pass paramters to applications when executing?
changing toolBar backcolor
Dynamically moving controls
Unloading an Assembly
SQL data
Unmanaged codes for C#?

Top Answerers

Philippe Trottier
rayfusion
vinaypm2006
Mofoiuk
Jimme D
Thomas Sabourin
soanfu
Max Manowski
johnko
skbergam
Using W3C
Only Title

Answer Questions

  • flipmode Attempted to read or write protected memory on Interop Call. What is wrong with .NET 2.0

    I have searched for answers on the net and what I have found was a lot of poeple complaining about the same error message coming from .net / win32 interop: Unhandled Exception: System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt. Before someone suggests to check unmanaged library ...read the code below : [System.Runtime.InteropServices.DllImport("ke ...Show All

  • Marc Cauchy How to find the complete list of char.IsWhiteSpace chars?

    This feels really silly, but I can't find the list of whitespace chars anywhere. Similarly, the list of char.IsSymbol, etc, etc. These things must be documented surely, but where Why am I interested Well I want to replace some legacy and extremely complex code that uses char.IsWhiteSpace to implement what is conceptually private static readonly char[] whitespaceChars = { ' ', '\t', '\r', '\n' }; // what else public static bool AreTrim ...Show All

  • qingxisong C# 2.0 doesn't allow me to use System.Void?

    I love generics in 2.0! What a time-saving feature, less code to write! Plus it allows for more code re-use, and thus fewer bugs. I love generics, pat on the back to Anders and the C# team. I ran into a limitation, however, with C# 2 compiler and generics. I wanted to implement a method that would have a generic return type, for instance: TReturn ExecuteSomeDelegate<TReturn>(MyReturnableDelegate<TReturn> serverMethodToExecu ...Show All

  • Geoff Stockham problem with ndis80211macadress

    hi can anyone help me on my project i need to locate the macaddress from all the avaliable BSSList ManagementObjectSearcher searcher = new ManagementObjectSearcher(@"root\WMI", "select * from MSNdis_80211_BaseServiceSetIdentifier"); foreach (ManagementObject mo in searcher.Get()) { textBox8.Text =(mo["Ndis80211MacAddress"].ToString() + "dbm"); } ...Show All

  • Jason Elliott datasets -- hiding passwords from user's view

    I have a dataset that has 6 columns. Two of these columns contain passwords. I need to use these passwords for FTP purposes, but I would like the user to see only "****" when they run the program. How can I do this ~Lauren U could hide those 2 columns that contains the passwords. right-click on the datagridview. Select Edit column ... and you could remove or make the column visible = false; Hope it helps ...Show All

  • pshaw Web Browser

    Ok. I am trying to set a WebBrowsers URL programmically. But it wont let me. Can someone tell me how to do this Hi, You can set it like this: webBrowser1.Url = new Uri("http://www.google.com.ph"); cheers, Paul June A. Domag ...Show All

  • MPCProgrammer DNS MX record look up

    Hi, I need to read MX records for a domain.. (email validation) I have been using VS 2003, C# and don't see a straight forward way to do it.. Everything seems to point to using socket, creating binary request and parsing response. I am not familiar with pointer so scared to use them.. any suggestions would be highly appreciated. Also, how to configure the timeout, saw the blocking vs non-blocking requests. Thanks, Shanti ...Show All

  • BerKim click event

    I am trying to write one event handler that will handle a lot of events. For exaple i made a keyboard on the screen. When you click the letter "l" that letter should appear in the text b ox. I wrote some code below coud you help me with the rest delegate void fillbox ( object sender, EventArgs e, string letter , bool Caps) ; private event fillbox OnClickEvent; private void FillTextbox_numbe ...Show All

  • JuanMi69226 Checking for file extension

    Hey guys, I have a class that allows certain types of files to be uploaded. Currently, it checks the files ContentType, however for example I want to allow .csv files to be uploaded and it's ContentType is:  application/octet-stream   but so is .ini and .dbo files (which I don't want) they all the same ContentType. I would like to check for file extension as well. But FileUpload.PostedFile doesn't have that property. Any sugges ...Show All

  • Rob C Error Connecting to Database

    Hi Experts, When my connection.open() is excuted, i got this error. i am using .NET 2.0 to connect to a database in SQL2005. Kindly Advice! Many thanks!!!! System.Data.SqlClient.SqlException was unhandled Message="An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provid ...Show All

  • Three Dee Why all these get/set-methods instead of public variables?

    I've started to use classes to structure up my programs and all tutorials i've read says that i should do like this: class Spelare {    float positionX;    public Spelare()    {       positionX = 100f;    }    public float PosX    {       get       { & ...Show All

  • Casual Jim textbox test always highlighted on window open

    I have a help non-modal dialog that just displays a text message in a textbox. The textbox is the only component in the form. The problem is that when the dialog is displayed, all the text in the textbox is selected / highlighted. I have tried calling deselectAll on the textbox in the constructor and in the load and visible changed methods with no change. How do I get rid of the selection That worked. C ...Show All

  • RLyons A strange questoin?

    hi, guys I got a very strange question, float a = 1.18F; float b = 0.01F; float m = a + b; Run this code, the result m is not 1.19, IDE shows the value is: 1.189994 Why is that hii, i think the output is perfectly fine. the result i m getting is 1.19 only . i did it in vs.net2003 itslef. shakalama wrote: hi, i have tried it and it working fine fo ...Show All

  • SamyLahur Future C# string optimization directions

    This is a topic of academic interest to me.  Are there any plans to optimize code patterns such as: string results = ...; bool foundSomething = results.ToLower().Contains( "something" ) ) Here, I'm making a case-insensitive search and it seems that ToLower() is an unnecessary use of CPU cycles and memory accesses.  One possible solution, which isn't very extensible, is for ToLower() to do a lazy-copy: it will first make a refe ...Show All

  • Ark Man Displaying a web page on a window form

    Is there any control to use on a Window Form to view web pages like HTML thanks! Hi, Try checking out the WebBrowser Control... I'm using VS2005 and Im not quite sure if its available on the lower versions ( 2003, 2002 )... Note: Questions involving Windows Controls or Windows Forms, please post in the Windows Forms General forums group... cheers, Paul June A. Domag I guess u are right, I found that http://www.c- ...Show All

5678910111213141516171819202122

©2008 Software Development Network

powered by phorum