|
ziwez0 wrote: So the isssue, Ufrom1 needs to be able to access the data/controls on Uform2, I need to be able from Uform1 to update Uform2 tableadapter/controls.
I don't know whether I understood your problem correctly, How about creating a public method in uform2 which is accessible from uform1 and does the data adapter updation ?
|
|
|
|
|
There's articles here on CP on communication between forms. The short answer is, use delegates.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
No offense, but this sounds like its a bit of mess architecturally. I would recommend that you take a look at implementing a pattern like the Model View Controller or Model View Presenter, which allows you to abstract the model (data) from the view.
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
Hi to all,
Whenever i run my application i want copy the address bar contents that are appears in the address bar into a string variable.
Is there any way to accessing the contents of Addressbar into a string variable.?
Please help me...
Pravin
|
|
|
|
|
Are you talking about ASP.NET? If it's in ASP.NET, try this Request.Url;
|
|
|
|
|
Here is how you do that:
var url = window.location.href;
This question is better asked in the web development forum, though, as this is Javascript, not C#.
Experience is the sum of all the mistakes you have done.
|
|
|
|
|
I was trying to add a timer to a checked list box and all I get is a check box without any text. I also tried creating a derived class and overriding the ToString function with no help. Anyone have any ideas?
It works fine with the TimeSpan struct, but not the Timer class.
private void button1_Click(object sender, EventArgs e)<br />
{<br />
Timer t = new Timer();<br />
checkedListBox1.Items.Add(t);<br />
ListBox1.Items.Add(t);<br />
}
I want to use the List box collection to keep track of all the timers I intend to create, having the user enable and disable them with the check boxes. Is there a better way to do this? And does anyone know why this isn't working? I thought that the list box and friends just used ToString for the display values.
Thanks for you time!
|
|
|
|
|
The ListBox will only use the ToString method if FormattingEnabled[^] is set to false. By default (when controls are added to a Form), this property is set to true.
When this is true, then the ListBox uses a TypeConverter to convert from the Timer to a String, for which there is none.
Take care,
Tom
-----------------------------------------------
Check out my blog at http://tjoe.wordpress.com
|
|
|
|
|
Thank you so much! Works great now. Just wish I could have found it!
|
|
|
|
|
hello friends
I am freshers for .net, i am developing asp.net(with C#.net)project,I want detail about how to create "MENU".
srinivasan.s
|
|
|
|
|
Add a menu strip control and then add it to the form properties.
Using the GUI editor to do this I find the easiest way.
|
|
|
|
|
|
Use the Menu [^] control.
/ravi
|
|
|
|
|
i m using VB6 exe(as process) in my c# project . How can i pass a string to VB6 Process.
help as a alias.
Be happy and make others happy.Cheer up...........
|
|
|
|
|
#1. What about SendMessage? I have done sending message from one UI to another but I'm not sure about process.. you may do some research on it..
#2. What about passing things via middle layers? For example, save the string in textfile or database. then access that string from VB6.
|
|
|
|
|
thanks i will try it it is an good idea
help as a alias.
Be happy and make others happy.Cheer up...........
|
|
|
|
|
Hi all.....
Am doing a Web application. I want to copy a file from server to localdisk in web application. how is it done? is CopyTo(); is ok?
what is the format of this?
when i tried this am getting following error....
Argument '1': cannot convert from 'string' to 'System.Array'
|
|
|
|
|
P_Elza wrote: I want to copy a file from server to localdisk in web application
You can't copy files from server to local machine. You can redirect page to the file which needs to be stored, browser will open a save dialog and user can save it.
|
|
|
|
|
hi,
i am doing a project in which i have added a folder named data and a mdb file
in it so at the time of running the folder data is getting copied to debug folder and the manipulation done on the database are getting reflected in the debugs database not in the oringinal one and at the time of retrieval the data is coming from the original one
The project is working fine after deployment
so please solve this problem......
regards
sindhu tiwari
-- modified at 2:34 Monday 5th November, 2007
Always Innovative
|
|
|
|
|
Hello experts...
I include some merge modules in my VS.NET setup project 2005. I want to know answers of the following ....
1. What is the default location of merge modules...?
2. Did any previous file is over write by the installer while installing this application...?
3. If we remove the application the merge modules are remove automatically or we have to remove them...?
4. If any other application using that merge modules that what will the case...?
-- modified at 1:38 Monday 5th November, 2007
Regards
Pankaj Joshi
|
|
|
|
|
There are a lot of modules in my project. When the user runs the project, ShellForm will be displayed. There is one menu in that ShellForm. If the user clicks on that menu, 10 modules will be loaded dynamically. (so, it took a lit bit time to load all modules and UI freezes while loading. )
How to show the prograssbar while the modules is loading on demand?? OR How to load the modules dynamically without freezing the UI?
I have tried to load the modules in Asynchronous Mode but I got cross-thread error..
Thanks in advance...
|
|
|
|
|
Navigate Focus with Arrow Keys on Container
How to navigate focus using Arrow Keys only (no Tab/Shift-Tab) on following layout and in the same order
Panel mainPanel containsthe following Controls as
Panel p1 with buttons p1b1, p1b2, p1b3
Buttons b1, b2, b3
Panel p2
Panel p3 with buttons p3b1, p3b2, p3b3
ListBox L1
A screenshot of the above is available at http://img130.imageshack.us/img130/4610/btnlayoutpk1.png[^]
I understand that I need to set the tabIndex of individual Controls but dont quite figure out in which order they need to be set. Do I need to change the TabIndex of Panels or Individual Controls or both.
Any Suggestions?
Thanks...
|
|
|
|
|
I have a problem, how to implement the localization for the crystal reports in C#, there is no resource file about it, and i can not find the download link which mention in the msdn,it make me spend much time on it , if anyone have some experience about this, please give me some advice, i will feel very happy.
thanks very much.
|
|
|
|
|
hi all
i have created an application using 1.1 in c#.
probelm is that on the 1024,768 resolution and on win/xp it runs properly , but
on the same resolution on win/2000 it does not show full form. why is that ?
any solution, is win/xp 1024,768 is different from win/2000 1024/768 :P
thanks in advance
hello
|
|
|
|
|
This is not clear.
How big is the form?
Are you maximizing the form?
How big is the difference XP/2K?
Is the task bar height the same?
is the system font (family & size) the same?
is the display resolution the same? (e.g.96 dpi, see Display Properties)
how about XPthemes? is it enabled in your app, does it exist on 2K?
Luc Pattyn [Forum Guidelines] [My Articles]
this months tips:
- use PRE tags to preserve formatting when showing multi-line code snippets
- before you ask a question here, search CodeProject, then Google
|
|
|
|