Jump to content
Xtreme .Net Talk

Pselus

Avatar/Signature
  • Posts

    29
  • Joined

  • Last visited

Pselus's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. Ok, I'm having an issue. My companies program uses the AXwebBrowser to display product information. The information can come in the form of a webpage, a PDF document, info from SQL or a Word document. All of these work, even the word document...however when the word document tries to display I get the Open/Save/Cancel dialog box. I want to suppress this box. Now, from what I've found out...this is not typically a problem of Windows forms...this is a problem mixing Windows Forms, computer settings and webpage control... Anyone got any leads? I've looked all over the internet for this and can only find the question...not the answers.
  2. big ole bumparoo... I am having the same problem and can't find an explanation anywhere...I think it might have something to do with the fact that this problem is a mix of .Net code, computer settings and Webpages... so basically I need to find out what needs to be set on the computer to not bring this dialog up, and then I need to figure out how to set that programatically on the computer. Anyone?
  3. also, Cags...don't know if yours has this problem...but I noticed with mine that when you set the backcolor to Transparent in design time, it doesn't paint anything in the background and you end up with black or whatever is behind your app...it's not a real problem for me...just thought I'd point it out in case someone else does have a problem with it.
  4. Cags, I'll check this out. Any VB syntax you need to know (and can't find) post up...I'll help in any way I can. Can't thank you enough for all the help you provided man.
  5. ah, the joy of all this crap is really getting to me. :) I have one last question (I hope). still having a bit of trouble with drawing the border. The problem isn't that it's not drawing the border...I think the problem is that the region isn't quite right. The border draws for the top and the left sides, and the bottom right corner shows up almost...but the right border and bottom border don't show. this is what it should look like: http://www.livethislife.net/images/ForWork/should.png and this is what it does: http://www.livethislife.net/images/ForWork/does.png see the difference in the borders?
  6. I believe I may just be a dolt. This whole "flicker" thing has drained my will to program. I just went and got the origional border drawing code and pasted it in...it works fine. silly me. :) Thank you so very much for all your help Cags.
  7. I'm not exactly following what you do with the rectangle that you pass into your GetPath method. are you just using it in place of the Method level "rect" that is declared in my GetPath method (do you still have that code? I thought I posted it a couple pages back).
  8. got it. Origionally rect was declared = Me.ClientRectangle. Forgot that part this time around. so...possibly 1 last question. Earlier you mentioned getting the border into the Region by adding 1 or 2 pixels all around. Should I do that in the graphPath or somewhere else?
  9. nope. Still shows the gradient wrong. I'm betting that somewhere the "rect" object isn't being treated the same. I basically took what you posted and commented out everything I had. So I'll go back and look at what's done to rect in my code.
  10. you sir, are very nearly my hero. :) what you just posted works 99% perfectly...the only problem is that the gradient background doesn't draw all the way across now. example: http://www.livethislife.net/images/ForWork/wackyfun.png I'm going to look into it more, but was hoping you knew why that was happening. I did however navigate through the app and apart from the gradient and a few other issues I'm sure I can solve...this worked perfect. You english folks always seem to help me out so much. If I'm ever in england, you'll get a round a drinks on me. :)
  11. I was using Fillpath because the background is a gradient and Fillpath allows the use of a gradient brush whereas e.Graphics.Clear(Me.BackColor) just uses 1 color. *edit* right now this is my paint method: graphPath = Me.GetPath() If Me.ClientRectangle.Width = 0 Then rect.Width += 1 End If If Me.ClientRectangle.Height = 0 Then rect.Height += 1 End If If Me._GradientMode = LinearGradientMode.None Then filler = New System.Drawing.Drawing2D.LinearGradientBrush(rect, Me._BackColour1, Me._BackColour1, System.Drawing.Drawing2D.LinearGradientMode.Vertical) Else filler = New System.Drawing.Drawing2D.LinearGradientBrush(rect, Me._BackColour1, Me._BackColour2, CType(Me._GradientMode, System.Drawing.Drawing2D.LinearGradientMode)) End If e.Graphics.SmoothingMode = Drawing2D.SmoothingMode.AntiAlias e.Graphics.FillPath(filler, graphPath) Me.Region = New Region(graphPath) OnPaintBackground is overridden and is blank.
  12. apparently neither. But the problem with using e.Graphics.Clear(this.Backcolor) is that the backcolor is Color.Transparent and windows transparency doesn't work right unless you don't override OnPaintBackground.
  13. I apologize now if these images are too huge...don't have any graphics programs at work except for MS Paint. Pay attention to what's inside the main white panel. Using the Region stuff you talked about (I took out the double buffering and it is much faster) it now paints outside the curves...but doesn't paint INSIDE. http://www.livethislife.net/images/ForWork/nodrawinside.png Now the odd thing is that as soon as I click the search link, which raises an event...it paints what's inside like this (remember, the ONLY thing I've done at this point is type "smith" and clicked "Search"...this screenshot was taken while processing for Search was going on): http://www.livethislife.net/images/ForWork/aftersearch.png and here is one more example of things not painting. The red borders were added in Paint. If you look at the big one you are seeing a windows panel inside of my custom panel. Inside the windows panel are 2 windows listboxes (along with some labels and things). Those listboxes aren't fully painting even though I have no code to override their paint events. If you look at the smaller red borders you will see another issue. Those are my custom panel with a windows label and a windows checkbox inside. The labels seem to be painting just fine, but the checkboxes aren't painting their background to match the parents background...which is why you see the white square outside the checkbox. Cags I can't thank you enough for the help you've given me already...this Region thing is DEFINATLY heading in the right direction...I've got faster loading and no flicker...now I just need to figure out these painting issues. http://www.livethislife.net/images/ForWork/inworkflow.png
  14. also, what I meant by "not drawing all of the controls" is that some of my controls don't draw INSIDE the curves now. Specifically my tabcontrol which uses this panel. It now draws outside the curves just fine (which fixes the origional problem), but doesn't draw inside anymore. I also have a label control that is just this panel with a label inside of it (so I can have curved labels) and it does the same thing. Draws outside the curves now, but what's inside doesn't draw right. I'll try to get a screenshot or 2.
  15. I'll try out the things you mentioned today. Sorry about not replying yesterday...I was out sick. The reasson I'm using that bitmap to draw was because I was attempting to double buffer the control. The normal windows double buffering wasn't working well enough so I had to do it on my own. As for the amount of this control in my program...well if you look at the images I put above, every single time you see a rounded edge...it's this control.
×
×
  • Create New...