|
Introduction
I've got a combobox on my form which is bound to a complex data source (IList).
myCombobox.DataSource = myList;
myCombobox.DisplayMember = "LastName";
myCombobox.ValueMember = "person_id";
The combobox itself is bound to a business object
myCombobox.DataBindings.Add("SelectedValue", myBusinessObjectInstance, "person_id");
So far so good. My combobox is filled with the provided Items and when I select an item inside the combobox the value get's updated in my myBusinessObjectInstance as expected.
Problem
As far as I understand the BindingContext class it holds all bindings (controls) bound to the same data source instance, in my case myBusinessObjectInstance .
But when I ask the form for the BindingContext attached to myBusinessObjectInstance the combobox binding is missing.
What do I miss?
myMsg.BehindDaKeys = "Jerry Maguire";
|
|
|
|
|
I am trying to install .NET1.1 on Windows 98, a task which I have done quite succesfully before. This time however it fails right at the end when registering enterpriseservices.dll. A message is displayed that Regsvcs has "performed an illegal operation", and the whole installation rolls back. I have tried updating the windows installer, and running the Installation Cleanup Utility, and deleting the windows\Microsoft .net\framework folders, all to no avail. This is a brand new W98SE installation with nothing on it but VNC and ZoneAlarm.
I have found several messages on the web from people who have had this problem, but not one that satisfactorily cures it. Any suggestions would be welcome.
Dave
|
|
|
|
|
Have you installed all available patches on the Win98 box? How about MDAC 2.6, Internet Explorer 5.01, Windows Installer 2.0 and all their patches?
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
I have the latest version of the Installer (as stated), IE is at V6, MDAC at 2.81, and I've done a full Windows Update scan.
Dave
|
|
|
|
|
Not a clue. And it doesn't look like anyone else has one either.
There is a hotfix for the System.EnterpriseServices.dll (and the Thunk that goes with it), but it will only fix certain problems AFTER installation of the .NET Framework, not before.
About the only thing I could even remotely suggest is to wait for .NET 1.1 SP2. But that doesn't help you now... I'd try it on a new installation of Win98, but without installing anything else. Not even ZoneAlarm...
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
By the way, did I mention that the processor is a 486. Is it possible that this is the cause of the problem?
Dave
|
|
|
|
|
Well, the minimum is either a Pentium 90MHz, or the minimum for the O/S, whichever is higher.
I don't think a 486 qualifies...
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
I guess that's the problem then. Odd way to manifest itself, but there we are. Thanks for your help.
Dave
|
|
|
|
|
I create a thread with sub1 of form1 subs.
In sub1 i want to access to form1 controls.
but it cause InvalidOperationException error and this error description :
"Cross-thread operation not valid: Control 'Status' accessed from a thread other than the thread it was created on."
what cant id do?
hhamidreza62@yahoo.com
|
|
|
|
|
Hi,
If you running against .net 2.0 use the BackgroundWorker component to avoid this issue. Otherwise crawl trough the cp articles related to threading GUI issues.
myMsg.BehindDaKeys = "Jerry Maguire";
|
|
|
|
|
|
For MonthCalendar control, the weekday format would follow the current
culture setting of the system, I wish to change the weekday format to en-us
while the system has been set to other culture setting rather than en-us.
I've tried to change the culture of the UIThread & CurrentThread to en-us,
while the form create the instance of the MonthCalendar, but failed.
Could any one help me for this ? Thanks!
Do or do not, there is no try.
|
|
|
|
|
i have to integrate the GPS device with google earth so that when device gives longitude and latitude then automatically google earth shows that location.desparately waiting for a reply.
|
|
|
|
|
And what is the problem?
Q:What does the derived class in C# tell to it's parent?
A:All your base are belong to us!
|
|
|
|
|
the problem is that i dont know the interface of google earth to which i can integrate the GPS device.reply me if u know the google earth's interface.waiting for ur reply.
|
|
|
|
|
hello,
i hope this is the right place to post my problem,,
i'm using microsoft visual C++ 2005
i wrote the following code:
#using (System.XML.dll)
using namespace System::Xml;
int _tmain(int argc, char* argv[])
{
//check for required arguments
if (argc <2)
{
console::WriteLine("Usage :CppXmlTextReader path");
return -1;
}
try
{
//create the reader...
XmlTextReader* rdr = new XmlTextReader(path);
}
catch (exception* pe)
{
Console::Writeline(pe->ToString());
}
}
but i got the following error pointed to the first line
fatal error c1190 manage targeted code requires a ' /clr' optoin.
can any one help me to fix it ,plz?
thank u
-- modified at 14:18 Saturday 11th March, 2006
|
|
|
|
|
Hello ,
Read a article on mobile agent on code project,its wonderfull.
Also i read an article on mobile agent on MSDN
link to the article :
http://msdn.microsoft.com/msdnmag/issues/06/02/MobileAgents/default.aspx
It also conist of sample code implementation of mobile agent,it's it C#.NET
i tested the program on the LAN,but got errors like
1>No connection could be made because the target machine actively refused it
or
2>A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond
also tried between 2 PC's but got the same error.
Also i am new to .NET
can anyone help
thanking anyone in advance
karthik
|
|
|
|
|
hi all
i m power user of the computers and i want to execute the programs in vb.net but i cann't do so. visual studio.net environament gives message.
Error while running the project:unable to start debugging
Access is denied verify that you r administrator or member of debugger user group on machine you are trying to run and so on tell me what i should do where to set the persmissions of execute the programs.
ddd
|
|
|
|
|
How do I find my .Net Framework Version Number.Because I compile a console application on dos platform and I must do the csc alloy.Or if you know an other way to compile console application.
Thank you.
|
|
|
|
|
Maybe System.String.GetType().GetAssembly().Version or something?
"..Commit yourself to quality from day one..it's better to do nothing at all than to do something badly.."
-- Mark McCormick || Fold With Us! || Pensieve || VG.Net ||
|
|
|
|
|
Environment.Version[^] will return the Common Language Language Runtime version.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
System.Environment.Version Gives verion number of the framework
"I find that the harder I work, the more luck I seem to have."
|
|
|
|
|
I know that it's been a long time since this post has been posted (no pun intended) but I feel that the proper way would be to use the:
Microsoft.CSharp.CSharpCodeProvider
class. This has several methods which will compile from strings or files, you can compile any form of .NET assembly using this.
The equivalent VB is:
Microsoft.VisualBasic.VBCodeProvider
Hope this enlightens you
Ed
|
|
|
|
|
What I mean is the curent CTS lacks the ablility for a generic class to inherit a generic type
for example :
class MyClass<T> : T {
}
is not valid using curent generics.
If it would be posible where would it help ?
here an example :
class LoggedStream<T> : T where T : System.IO.Stream {
public override Flush() {
// Log stream flush
base.Flush();
}
}
usage :
LoggedStream<FileStream> s1 = new LoggedStream<FileStream>(); - can be used inplace of Filestream
LoggedStream<NetWorkStream> s2 = new LoggedStream<NetWorkStream>(); -- Same generic implementation and diferent type than LoggedStream<FileStream>();
For anyone wishing to use generics in such a way or requiring this feture there's an open sugestion on Microsoft's feedback center wich can be voted for.
<a href="http://lab.msdn.microsoft.com/productfeedback/viewfeedback.aspx?feedbackid=f2b1c45b-4be4-410d-8d4b-84315730cea6" rel="nofollow">http://lab.msdn.microsoft.com/productfeedback/viewfeedback.aspx?feedbackid=f2b1c45b-4be4-410d-8d4b-84315730cea6</a>[<a href="http://lab.msdn.microsoft.com/productfeedback/viewfeedback.aspx?feedbackid=f2b1c45b-4be4-410d-8d4b-84315730cea6" target="_blank" rel="nofollow" title="New Window">^</a>]
Thanks to the community !
-- modified at 11:16 Friday 10th March, 2006
|
|
|
|
|
Hi guys!
Is there any way I can force Visual Studio .NET 2005 to use the .NET 1.1 framework?
Best regards
Soeren
|
|
|
|