|
Hi,
I have the following problem:
I have a windows form called <customfunctions>.In the form <customfunctions> I have, among other controls, a textBox called <textboxfunction>, a comboBox called <comboboxuserfunctions> and 2 buttons called <btnsave> and <btnedit>.
In the second form, called "Save" when <btnsave> pressed and "Edit" when <btnedit> pressed, I have only a textBox called <textboxfuncname> and a button <btnok>.
Case 1: When I press <btnsave>
=============================
In the second form:
When pressing <btnok>, I want to take the text in the <textboxfunction> (this would be the function's formula) and the text in the <textboxfuncname> (this would be the name of the function) and add them to <comboboxuserfunctions>.
Case 2: When I press <btnedit>
==============================
In the second form:
When pressing <btnok>, I want to take the text in the <comboboxuserfunctions> put it in the <textboxfuncname>, where it can be changed.
When I pres <btnok> I want the <comboboxuserfunctions> to reflect the changes made, meaning that the funtion has a new name.
The big problem is that I don't know how to transfer data between forms without using IsMDIContainer Property. I don't use this property because I don't know how to make the MDIChild visible (to actually see every control on the MDIChild form).
Please help me !!! I'm in desperate search for help !
I've tried up to now all I could ever think of (obviously not enough) confused:
Cheers to all of you,
Adisor
|
|
|
|
|
This is nice. Have you actually read your own post and tried to make any sense of it? Go ahead, try it now. I'll wait...
Don't enclose anything in < and > brackets unless you want it to be treated as an HTML tag. The workaround is to check the little box under the message window that says "Do not treat <'s as HTML tags" before you click the Submit button.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Sorry I didn't realise that. Here is the previous post this time with all the names in it and no more HTML tags.
Hi,
I have the following problem:
I have a windows form called CustomFunctions .In the form CustomFunctions I have, among other controls, a textBox called textBoxFunction , a comboBox comboBoxUserFunctions called and 2 buttons called btnSave and btnEdit.
In the second form, called "Save" when pressed btnSave and "Edit" when pressed btnEdit, I have only a textBox called textBoxFunctionName and a button btnOk.
Case 1: When in the first form I press btnSave
==============================================
In the second form:
When pressing btnOk, I want to take the text in the textBoxFunction(this would be the function's formula) and the text in the textBoxFunctionName(this would be the name of the function) and add them to comboBoxUserFunctions.
Case 2: When in the first form I press btnSave
==============================================
In the second form:
When pressing btnOk, I want to take the text in the comboBoxUserFunctions and put it in the textBoxFunctionName, where it can be changed.
I want the to reflect comboBoxUserFunctions the changes made, meaning that the funtion I choose to edit has a new name.
The big problem is that I don't know how to transfer data between forms without using IsMDIContainer Property. I don't use this property because I don't know how to make the MDIChild visible (to actually see every control on the MDIChild form). When I tried using this property the MDIChil form appeared as if it were in a bucket: the MDIParent form. I've tried using BringToFront() method but it didn't work.
Please help me !!! I'm in desperate search for help !
I've tried up to now all I could ever think of (obviously not enough)
Cheers to all of you,
Adisor
P.S. Sorry once again for the mistake from the previous post. Thank you for correcting me.
|
|
|
|
|
I didnt totally understand what you are doing, but using form tag to transfer data between different form is a very common practice
|
|
|
|
|
Il y a un problème avec Cause validation que je ne comprends pas
J’ai TextBox avec un événement Validating et quand je ferme la feuille, la fermeture declenche l’événement Validating de TextBox.
J’ai mit la propriété Cause Vlaidation de la feuille en FALSE, mais ça marche toujours pas.
|
|
|
|
|
This is an English speaking board!
You might want to repost this question.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Ok
The problem is the folowing:
I have a TextBox in the form of C#. The Textbox has un event Validating where I do my code. The form is the property CausesValidation = False
I try to close the form with the Top Right X button , and the event Validating of TextBox fire. I want to know why , and how can I close the form whithout firing the TextBox Validating event
Thanks. Merci.
|
|
|
|
|
Bonjour,
C'est un forum anglophone mais je vous reponde votre question.
Si la propriété "CausesValidation" est en TRUE, quand le TextBox est en focus, les événements "Validating" et "Validated" sont declenchés. Si la propriété "CausesValidation" est en FALSE, les événements ne sont declenchés pas.
Je suis heureux de vous aider.
Andy
Human beings were not meant to sit in little cubicles staring at computer screens all day, filling out useless forms and listening to eight different bosses drone on about about mission statements. -- Peter Gibbons
|
|
|
|
|
Le problem est justement que quand je freme la feuille avec un propriété CausesValidation = False, l'evenement Validating de TextBox çe declanche quand meme
|
|
|
|
|
Does anyone know how to obtain the GUID for say a version of Excel 2003 ?
I'm building a deployment project and under my launch condition, I need to know if Excel 2003 is there. But as to date, I don't have any luck..
So, perhaps someone can shed me somelight where in the registry should i be looking at...
Stanley
|
|
|
|
|
|
Hi guys. Listen, I've got a problem:
I'm building this email server/client for a school project. I've done pretty much everything, but I've stumbled upon something. So far, I've been testing my application on localhost, so everything worked just fine, but now I've got
problems when trying to send email to an actual email address. Say it's 'abcd@yahoo.com'.
When I click Send, my program crashes. I thought that it was because I was supposed to send to the MX server, not directly to the Yahoo server, so I changed the address to 'abcd@mx1.mail.yahoo.com'. It worked ok until the RCPT TO command, at which point Yahoo's SMTP server says that the address is bad.
So in a nutshell, the problem is this: "How do you actually send email?"
What am I to do? How can I crack this? Can you suggest an alternating route?
Thanx a million.
|
|
|
|
|
Use your school's smtp host to send your mail through. It should work if your protocol is set up correctly...
|
|
|
|
|
IIRC, Yahoo's SMTP server uses ESMTP, which requires some kind of authentication.
Regards
Senthil
_____________________________
My Blog | My Articles | WinMacro
|
|
|
|
|
I have winform control where updating one property must cause another to be updated. How do I cause the propertygrid to update the associated value?
|
|
|
|
|
The answer (for my purposes):
RefreshPropertiesAttribute(RefreshProperties.Repaint)
|
|
|
|
|
Hi, i'm trying to make my program open mp3 files and play them in a program like winamp or realplayer. Could somebody help me? How can I implement it?
thanks a lot.
|
|
|
|
|
Try using the System.Diagnostics.Process namespace it contains procedures for launching external applications.
|
|
|
|
|
You should better be away from filewise operations for that. Just use some external APIs for the application you want to run (winamp, rp etc.) and use it in your application feeding the desired parameters.
|
|
|
|
|
Hello! I have a report in which i've added some columns from two tables of my database. I want to put a condition (for example to display the employees from only one departement). Can i put something like:
SELECT a.name from employees a, departments b WHERE a.id=b.id and b.dep_name="marketing".?
And where do i put that?
And something else: if i introduce the name of the departement in a textbox, can i transmite it to the crystal report? So that in the select statement i put b.dep_name='"+textfromtextbox+"'.
Thanks!
|
|
|
|
|
If I give special characters in regular exp. Its not working like:
<td><font\scolor=#FF0000>(\w*)</font></td>
The # will create problems, any idea how to do that.
I am using javascript.
http://www.priyank.in/
|
|
|
|
|
I believe you need to put a \ in front of your special character. Do a quick replace of any reserved characters to make sure they get the \.
|
|
|
|
|
|
I wrote a tool to upload file to web, but it didnt work with Unicode file. Now I think out a solution to solve that problem is: I will package a folder into a file and then I can upload it. Can we do that with C#? If yes, how can I package a folder into a file?
Who can show me how to do that?
Thank you in-advanced!
|
|
|
|
|
The only way to do that is to ZIP up the files in the folder. You can then upload the .ZIP file and have the server side unpack it, if need be. But, a better solution would probably be to fix your code that is doing the uploading.
What are you using (on both the client and server end) to handle file uploads?
If your upload code didn't work with a UniCode file, what do you think is going to happen when your try to upload binary files?
BTW, if your using ASP.NET, your question really belongs in the ASP.NET Forum, regardless of the language you wrote it in.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|