I have a custom user control with a textbox on it and I'd like to expose the baseline (of the text in the textbox) snapline outside of the custom control. ... |
This may seem like a dumb question. I have a textbox that can be used to add items to a checkedlistbox at runtime on a windows form. I'm using c#. It ... |
i am working with C# windows form application i developed project in that.i like to make project design into more stylish and modern.is it possible to do like this by using ... |
Ok, so I've finally come to my senses and stopped trying to reinvent the wheel whenever I see something that I think can look much better :P
How can I make the ... |
Hi I am a beginner in C programming and I have made a C program that automatically logins into a website using socket programming, particularly made for UNIX systems. I am ... |
I am an expirienced software eng. (C++ and C# , mainly algorithms) Lately , I have started using Winform. I know that WPF is more mature . My questions are 1. Is it easier to implement the GUI in WPF ? 2. How long should it take to learn WPF 3. what are the main functionalities and features , that I ... |
|
|
gave up on it I'll keep it command prompt I turned josah's helpful prime finder into a perfect number finder I wanted to use a window not command prompt but it's too complicated.( now only if I could get it to limit which ones it printed the equation for to file then I might be golden. |
i want to do the following: 1. Click a button on Main menu. 2. Close main menu ( I would use hide if possible) 3. Open form2 4. Open other forms and hide or close the previous form. \\ will not do now 5. Eventually able to go back to Main form. my main form code: public partial class EntryForm : ... |
I have an OPC server (an application server). I write this server using C++/CLI. This server contain callbacks (delegates) When the client connects to the server (enter the core of a callback function onconnectclient) I want to change the text of a text box!!! onclientcallback is defined in a seperate class called Callbacks In this class I have an attribute called ... |
|
|
Application::Run() starts a Windows program message loop. Only one of these loops is allowed per application. You can start a second application as a separate process but you can't start a process within a process. If you want a second process then call CreateProcess() from your first application. Otherwise, you will just create windows and forms using somerthing other than Application::Run(). ... |
|
Is it possible to use the System::Windows:Forms namespase in a Win32 application? I am currently working on a Win32 program, and I am able to access the System namespace, but I can't get the System::Windows namespace or other options to appear. I am using Visual Studio 2003; and I am a novice programmer. Thanks, Jody |
dear developers I'm using tab control and i have several buttons that when i click on one of the buttons a tab opens in the tab control and the form is shown .to explain my scenario better i have button A and i have formApples now when i click on button A formApples will appear in the tab control not in ... |
try { // Create a request for the URL. HttpWebRequest webRequest = (HttpWebRequest)WebRequest.Create(Program._myURL); // If required by the server, set the credentials. webRequest.Credentials = CredentialCache.DefaultCredentials; //Create POST data string postData = "Fname=test"; //Set method property webRequest.Method = "POST"; Console.WriteLine("7"); //Set ContentType property of the request webRequest.ContentType = "application/x-www-form-urlencoded"; //Protocol (tried Version10 also) webRequest.ProtocolVersion = HttpVersion.Version11; webRequest.KeepAlive = false; webRequest.ServicePoint.Expect100Continue = false; ... |
The over all goal to this windows form is to put two radio buttons and a picture box, when the user clicks on the radio button "Red" then a Red Circle Appears in the picture box, however when the user clicks "Green" then a green square appears in the picture box. I will attach my code and I will list the ... |
Hi, I have 2 header files here. one is main.h and the other is sub.h I have created a global timer1 in main.h and I am trying to enable and start the timer from my sub.h with a command button. both header files include windows form. Is there any way I can work around this? Sorry if my explanation is bad ... |
I have a windows form with something like 20 checkboxes. I have a radio button above that when set one way will check all the boxes and set another way will uncheck them all. My question is: is there a way to traverse through all the checkboxes on the form and check them in a loop? I don't want to have ... |
I just started learning C# and I think I'm picking things up fairly quickly but one thing I'm having trouble with is Windows forms. I haven't been able to find a great set of tutorials/lessons/or even a book to my liking to help me learn Windows Forms. I'm going to be working for a software company this summer doing C# development ... |
Hello, Thank you for your reply, I managed to apply the code you posted and it has not given any errors, although i have probably done it wrong. Here is some of form 1 - On line 23 i have defined the SQL string into a global variable. Then i also have on this form (i have a feeling this is ... |
you could make it a static member to a generic data class that is a member of each form, essentially making it "global" but since im not sure what yer doing, it might not be the best approach. since that seems to be a lot of overheard for 1 value to pass. |
Ok so this has been annoying me since yesterday but should be simple enough to do. If I create, say a picture box in an array, in code in Form1.h as follows: System::Windows::Forms::PictureBox^ abc and load it up with a picture and draw it to form1 through code how can I handle call backs like clicking? I know theres a PictureBox::OnClick ... |
Hello, I am fairly new to C# and I am writing a program that simulates a cricket match between two teams. So far, I have several different Windows Forms, representing, a home screen form, a form to select the teams, a form to display the team's stats, and a form to display the match screen. The program runs by creating a ... |
Hi there, I am creating a window application using C# and visual studio 2005. The problem I am having is that I have created a form with labels text boxes and buttons. In design view everything is in the right place and nothing is hidden. However when I start to build the project, 3 text boxes and their corresponding labels are ... |
I have this code: Code: using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; using MySql.Data.MySqlClient; namespace MySQLInterface { public class StartInterface : System.Windows.Forms.Form { private Button button1; public StartInterface() { Text = "Create Database"; button1 = new Button (); // SuspendLayout(); button1.Text = "Create Databse"; button1.Name = "btnCreateDB"; button1.Size = new System.Drawing.Size (72, 30); button1.Location ... |
|
This is probably really basic. And I have an idea on what to do. Just want to verify it with someone alittle more experienced in the C# language department. I have an application with 2 forms. 1 form is for sign-in to obtain user input on an ID number. When the user clicks the Go button on the form, there is ... |
I made a windows form using C++. This form has a textbox that the user enters text. The text entered is in the form of ' String_gc* '. I need to write the text into a .txt file in another location. The problem is that the fputs and write commands that I tried only use char* or String*. I need to ... |
initmouse() { // this function will initialize mouse // you have to call this function before calling showmouseptr // cause it need to know that rather environment is console or graphics. i.x.ax=0; // push 0 into ax register int86(0x33,&i,&o); // call 8086 interrupt routine return(o.x.ax); // return the output in output not needed in actual } void showmouseptr() { // this ... |
|
You have got one great book "Win32 API Programming" by Petzold this is very good for learning development of Plain win32(both C and C++) application development. Trust me you wont get very much difference ... And For Learning MFC(Advance C++ and Master Use of MACRO s) you have another good book by "Ivor Horton". But I guess MFC learning ... |
If it's MFC (or otherwise un-managed code), you can minimize an application's main window, but not a form, to the system tray. If you're talking about .Net, you have to enable the control box that contains the various window control buttons (minimize, normalize, close), which should be enabled by default for all forms. |
After your comment: Think about it. They are different operating systems. to expect a single application to work across multiple operating systems is like expecting a car to work on petrol and diesel. The only way to do that is to have a petrol generator and a diesel generator in the back of an electric car. Expensive, cumbersome, and looks/works like ... |
That's not a good idea. Unless you completely own the system (that is: the whole system is finalized to run only your specific application)an application should not modify the system behavior for things not belonging the application itself. Suppose I'm the user of your App and of 10 other app that -like yours- want their own logon screen. What ... |
|
There is a huge amount of reading there! Get a book and work through it, doing the exercises: Avoid anything with "...in 28 days" or exclamation marks in the title. Wrox do some good ones, so do Apress. It's difficult to give specific recommendations: different books cover different parts of the subject. For example, there ... |
|