First of all, you can also use a UserControl instead of placing forms in tab pages. Also have a look at the Anchor property[^]
Obaid ur Rehman
Posts
-
[SOLVED] GUI Problem - Added Forms To Tab Control -
Using a Stored Procedure in C#When the CommandType property is set to StoredProcedure, the CommandText property should be set to the name of the stored procedure. http://msdn2.microsoft.com/en-us/library/x8ybe6s2(VS.80).aspx[^]
-
maybe someone here knowsDude, why don't you download the demo application. It will show you how to do exactly that.
-
Windows form and filesystem watcher threading issueYou might want to read this article. Hopefully it will clear up a lot of things: http://www.codeproject.com/csharp/begininvoke.asp
-
Fontstyle of a column text in a datagridviewHandle the DataGridView's CellFormatting Event and write code to change BackColor of the value of want to Highlight.
-
Is .Net programs able to be compiled into native code?Try this.
-
setupYou can make a Setup for your program by using Visual Studio. You can also use third party softwares like NSIS, InnoSetup and InstallShield etc.
-
Multilingual installer for c# applicationI don't know about if that's possible with the VS2003 setup projects but I usually use NSIS. It has multilingual support as well.
-
Smiley icon to be displayed in listbox.You can also use the ListView control.
-
Webpage loadUse
DownloadFile
method of theSystem.Net.WebClient
Class. -
How can i make exe of my appliction?An executable is made whenever you compile your application. It resides in the Debug or Release folder of your project.
-
How to solve"Cross thread operation not valid" error when programming with C#.netIf you are not using Threads then are you using Asyncronous sockets? It would help a lot if you post your code.
-
How to implement a teleprompter?You might need to apply double buffering to the form. That way it won't flicker.
-
Accessing MDI child controls under MDI applicationI don't think it would be a good idea to Access Form controls from outside the form. One of the approach you can take is define public functions in the child forms and call these from the MDI Parent.
-
Adapting form size to content sizeTry using this:
this.Size = new Size(this.Size.Width, mpPreview.Size.Height);
-
Form holdinghiremath71 wrote:
my question is unless I close the fr2 i should get acees to fr1.
Instead of using fr2object.Show() method use fr2object.ShowDialog(this)
-
3 tier architecture implementation in .netHave a look at this.
-
RemotingThe first thing that comes to my mind, if you want to do this in C# is to make a client and a server. The server being at the remote end which executes processes as instructed by the clients. Or you could use PsExec.
-
Bezier PointsWhy don't you make your own method for that. May be the following code might help. If my memory serves me correctly, I've copied this code from a book by Charles Petzold on Windows forms programming.
public void DrawBezier(Graphics grfx, Pen pen, Point p0, Point p1, Point p2, Point p3) { Point[] curve = new Point[100]; for (int i = 0; i < curve.Length; i++) { float u = (float) i / (curve.Length - 1); //Console.WriteLine(u); float y=((1-u)*(1-u)*(1-u)* p0.Y) + (3*u* (1-u)*(1-u)* p1.Y) + (3*u*u* (1-u)* p2.Y) + (u*u*u* p3.Y); float x=((1-u)*(1-u)*(1-u)* p0.X) + (3*u* (1-u)*(1-u)* p1.X) + (3*u*u* (1-u)* p2.X) + (u*u*u * p3.X); curve[i] = new Point((int) Math.Round(x), (int) Math.Round(y)); } grfx.DrawLines(pen, curve); }
-
Compiling C# to win32Yes, using this tool. But doing so is not recommended at all.