Search results for query: *

  1. B

    Getting graphics for richtextbox

    ok (with a ton of help from you) and an entire day of faffing about, I've finally cracked it! I used the FormatRange as you showed it earlier and changed by 'DrawForm' sub to include this fragment; ForEach ctl In Con.Controls Dim CtlRect As New Rectangle CtlRect = New Rectangle( _...
  2. B

    Getting graphics for richtextbox

    Thanks for looking into this. It seems that generating some kind of image is my only choice. But for getsnap to work, dont the RTB's need to be fully visible? So I wouldnt be able to print an RTB that was partially off screen or one that was partly hidden because it was placed on a scrollable...
  3. B

    Getting graphics for richtextbox

    I can see that the code in the link you posted will work, but to be honest I was trying to avoid creating bitmap images since they never look quite right, especially when the zoom is high. I did more work on this and I think I can see what is happening now (but I have no idea how to fix it!)...
  4. B

    Getting graphics for richtextbox

    I'm using the code in http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnwinforms/html/wnf_RichTextBox.asp to print richtextboxes. However, I have a form with multiple richtextboxes on it and I wrote a sub to convert the whole form to GDI. This just inspects each object, draws...
  5. B

    User Objects and GDI Objects from Processes

    Is it possible to get the number of User Objects and GDI Objects for a given process? I can see these on the task manager, but I cant see either as selectable properties in System.Diagnostics.Process?
  6. B

    Form display, transparent holes

    Indeed. In actual fact, the code can be simplified slightly further; Me.Hide() Me.Opacity = 0 t.CellBorderStyle = TableLayoutPanelCellBorderStyle.Single Me.Show() Me.Refresh() Me.Opacity = 1
  7. B

    Form display, transparent holes

    You sir (or madam) are a genius! The following works very well, no flicker, no nothing. For i As Double = 1 To 0 Step -0.2 Me.Opacity = i Next Me.Hide() t.CellBorderStyle = TableLayoutPanelCellBorderStyle.Single Me.Show() Me.Refresh() For i As Double = 0 To 1.0 Step 0.2 Me.Opacity = i Next...
  8. B

    Form display, transparent holes

    Thanks for the comments, I removed the lines below from my test case above. (Note that this is not my actual application, just a demo I made up to exaggerate the problem and to allow me to try out some fixes. I get the same problem with a single picturebox). 'Me.TransparencyKey =...
  9. B

    Form display, transparent holes

    The example with 1800 was to exaggerate the effect. I get the same problem with a much smaller number of controls (in fact I get it even if I have only one picturebox). It's much worse when the form has to grow as part of the operation. Also, although I disable transparency, when the form...
  10. B

    Form display, transparent holes

    Hi, I hope someone can help. If I create a large table, the display of the form is really bad, especially if I add grid lines. I get transparent holes where the controls should be and it takes a long time to draw. I made an example of this below. (Just cut and paste into an empty project)...
Back
Top