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

Software Development Network >> Visual C#

Visual C#

New Question

WDS 2.6.5 - Not indexing Mailfolders containing a slash / in the name
Is [Serializable] attribute inherits?
Reading an XML File, Changing some values
How in the world?
Class View
how to set default dataGridView row Height
Separating data access form code.
opening a .txt document
Polymorphic Collections
Comparing Image Fields - Access and SQL

Top Answerers

RFU
mame
Brian Jensen
eax
ZebSoft
Michael W Powell
Kartit
Ike Ellis
jarrodwee
JoeRandom
MetalShell
Only Title

Answer Questions

  • matt rink AM and PM with "Convert.ToDateTime(string)"

    Hi there, I have a string which holds a date and a time: string s = 18.11.2005 11:23:03 PM When converting it to a DateTime by: Convert.ToDateTime(s); I get: 18.11.2005 11:23:03 But now, I'm not able to tell the difference between day an night. I need the AM and PM. How can I keep/get it Thank you, Finch. If you want to sort dates represented as strings, you may choose appropriate string format like that: Dat ...Show All

  • Dwight Kulkarni Designer can't process code, new build errors

    My laptop suddenly stopped working, forcing me onto my desktop computer. Of course, I'd made a backup of my projects. After unzipping them and downloading Visual C# 2005 Express, I opened my project. Well... the designer insists that I've modified code. I'm getting 64 build errors because it's missing references. How can this be Even if I create a brand new Windows Form in that project, the designer tells me "The designer cannot process the c ...Show All

  • Vinod Chandran implicit conversion operator question

    I don't understand why I would get CS0553 on this code.    The docs imply that the error should exist when you are trying to convert from Foo to object, not the other way around as this code is doing.  Can anyone enlighten me Thanks, Brian public class Foo {     public Foo( object x )    {        this .x = x;    }     sta ...Show All

  • David Clausen Windows XP startup issues

    Hi, Does anyone have any idea on how to solve the following issue. I recently installed Macafee Internet Security Suite. But since I did that and ran virus scan which found a number of issues, which I cleaned up. But ever since, when I boot up my computer, it gets as far as the Welcome screen. When I click on either of the two user accounts, it initiates the login but then immediately logs out again. Any ideas on how to resolve this pro ...Show All

  • selwonk ProgressBar.Value

    Ok. I know this is an odd question but I just cant figure it out. Basically, I increment my progressBar value with a certain process. So sometimes the value is 25, or 82 or whatever. Sometimes value passed to the progressBar turns out to be a decimal, then i get the error. My question is as follows: How would I make an if statement something like this: if (progressBar1.Value == a decimal) { do.this } Why not round the val ...Show All

  • Heinz12 how to share a function call with thread?

    Which is the best way to check if a function is running or not. I have a function of type void. it's called between 2 threads. i wanna make sure that the other thread is finished with it before my main thread use that same function. Hi, You are refering to thread sync. You should check the AutoResetEvent and the ManualResetEvent. You can use them to sync the threads. Check out this link: http:// ...Show All

  • hinshelm78 reading file properties

    how would I go about reading file properties like file name, ect... thanks sorry I guess I was unclear on what I want to do I want to read all the file names in a folder In the 2.0 Framework there is also the: public static string[] GetFiles ( string path , string searchPattern , SearchOption searchOption ) method. That will let you avoid writing a recursive ...Show All

  • RPaton Can I define Array with a defined structure type?

    I want to define an array of structure tryped data. Can I do it and is it same as conventional way of Array define Thank you very much for your help. James Hello, Chris: Here's what I tried and got the error in C#. Could anybody please give the answer Thank you very much. using System; struct SimpleStruct { private int xval; public int X { get { return xval; ...Show All

  • laweber3 Change size of MainForm (with nice effect...)

    Hi there, I'm sorry for the bad description in the subject line, but how am I gonna explane this... I want to change the the size of the MainForm. But I don't want it do be changed just like that... with a click and "boom" it's bigger. I want a effect. Just like those powerpoint-effects. You know what I mean Not as many, though. Just, that makes the size changing slower. Something like: for (i=0; i < 760; i++) {    this.size += ...Show All

  • Vassili Nikolaev How do I return a string from a csv file?

    Hi, I am trying to search a csv file until it hits a null value. The csv file is set up in such a way that I can search line by line until the first cell is blank (MB/Code). At the moment I just want to find this null cell and get the program to return the value, and then I can find the Res-Code and do some further calculations. Below is an example of the file I am searchi ...Show All

  • cgreen1 catching the Key_press enter when autocomplete is in use

    I'm using autocomplete in textbox now the autocompletesource is set to CustomSource and I can't catch when the "enter" key is pressed in the textbox. but when I set the CustomSource=none my function is working and I can catch the "enter" key please help me to get around it Using KeyDown event instead: myTextBox.KeyDown += myTextBox_KeyDown; private void myTextBox_KeyDown(Ob ...Show All

  • Steve Stilwell Deleting Control form my from

    Hi Guys, I am working on the .Net c# project(VS 2003). My problem is I can  not delete controls from form.Right click and delete option is disable and also I can not delete them by using delete key on keyboard. My Lockcontrol menu option is disable!!! Anybody can help me Thanks, Silly question, but you're not debugging are you Or are your files marked readonly (not really sure whether that blocks designer editing though). Why ...Show All

  • Paris Baughman Type testing and generics

    Plz never use strings to check this ! For example this this fail: namespace myNamespace {   class A{} } namespace Fail.myNamespace {   class A{} } As well this will class Name {} class NameAndSomethingMore {} And even more class A<T> { } class Derived : A<int> { } Depending on your validation needs you can do something like this:    public static bool IsSubclass(Type type, Type check)     { &nb ...Show All

  • David Friedland code security

    I was unsure where to post this, was thinking for a good few several minutes... hope this is the correct place! I was just thinking about code security. Anyone can usually just reflect a .NET application (dll/exe) but I am wondering if there is a way for it to not allow reflectors to decompile the output file I was then experimenting with the VS.NET 2005's Dotfuscator, pretty cool tool but the problem is still there. Dotfuscator rena ...Show All

  • Sreraman Narasimhan Get the font filename (like tahoma.ttf)

    Hi, Is there a method that can retrive the font filename e.g. tahoma, by passing it the font family Indeed, it is a know bug for a long time. Also [ i ] is a big problem because this is a common statement in a for-loop. You can't with a existing .NET Class, but you can get it yourself. On codeproject there is a little example written in C++, but it shouldn't be hard to convert. You find the article, here . Hello, I am ...Show All

363738394041424344454647484950515253

©2008 Software Development Network

powered by phorum