Thanks, I'll take a look into that :)
StuffyEst
Posts
-
Problem displaying aspx file -
Problem displaying aspx fileIndeed, and now I think I understand what the problem is. Apparently the server doesn't support ASP.NET environment or something. Since thats the only answer I could come up with.
-
Problem displaying aspx fileHello, First of all, I hope people won't eat me for asking this, but the fact is I'm kind of stuck on it. I have a problem displaying my .aspx file in any other browser except Internet Explorer. When I try to use lets say FireFox/Google Chrome or what ever other browser, it automatically starts to download my .aspx file. Now the thing is, I can't understand what I'm doing wrong or what have I missed out. 1) It all works when I test it with "Build+Run" 2) It displays in IE I've read something about IIS but.. I don't get it, how should I use it. Maybe someone kind enough would enlighten me on this matter. Thanks! (from someone who started learning C#/ASP.NET)
-
Problem with image transparent backgroundNo I haven't.. Guess I'll take a look into it right away :) (about the Png, for some reason it didn't even let me save to png.. but I had no problem saving to Gif.. so I'll take a look into that aswell)
-
Problem with image transparent backgroundSo I've searched for hours for a good fix or a workaround on this problem. What is needed : Draw a background canvas(white), and on top of it I have to draw - Grid(with transparent background), Graph1(with transparent background), Graph2(with transparent background) and whatever else. What is done : I have all the functions which all work, but only when they aren't ontop of each other. Problem : Everything I draw with a seperate function has a white background (NOTE: Something.Clear(Color.Transparent); doesn't work, makes the background black.. which really won't help) So I've found some workarounds how to do completely transparent pictures and I even found some .dll that would suit me BUT it has some nice licence things that won't work for me unfortunately, so I'm back to square one. [PS. I hope people won't start to flame to look harder on Google or whatever, so all I can say is.. I have and I was unsuccsessful]
-
Graph Disappear Problem vol 2Thanks a lot, finally got it all working as I wanted :)
-
Graph Disappear Problem vol 2well I have old post but thats like on page 30.. and I have serious doubts people care to watch pages that far.
-
Graph Disappear Problem vol 2I have returned with my "small" problem. Short overview: 1) Problem was/is that my graphics disappeared when you move them out of screen borders and pull them back or put some other window over them. 2) Graphics are updated every time I move my trackbar (which gives values to function to draw the graphic based on the values) So I've made some progress, but still stuck on other part. I have 3 different functions, one for graphic, second for graphic and third for axis. I solved the paint problem with Axis, since its static and never changes, so it was quite easy to convert to paint event. On the other hand, graphs have both 2 parameters that they receive and the graph changes after that according to the values given. Example : public void JoonistaGraafik(int k1, int k2) now when I want to make it to paint event "public void JoonistaGraafik(object sender,PaintEventArgs e, int k1, int k2)" I have problem calling out in InitializeComponents(); this.GraphPanel.Paint += new System.Windows.Forms.PaintEventHandler(JoonistaGraafik(slider_a, slider_b)); the thing is that, my two values "slider_a" and "slider_b" are generated in the trackbar_scroll event and then JoonistaGraafik(slider_a, slider_b); was called out. I'm pretty bad in explaining, but I hope that made a bit sence. In conclusion, the question is, how can I call out "this.GraphPanel.Paint += new System.Windows.Forms.PaintEventHandler(JoonistaGraafik(slider_a, slider_b));" if the slider_a and slider_b values have to change when I move the trackbar. Or how can I make a paint event which gets values from trackbars (means the graphic has to update itself every time trackbar is moved). Thanks for reading, and I hope someone can help me out (again).
-
Graphs disappear from panelGod took ages to find my post .. Anyway I've made some progress and still stuck on other part. I have 3 different functions, one for graphic, second for graphic and third for axis. I solved the paint problem with Axis, since its static and never changes, so it was quite easy to convert to paint event. On the other hand, graphs have both 2 parameters that they receive and the graph changes after that according to the values given. Example : public void JoonistaGraafik(int k1, int k2) now when I want to make it to paint event "public void JoonistaGraafik(object sender,PaintEventArgs e, int k1, int k2)" I have problem calling out in InitializeComponents(); this.GraphPanel.Paint += new System.Windows.Forms.PaintEventHandler(JoonistaGraafik(slider_a, slider_b)); the thing is that, my two values "slider_a" and "slider_b" are generated in the trackbar_scroll event and then JoonistaGraafik(slider_a, slider_b); was called out. I'm pretty bad in explaining, but I hope that made a bit sence. In conclusion, the question is, how can I call out "this.GraphPanel.Paint += new System.Windows.Forms.PaintEventHandler(JoonistaGraafik(slider_a, slider_b));" if the slider_a and slider_b values have to change when I move the trackbar. Thanks, and sorry for not replying so fast.
-
Graphs disappear from panelThose are some really useful steps, I'll try to keep them in mind :D Thanks a bunch.
-
Graphs disappear from panelThanks, I'll try that out
-
Graphs disappear from panelAs a matter of fact, I'm not (and besides I'm not that familiar with C# yet :D) One of the Graphics function is here (and that is called every time I have trackBarNR_Scroll):
private ArrayList GraphPointsList2 = new ArrayList(); private void DrawGraphic2(int k3, int k4) { int i=1; int j=1; int x=0; int y=0; double value=0; double sin=0; Point GraphPoint2; System.Drawing.Graphics graph2; graph2 = GraphPanel.CreateGraphics(); graph2.SmoothingMode = SmoothingMode.AntiAlias; Pen penCurrent2 = new Pen(System.Drawing.Color.Red, 2); for(x = 0; x<GraphPanel.Width; x++) { GraphPoint2 = new Point(); GraphPoint2.X = x; sin = Math.Sin((0.01*k4)*x); value = 50*-sin+k3; y = GraphPanel.Height - (int)value; GraphPoint2.Y = y; GraphPointsList2.Add(GraphPoint2); i++; j++; } Point[] pointArray2 = ( Point[] ) GraphPointsList2.ToArray( GraphPointsList[ 0 ].GetType() ); graph2.DrawCurve(penCurrent2, pointArray2); }
-
Graphs disappear from panelHello there, First of all I know this is a question asked many times etc. But still I'm quite stuck since I haven't found an answer that would work for my case. So, my project is made in Borland (C# Builder) and consists of following: - I have a panel where graphs are generated (note: 2+ graphs) - I have sliders to change the values inside graph function (to make them longer, move them up or down, etc.) The problem I'm having is that, when I move the window out of bounds, or place another window over my graphs, they just disappear. I've read about the OnPaint, but I'm not sure how I'm suppose to add this to my code, since my graphs are updated every time trackBarNR_Scroll event occurs. Oh and finally, of course it's suppose to be a Windows Application :laugh: Hopefully someone could guide me, how to make those graphs not disappear :)