Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 27 results for
winfrom
- Page 1
want to use custom cursor in my windows from
Programming
Software Development
15 Years Ago
by kdcorp87
… converted to .cursor file and trying o use in my
winfrom
like that [CODE] Cursor c ; public Form1() { InitializeComponent(); } private void…
A question on Winforms
Programming
Software Development
14 Years Ago
by NewOrder
….. here is my code that i try to transfer to
winfrom
: [CODE] using System; using System.Collections.Generic; using System.Linq…
Re: A question on Winforms
Programming
Software Development
14 Years Ago
by rohand
….. here is my code that i try to transfer to
winfrom
: [CODE] using System; using System.Collections.Generic; using System.Linq…
Multiple combobxes in one form
Programming
Web Development
14 Years Ago
by david081
… doing it ? also can i use/modify the code from
winfrom
application Thanks in advance [CODE] Imports System.Data.OleDb Partial…
c# Accessing dataset from multiple winforms
Programming
Software Development
13 Years Ago
by markyjj
… access a dataset in the main form from a 2nd
Winfrom
. I have created a form 1 ref but when I…
Pass some variable from winfrom to reportviewer chart
Programming
Software Development
12 Years Ago
by howard.teoh.7
May I know how to pass data from the winform to the reportviewer chart? For Example: In WinForm ---------- i wan pass the variable (string strMonth = "Month";) to the reportviewer chart In ReportVierwer Chart ---------------------- i want using the variable in the Winform Example : IIF(strMonth = "Month",Month(Fields!…
Re: Pass some variable from winfrom to reportviewer chart
Programming
Software Development
12 Years Ago
by tinstaafl
You could accomplish that by making, any variable you want to share, global. This way any object in your app can access it. This [link](http://www.dotnetperls.com/global-variable) gives a pretty example of how to do that.
Re: want to use custom cursor in my windows from
Programming
Software Development
15 Years Ago
by kvprajapati
Read this article - [url]http://www.switchonthecode.com/tutorials/csharp-tutorial-how-to-use-custom-cursors[/url]
Re: A question on Winforms
Programming
Software Development
14 Years Ago
by NewOrder
how do i pass my variables e.g. string name2.. to the text functions..so that each variables will appear in the text function?!?!? how do i interact between the winform and my code?
Re: A question on Winforms
Programming
Software Development
14 Years Ago
by rohand
Where is text function in your code ? can you please explain in detail ? [QUOTE=NewOrder;1461950]how do i pass my variables e.g. string name2.. to the text functions..so that each variables will appear in the text function?!?!? how do i interact between the winform and my code?[/QUOTE]
Re: A question on Winforms
Programming
Software Development
14 Years Ago
by ddanbe
[QUOTE=NewOrder]i know how to create buttons, text,,etc... and how to operate them.[/QUOTE] If you know all that, it should be simple. A [B]Console.WriteLine [/B]could be translated to a [B]Label[/B] A [B]Console.ReadLine [/B]could be translated to a [B]TextBox[/B]
Re: A question on Winforms
Programming
Software Development
14 Years Ago
by NewOrder
To tell you the truth, it doesnt work like that. if need a bunch of text to appear on the label, and a bunch of text on the side and a button.. it is all a mess. i dont know how to incorporate the first and the second code i posted above
Re: A question on Winforms
Programming
Software Development
14 Years Ago
by Mitja Bonca
I agree with NewOrder, your code (console`s version) is very poor, and only with that, nothing will work. For doing this kind of code, you need at least two applications, server and client. Please take a look at here how it should be done (in a very basic edition): [url]http://www.csharpfriends.com/Articles/getArticle.aspx?articleID=69[/url]
Re: A question on Winforms
Programming
Software Development
14 Years Ago
by NewOrder
okay , i am having a look at the code you sent me now
Re: A question on Winforms
Programming
Software Development
14 Years Ago
by NewOrder
okay , i am having a look at the code you sent me now How is this code so far? [CODE] using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using System.Net; using System.Net.Sockets; using System.IO; using System.…
Re: A question on Winforms
Programming
Software Development
14 Years Ago
by ddanbe
Do not use the Console class in a WindowsFormsApplication. See line 42 of your code. A TextBox or RichTextBox if you want has a Text property. Work with this property to do anything you want.
Re: A question on Winforms
Programming
Software Development
14 Years Ago
by NewOrder
the user will be typing in the Richbox. how do i obtain that data and send it by StreamWriter? i have changed the last part of my code to this!!: [CODE] private void button1_Click(object sender, EventArgs e) { // i want to get the information the user types from the richTextBox. // then i want to send …
Re: A question on Winforms
Programming
Software Development
14 Years Ago
by Mitja Bonca
Here is another example, this time its a win application. [url]http://csharp.net-informations.com/communications/csharp-multi-threaded-server-socket.htm[/url] Check the other links bellow to get all the code wanted. Mitja
Re: A question on Winforms
Programming
Software Development
14 Years Ago
by NewOrder
Mitja, i know how to build a console application.. i have one that works. what i need is to put it into that partial class so that it will print me the messages sent and received on a window in the winform
Re: A question on Winforms
Programming
Software Development
14 Years Ago
by ddanbe
Debug line 8 of your last code. Or [B]richTextBox1.Text [/B]is null, or [B]sw [/B]is null. You can only know this by checking it.
Re: A question on Winforms
Programming
Software Development
14 Years Ago
by NewOrder
okay here is my modified code using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using System.Net; using System.Net.Sockets; using System.IO; using System.Threading; namespace …
Re: Multiple combobxes in one form
Programming
Web Development
14 Years Ago
by abelLazm
Write two insert commands for combobox1 and combobox2 (for both tables) on button click.... your line number 29 and 32 tells us that combobox contain your table names is it right?
Re: Multiple combobxes in one form
Programming
Web Development
14 Years Ago
by david081
Hi parmalink Thank you for response. yes,studName is table name, i used same table name in both insert command .I dont know how to write the insert command that does not mention any table name because i want to insert into the selected table, not into the table mentioned into sql command.if there is anyway to get it to work , please help me ..
Re: Multiple combobxes in one form
Programming
Web Development
14 Years Ago
by david081
Hi - I got this from vb.net section of the same forum ,I paste it here incase someone need [CODE]cmd.CommandText = "INSERT INTO " & combobox.SelectedItem & " (<field>) VALUES ('" & textbox.Text & "')"cmd.CommandText = "INSERT INTO " & combobox.SelectedItem & " (<…
Re: c# Accessing dataset from multiple winforms
Programming
Software Development
13 Years Ago
by Mitja Bonca
One option would be to set accessor modifier of the dataSet to **public static**. Then you can access to dataSet simply ba Form name, like: class MyClass { public static DataSet myDataSet; } class MyOtherClass { void MyMethod() { DataSet ds2 = MyClass.myDataSet; } } Next option would be (not…
Re: c# Accessing dataset from multiple winforms
Programming
Software Development
13 Years Ago
by markyjj
Thanks for the reply. I have tried your first solution and this seems to have worked thanks very much. I have made the dataset public static and created a method in the 2nd form and passed a reference from the main dataset to another dataset in the method. Thanks again for your help
Re: c# Accessing dataset from multiple winforms
Programming
Software Development
13 Years Ago
by Mitja Bonca
Anytime. But remember, marking members as static, this means they stay in the memory as long as an application is alive. Personally I would avoid using static members, and rather choose 2nd option I gave you. Just for you notice. ps: if issue has been resalved, please mark the thread as answered. thx bye
Search
Search
Forums
Forum Index
Hardware/Software
Recommended Topics
Programming
Recommended Topics
Digital Media
Recommended Topics
Community Center
Recommended Topics
Latest Content
Newest Topics
Latest Topics
Latest Posts
Latest Comments
Top Tags
Topics Feed
Social
Top Members
Meet People
Community Functions
DaniWeb Premium
Newsletter Archive
Markdown Syntax
Community Rules
Developer APIs
Connect API
Forum API Docs
Tools
Backlink Auditor
Legal
Terms of Service
Privacy Policy
FAQ
About Us
Advertise
Contact Us
© 2025 DaniWeb® LLC