|
Hi,
Thanks for ur information.
Suppose I want structure(struct) data type which is used accross all the files in the project ...what should I do?
Thanks and Regards,
Subbu
|
|
|
|
|
Put it in the namespace in the class file.
---
b { font-weight: normal; }
|
|
|
|
|
Hi all,
i have a program which is using AxWebBrowser. It was working well under .net framework 1.1. But after upgrading .net framework 2.0, at SOME systems, i receive the error below:
System.Runtime.InteropServices.COMException (0x80004005): Error HRESULT E_FAIL has been returned from a call to a COM component.
at SHDocVw.IWebBrowser2.Navigate(String URL, Object& Flags, Object& TargetFrameName, Object& PostData, Object& Headers)
at AxSHDocVw.AxWebBrowser.Navigate(String uRL, Object& flags, Object& targetFrameName, Object& postData, Object& headers)
does anyone know why it occurs, and how can i fix that problem?
thanks.
ozgur.nevres
|
|
|
|
|
On these "SOME" systems, do they have IE 6.0 SP1 or greater installed? Under .NET 1.0 and 1.1, only IE 5.0 was required. This changed to IE 6.0 SP1 under .NET 2.0.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Thank you, i'll ask it to our clients. But one of our client who is getting this error, has aldready installed ie7.0 Beta. Does it cause the same problem?
ozgur.nevres
|
|
|
|
|
You'll have to test it.
But that's when you tell the customer that since IE7 is a Beta product, you won't support that configuration. After all, how can you support your application when a component that it needs is not stable.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
"But that's when you tell the customer that since IE7 is a Beta product, you won't support that configuration."
it is not easy as you say
But now i am using .net2.0's WebBrowser component and it is working without a problem.
Thanks for your care
ozgur.nevres
|
|
|
|
|
Mertli Ozgur Nevres wrote: it is not easy as you say
Sure it is! You tell them that your code will be tested and supported when IE7 is released. You can't be held responsible for any performance or stability issues because they're using unstable and unsupported software from another manufacturer that your code depends on.
If your customer insists on using it with IE7, they're on their own. You tell them what the terms of support are. They don't get to dictate that to you because, after all, they're not writing the code, you are.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
I have a Windows Forms app in which I execute a SQL statement using SQLDataAdapter. I want the user to be able to kill the SQL statement if it seems to take to long. My thought is to execute the SQL in its own thread. Then when the user clicks a Cancel button it just stops the Thread.
Is this the best way to do this? Will it work? Is is inefficient?
Thanks,
Mark Mokris
|
|
|
|
|
Use the SqlDataAdapter in a thread, as you suggested, but I would add a twist. Instead of calling Thread.Abort() to terminate the thread, have your thread read small chunks of data at a time, and check for a flag telling it to stop between reads. Doing it this way, you could even have a progress bar in your main window showing the progress to the user.
--------
"I say no to drugs, but they don't listen."
- Marilyn Manson
|
|
|
|
|
As someone suggested to me on here yesterday, you might want to look into System.ComponentModel.BackgroundWorker as an alternative. I haven't used it myself, I stuck to threads because it's what I know much more of anyway but it might be worth looking into yourself.
|
|
|
|
|
Can any body help me
I was created one Web Custom Control named WebCustomControl1. I was added the methods called Text, Value, AutoPostBack and compiled. It created as WebCustomControl1.dll.
I opened new web project and copied that WebCustomControl1.dll into the bin folder and added to the ToolBox. Dragged and dropped to the WebForm1.aspx and renamed as wc, and added notmal command button to the page. in the button click event i had written the code like
Response.Write(Request["wc"].ToString());
while executing the line of code it is giving error like Object reference not set to an instance of an object. How can i get the Request of WebCustomControl value from the web page.
Regards
Subbaraju
m.s.raju
|
|
|
|
|
You need to call the constructor of your object. You can't call instance methods or set properties to a null object. So for example:
WebCustomControl1 wcc = new WebCustomControl1();
|
|
|
|
|
Hi,
Does anyone know how I would go about creating a .NET class library that is reentrant between multiple
applications? I need to use this mechanism to "share data" between applications on the same PC. Basically I need to ensure that all applications are using the one and only instance of the DLL. In the "old days" I would have written a reentrant DLL. What is equivalent in .NET? From digging around on MSDN I think I would create a singleton class and use remoting to access it or am I talking nonsense?
Cheers
alan
|
|
|
|
|
objectiveal wrote: From digging around on MSDN I think I would create a singleton class and use remoting to access it
Yep, that's exactly what you would use! More information can be found here[^].
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
|
Thanks guys,
I now have an object that is being used remotely (although on the same PC) via 2 client programs. I am calling methods, setting properties and receiving events from the shared object.
However, what I now need to know is - is this object "thread/process" safe. At the moment I am not using Locks or Monitors or anything on my shared object methods. If I want to make my object "thread/process" safe do I need to implement this or does the remoting architecture automatically take care of this?
Thanks again.
|
|
|
|
|
|
leppie, could you be a little more specific? You just want to display a specific menuitem in a certain location?
|
|
|
|
|
Nick Parker wrote: could you be a little more specific?
Like popping up the File menu, as if you would click it, but I wanna call it from say a button click or some other handler. I am trying to implement some functionality like menu accelerators without using the Mnemonic property. I just want to show a specific menu.
xacc.ide-0.1.2.6 New syntax highlight screenshots of xacc.ide
|
|
|
|
|
Gotcha, one solution would be to use an empty context menu as a container, and where ever you want to invoke your parent menu, simply merge the menu items into the context menu, which you can call the Show method of the context menu, associate it to a specific control and give the Point at which you want it to be displayed.
|
|
|
|
|
Nick Parker wrote: which you can call the Show method of the context menu, associate it to a specific control and give the Point at which you want it to be displayed.
The problem is where do u make that Point? Maybe a SendMessage will have an answers. I really dislike this native control layers they have...
xacc.ide-0.1.2.6 New syntax highlight screenshots of xacc.ide
|
|
|
|
|
I have written a program that access an sql server 2000 database installed on a windows 2003 server machine. Sql server is setup with integrated security and i don't want to change this. if i install my app in a computer that is a member of the domain and logins windows with the credentials of a windows server user account works good. Is there anyway from a computer that is on the same network that logins using a local windows account and does not have access to network resources access sql server? the result i want to have is :asking username and password for a windows 2003 server user account within my app and authenticate the user against windows server when the user wants to access the db.
Thanks in advance
From Greece:
Dimitris Iliopoulos
dimilio@yahoo.com
|
|
|
|
|
Hi, I have a principal class with properties and a GUI form. The menu on the form allows the user to pull-up a second form to input property values. How can I transfer the property values (text-box inputs) from the second form to the properties of the first class.
I've tried from the principal class (in menu-event code)
Form_params fp = new Form_params();
fp.ShowDialog(this);
so I pass 'this' to the next class. Is this right and how do I access the handle in the second class?
Thanks,
-Jay
|
|
|
|
|
Your description is confusing to say the least.
Are you saying the you want to show a second form that has a bunch of TextBoxs and you want to apply the values of these TextBox to the properties of your first Form???
Easy enough. Expose the vluaes of the TextBox's as Public Properties on your second form. Get the values using these property accessors and assign them to the properties of your form.
Form2 f2 = new Form2();
f2.ShowDialog();
this.Text = f2.TextValue;
public class Form2 : blah
{
public string TextValue
{
get
{
return this.TextBox3.Text;
}
}
}<pre>
Form Handles will have nothing to do with this at all.
RageInTheMachine9532<font size="-1">
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome</font>
-- modified at 11:14 Tuesday 7th February, 2006
|
|
|
|