Skip to content

C#

C# discussions

This category can be followed from the open social web via the handle c-065f1d12@forum.codeproject.com

93.7k Topics 383.1k Posts
  • drag & drop as in explorer

    csharp
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • Sending multiple items to the clipboard?

    help question
    3
    0 Votes
    3 Posts
    0 Views
    L
    Hi, First thanks for the reply! Secondly after some more experimenting I've found it isnt actually my application raising the exception, its external and is in the download manager (Flashget) which is catching the clipboard copies. So Im wondering if its perhaps sending the copies too quickly for Flashget to catch them, would there be any way I can insert a short pause to test that? Im sure its now pasting OK as I checked the last URL on the clipboard against my ListView and it matched. Thanks Again Paul Mason
  • drawing an icon on a form

    graphics question csharp visual-studio
    3
    0 Votes
    3 Posts
    0 Views
    S
    Thans, I'll give that a try Regards Senkwe Just another wannabe code junky
  • Associating shortcut key with a button

    question
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • Datagrid not behaving

    csharp database visual-studio debugging question
    2
    0 Votes
    2 Posts
    0 Views
    P
    Never mind, figured this one out finally, all it needed was to specify the table name in the Fill method: adapter.Fill(ds, "PRODUCT"); Bingo! works
  • Flaky VS.NET Designer

    help csharp visual-studio question
    5
    0 Votes
    5 Posts
    0 Views
    P
    I had a terrible time getting my control icons to work. I finally discovered that VS.NET was caching the icons based on the assembly version. I had no AssemblyInfo.cs file (or its equivalent) and so my version stayed at 0.0.0.0 and my icon was not changing. Once I set my version to 1.0.0.* my icons worked properly. Otherwise I have no problem using controls from one project in another project under the same solution and under the same instance of the IDE. I just have to remember to build my control assembly before trying to use it (ie in the Form Designer of another project). -- Peter Stephens
  • Porting MFC Container into C#

    csharp c++ com sysadmin docker
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • 0 Votes
    1 Posts
    0 Views
    No one has replied
  • Combobox in listview/datagrid

    question
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • Naming Convention

    csharp question c++ visual-studio lounge
    9
    0 Votes
    9 Posts
    0 Views
    J
    Senkwe Chanda wrote: Hmmm, I've gotten used to NEVER creating publicly accessable variables or fields, preferring instead to provide access to them via properties. Is that unecessarily innefficient do you think? Not at all, I prefer to use properties myself but I have used fields from time to time; mainly when I am making a readonly field in which case the data cannot change so there is no sense in making it a property (usually the reason for a property is so that data validation can be performed or a database lookup). Depending on how I plan on using it, I may make the values in a struct fields, but in most cases those are properties as well. James Sonork ID: 100.11138 - Hasaki "My words but a whisper -- your deafness a SHOUT. I may make you feel but I can't make you think." - Thick as a Brick, Jethro Tull 1972
  • Desk Bands and Explorer Bars in C#

    csharp question
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • MFC 2 C#

    c++ csharp json tutorial question
    2
    0 Votes
    2 Posts
    0 Views
    M
    What are the differences between apple and orange?;) Mazy Don't Marry a Person You Can Live With... Marry Someone You Can Not Live Without
  • Spawning an application from C#

    question csharp
    2
    0 Votes
    2 Posts
    0 Views
    J
    The System.Diagnostics.Process class lets you start up and control a process (ie program) There's quite a bit of info to go along with that so its best that you look it up before using it :) James Sonork ID: 100.11138 - Hasaki "Not be to confused with 'The VD Project'. Which would be a very bad pr0n flick. :-D" - Michael P Butler Jan. 18, 2002
  • How to call a C# Dll from C++ ??

    csharp question c++ database sysadmin
    4
    0 Votes
    4 Posts
    0 Views
    J
    ohhh! I forgot about that :-O James Sonork ID: 100.11138 - Hasaki "Not be to confused with 'The VD Project'. Which would be a very bad pr0n flick. :-D" - Michael P Butler Jan. 18, 2002
  • Hosting ASP.NET outside IIS?

    csharp asp-net sysadmin windows-admin hosting
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • Win9x

    tutorial
    2
    0 Votes
    2 Posts
    0 Views
    L
    ExitWindowsEx() look it up in msdn..
  • OpenThemeData

    help question
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • ANN: Magic Version 1.1 released

    csharp com design announcement
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • TcpClient throws exception when on worker thread

    csharp com question
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • trying to prevent user from exiting the application sometimes

    help question
    2
    0 Votes
    2 Posts
    0 Views
    L
    Hi, Here I am assuming you are inheriting from the System.Windows.Forms.Form class. In the class add an EventHandler to the Closing Event e.g. Form.Closing += new CancelEventHandler(MyClose); Then create the code in here, you can cancel the event using the CancelEventArgs e.g. MyClose(object sender, CancelEventArgs) { ....... if(shouldNotClose) e.Cancel = true; } Hope this helps, Andy