|
I have some javascript with activeX object. For setting parameter value of this activex object this code is used:
ObjectCache = new ActiveXObject("Shell.ObjectCache");
ObjectCache("variableName") = "value";
How can I write my assembly that will work with code above?
I know that assembly uses default method if this helps.
|
|
|
|
|
The ShowDialog(IWin32Window) may take a Form object instance as its parameter.But the Form doesn't implement IWin32Window interface.
Anyone can explain it?
Thank you very much!
|
|
|
|
|
Form class inherits from ContainerControl class which inherits ScrollableControl which in turn inherits from Control which ...
I hope you can continue from here and find out answer to your question
|
|
|
|
|
Thank you very much for so quick reply!
|
|
|
|
|
You are welcome
|
|
|
|
|
You're saying that the Form class doesn't implement the IWin32Window interface?? Uhh, yes it does. Form gets it from the Control class that Form (eventually) inherits from. Here's the entire inheritance tree for Form:
Class Object
Class MarshalByRefObject
Class Component (IComponent, IDisposable)
Class Control (IOleControl, IOleObject, IOleInPlaceObject,
IOleInPlaceActiveObject, IOleWindow, IViewObject, IViewObject2,
IPersist, IPersistStreamInit, IPersistPropertyBag, IPersistStorage,
IQuickActivate, ISupportOleDropSource, IDropTarget, ISynchronizeInvoke,
IWin32Window, IArrangedElement, IBindableComponent,
IComponent, IDisposable)
Class ScrollableContainer (IArrangedElement, IComponent, IDisposable)
Class ContainerControl (IContainerControl)
Class Form
|
|
|
|
|
Dave ,thank you very much for so clear explanation!
|
|
|
|
|
Dear All:
How to set the background color of the Scrollbar of DataGridView with C# in the WinForm ?
Many thanks!
|
|
|
|
|
You don't. They're drawn using the system colors. There is no direct way to change the scroll bar colors since the DGV class doesn't expose any properties to change this.
|
|
|
|
|
hi
i need login form coding in c# i.e in web applicatio
|
|
|
|
|
can you elaborate it in little detail?
There is login control provided in ASP.NET 2.0.You can use it if it suffice.
Cheers!!
Brij
|
|
|
|
|
|
sanddepnamburi wrote: i need login form coding in c# i.e in web applicatio
nice to know that
dhaim
ing ngarso sung tulodho, ing madyo mangun karso, tut wuri handayani. "Ki Hajar Dewantoro"
in the front line gave a lead, in the middle line build goodwill, in the behind give power support
|
|
|
|
|
It's pretty straightforward. Make a form, add the necessary controls, query the database against what the user has entered in the textboxes, ... What else you need?
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
"Not only do you continue to babble nonsense, you can't even correctly remember the nonsense you babbled just minutes ago." - Rob Graham
|
|
|
|
|
|
login with the use of sql store procedures.
nelsonpaixao@yahoo.com.br
trying to help & get help
|
|
|
|
|
Hi,
Iam writting a c# DLL for users login. Here i need to get the machine name of the client who is accessing my class. In case if we are designing a website we can write the following code to get the machine name
string[] aStrComputerName = System.Net.Dns.GetHostEntry(Request.ServerVariables["remote_addr"]).HostName.Split(new Char[] { '.' });
string strMachineName = computer_name[0].ToString();
But I cant use this code in C# class because Request.ServerVariables is not supported in c# class.
Can any body help me to solve this problem.
Its Very urgent. Thanks in Advance.
Regards,
Suresh Kumar G
|
|
|
|
|
You can use Environment class.
surigu wrote: Its Very urgent.
It's urgent only for. CP members don't reply to posts based on how urgent it is. They just want to share their knowledge and help newbies so it really doesn't make difference if it's urgent for you or not.
|
|
|
|
|
You can access the server variables using HttpContext.Current.Request.ServerVariables .
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
float num = 18.3f;
This above stmt will run,But I read in a book that "if 18.3
taken as a double, so you would get a compiler error saying that a double cannot be implicitly converted to a float. Adding the f to the end of 18.3 does an explicit conversion."....But how is that possible?If we can cast Double value to int then why not convert Double to float? (Float is almost double ,right?)
|
|
|
|
|
If any value cannot be expressed fully with no loss when converted (i.e. 3.3 as an int is 3 so we lose .3), then it should use Explicit conversion. If however, if it will be identical when converted it should use explicit implicit 3 as a double still == 3).
DaveBTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)Visual Basic is not used by normal people so we're not covering it here. (Uncyclopedia)
|
|
|
|
|
In this case you're not casting; casting would be float num = (float) 18.3; which would also work, but it still has to be done explicitly just as it would be for double-to-int.
|
|
|
|
|
18.3f is not a cast or a conversion it just tells the compiler to treat the literal as a float instead of a double.
Need software developed? Offering C# development all over the United States, ERL GLOBAL, Inc is the only call you will have to make.
Happiness in intelligent people is the rarest thing I know. -- Ernest Hemingway
Most of this sig is for Google, not ego.
|
|
|
|
|
madeline_veda wrote: Float is almost double ,right?
Good for memorable quotes [^].
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
Thanks Buddies!I have very well understood the logic.Hope in future U all will help me like this.
|
|
|
|