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
  • Printing

    graphics help
    3
    0 Votes
    3 Posts
    0 Views
    M
    Rüpel wrote: isn't that function called each time you print a page? and it is starting each time with i=0. so it appears correct to me, that each page looks the same. Yes,I know it and I beleive you are right,but how can I solve it,my code is just simple example,in more complecated text its not like this. Mazy "So,so you think you can tell, Heaven from Hell, Blue skies from pain,... How I wish,how I wish you were here." Wish You Were Here-Pink Floyd-1975
  • string array

    data-structures help question
    3
    0 Votes
    3 Posts
    0 Views
    M
    Thanks,It works now:) Mazy "So,so you think you can tell, Heaven from Hell, Blue skies from pain,... How I wish,how I wish you were here." Wish You Were Here-Pink Floyd-1975
  • Manifest thyself!

    question wpf com learning
    2
    0 Votes
    2 Posts
    0 Views
    R
    From what I've seen, the embedded-resource manifest needs to be stored as a standard Win32 resource - not a .NET assembly resource. If you've got VS5/6/.NET, you can open up your application's exe and add it manually. From what I remember, it needs to be added as a custom resource type called "RT_MANIFEST" with ID = 1. Check www.gotdotnet.com for more specifics (search for Manifest) Unfortunately, there doesn't seem to be a quick way to get the C# compiler to emit standard Win32 resources. The other option, as you have already figured out, is to carry around the .manifest file with your exe. -- Russell Morris "WOW! Chocolate - half price!" - Homer Simpson, while in the land of chocolate.
  • I need help with this question

    question help
    2
    0 Votes
    2 Posts
    0 Views
    B
    app_form_name.ShowInTaskbar = false;
  • Print Preview

    question
    2
    0 Votes
    2 Posts
    0 Views
    B
    you have to calculate each line char and position and reposition it on the print doc
  • Dynamically assign QueryString to SRC?

    question
    4
    0 Votes
    4 Posts
    0 Views
    D
    Chris# wrote: I can see the values replaced x in the spot. If the value is being inserted into the page properly, but not being passed to the sample.aspx page, then maybe you need to HTMLEncode it first. -- David Wengier Sonork ID: 100.14177 - Ch00k
  • Bitmaps disappearing

    graphics question
    2
    0 Votes
    2 Posts
    0 Views
    D
    How are you displaying the bitmap? If its on a Picturebox just use Picturebox.Visible = false -- David Wengier Sonork ID: 100.14177 - Ch00k
  • Matlab & C#

    question csharp
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • Capturing Cursor Keys?

    c++ question
    3
    0 Votes
    3 Posts
    0 Views
    Z
    Thanks James. Works great now. Here's the code I used to override IsInputKey protected override bool IsInputKey( Keys keyData ) { bool bIsInputKey = true; switch( keyData ) { case Keys.Left: break; case Keys.Right: break; case Keys.Down: break; case Keys.Up: break; default: bIsInputKey = base.IsInputKey( keyData ); break; } return bIsInputKey; }
  • Deriving combobox

    question css database tutorial
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • inherited forms resizing issue

    help visual-studio design
    4
    0 Votes
    4 Posts
    0 Views
    L
    well, after toiling around the msdn i found a little blurb stating that controls on inherited forms that have anchor properties MUST be set to PROTECTED and not PRIVATE.. exposing controls is the absolute wrong way to write inherited forms (im no architect, but im pretty sure that breaks the model). -- unless there's a way to block the user from directly accessing the PROTECTED control aside from setting it's anchor. so the solution..? in base.Resize() i simply made the layout recalculations myself. years of vb experience pays off.
  • Transparent bitmap

    csharp c++ graphics help question
    3
    0 Votes
    3 Posts
    1 Views
    L
    Thanks James Yes, it's a nice alternative to was I was doing (using ImageList class). But I forgot to explain that I was using PictureBox control not device context. I still wonder if I could use two PictureBox controls, one transparent over the other. Thanks again Jerzy
  • How I can Make A TreeView with checkedBoxes?

    question
    3
    0 Votes
    3 Posts
    0 Views
    L
    thx! but where i can find in www some codesample about working with treeView? pawel
  • Communication between 2 aspx pages

    question database
    2
    0 Votes
    2 Posts
    0 Views
    C
    The short answer: As a query string. I guess you could hack it up to post the data as well. // Rock
  • EventWritten and Security Log

    csharp security help question
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • Terminal Services

    csharp dotnet json question
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • About string

    question
    2
    0 Votes
    2 Posts
    0 Views
    L
    string s=MyString.Substring(0,MyString.Length-3) Jerzy
  • Customize message from datagrid

    database tutorial question announcement
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • 0 Votes
    2 Posts
    0 Views
    L
    check out these guys. http://www.dotnetmagic.com/TabControl.html . just re-write what you want... its a bit of work to factor out the other two parts of their library, but its worth it. solid code... light documentation.
  • Weird GDI+ rectangle drawing

    graphics question winforms
    3
    0 Votes
    3 Posts
    0 Views
    L
    Thanks a lot for the useful information. I find incredible that such a bug exists and it won't be corrected. Nicolas