|
Thank you dear LoneFerret
I think your brain is quite fast as compare to mine
actually i am new to C# using VS.Net 2003. I want to embed Web Browser Control but don't know how. Please tell me how i can do that.
Thanksssss.
|
|
|
|
|
Drop it on the form from the toolbox.
|
|
|
|
|
I have added Web Control from components but it is in disabled form.
|
|
|
|
|
As edboe elegantly put it [no offence], that's how you do it.
The same way you would add a button, listview, or anything else from the tool box.
Once you've added the control, you better read-up on the documentation on how to use it.
It's a pretty straight foward control.
Have fun...
LoneFerret
______________________________________
Cross my heart, smack me dead...stick a lobster on my head.
|
|
|
|
|
Web Control in toolbox is not in enabled form
|
|
|
|
|
Hi everybody,
I am stucked with a small problem. Please help me.
I want to know that original path of the directory mapped to my system.
Let me explain you more clearly
Imaging "worker" folder on System1 is mapped to System2 as "N" drive and from System2 user can see the folder as N:\\worker. I want to know the original path of worker folder on system1 like if worker folder is in C drive then "C:\\worker"
Let me know if you want some more info.
Thanks,
Azghar
If you have faith in the cause and
the means and in God, the hot
Sun will be cool for you.
|
|
|
|
|
From System2, there is no way to determine what that path is.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
You can determine it from System1, eg. "net share", so you might also be able to somehow do it from System2 with WMI, but I'll leave the details of that to you.
|
|
|
|
|
! You're right! So long as the user that's running the code has the appropriate permissions on the server machine, the code can use WMI to enumerate the Shares on the server.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
Can you show may sample program of WMI....
If you have faith in the cause and
the means and in God, the hot
Sun will be cool for you.
|
|
|
|
|
Hi all,
i have the following problem...
i want to send a html document directly to the printer and it should print without user input. I can send it to the printer with this...
Process myProcess = new Process();<br />
myProcess.StartInfo.FileName = "C:\\TestPage.HTML";<br />
myProcess.StartInfo.Verb = "Print";<br />
myProcess.StartInfo.CreateNoWindow = true;<br />
myProcess.Start();
BUT this opens a window with the printers found and waits for user to select the correct printer. I have saved the preferred printer name that the user selected in our database and i want to use that printer. Would any one please give me nudge in the right direction.
Thank you in advance...
"Many of life's failures are people who did not realize how close they were to success when they gave up." Thomas A. Edison
|
|
|
|
|
Try changing the verb to "printto" instead. Then set the Arguments property like this:
Process myProcess = new Process();
myProcess.StartInfo.FileName = "C:\\TestPage.HTML";
myProcess.StartInfo.Verb = "printto";
myProcess.StartInfo.Arguments = "printer name";
myProcess.StartInfo.CreateNoWindow = true;
myProcess.Start();
I haven't tested this, so it'll probably take some tweaking to get it right.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
Thanks, i'll give it a try.
Thank you for your time.
Enjoy the rest of your day.
"Many of life's failures are people who did not realize how close they were to success when they gave up." Thomas A. Edison
|
|
|
|
|
i've tried it but without much success. i've played around with it but no luck yet. Is the name for the printer i have saved correct? "HP-Color Inkjet CP1700" this is the printer i saved but is this the name format i need? or do i need some sort of printer id? also, i tried to print a word document in this manner but this failed as well. "Run-Time error: '1120' There is a printer error" That is why i asked if there is a problem with the name as i have it saved... i have the printer name saved.
"Many of life's failures are people who did not realize how close they were to success when they gave up." Thomas A. Edison
|
|
|
|
|
Hi, I m creating an application in C#, its a windows application. In this application i have one webform which i want to create as a pop up for windows.
Like this window will be pop up after few minutes lets say 2 minutes.
I want to make this popup, suppose if i m busy with other works it will show the popup after given time at my desktop.
Can any body help me with this..
If you people doesnt understand my question plss free to ask me...caus its really very urgent..
PLSS GUYS/GALS HELP ME..
|
|
|
|
|
Are you basically talking about putting functionality in your app like a screensaver?
|
|
|
|
|
|
a sort of...i m asking about the functionality like the antivirus softwares alerts that they show...I mean it ask after how long u want to display messagel lets say 2 days..so it shows u a pop up or a reminder after 2 days..
so how i can create this thing..
NEED HELP....
|
|
|
|
|
Add a Timer
Let the user determine when to show popup.
Set the time duration.
When the timer fires, open your new (popup) form
|
|
|
|
|
Hello,
I need of a help with Custom DataBinding
I'd created 3 Persistent objects
- CVObject (Business Object Base)
- CVObjectCollection (Collection of CVObject)
Implements ICollectionBase, IBindingList
- CVDataSource (DataSource to my Business Object)
Implements IListSource
GetList returns a CVObjectCollection
In CVDataSource, I have a method called Append()
these method create my CVObject instance and set a flag(isAddNew) to true, calling BeginEdit(), and adding my object in CVObjectCollection.
<br />
private CVObjectCollection objectsList;<br />
<br />
public void Append()<br />
{<br />
object obj = Activator.CreateInstance(ObjectType, new object[] {true});<br />
_currentIndex = (objectsList as IList).Add(obj);<br />
this[_currentIndex] = obj;<br />
(obj as IEditableObject).BeginEdit();<br />
}<br />
I have in CVDataSource too the method Save()
<br />
public void Save()<br />
{<br />
CVObject obj = (CVObject)listaObjetos[_currentIndex];<br />
(obj as IEditableObject).EndEdit();<br />
}<br />
The Binding is working perfectly, but I would like of implement a custom save method to my CVObject.
Example:
In my forms I have two TextBoxes Control (txtCode, txtDescription) and two Buttons Control (btnNew, btnSave).
private void btnNew_Click(object sender, System.EventArgs e)
{
this.myDataSource.Append();
}
private void btnSave_Click(object sender, System.EventArgs e)
{
this.myDataSource.Save();
}
What I wanna to do is following:
First: When CVDataSource to call the Append() method, to create a new object and to grant to the TextBoxes new values, as such as, blank values.
Second: When CVDataSource to call the Save() method, to save new object updated to BD.
The problem: When I call the Append() method the object, it's added correctly to collection, but the binding controls do not receive the new object.
I searched in internet by google and too in msdn library but, I not found some implementation to .NET Framework 1.1 version. I readed about PropertyChanged but, it is only in Framework 2.0, and the others implementations that I found, say to handle a Custom PropertyChanged in each Business Class derived from CVObject, but I dont wanna to do thus. I would like of use the Business Class just to mapping and to centre anything in my Base Object (CVObject), including the Custom PropertyChanged...
Someone can help me?
Leo
|
|
|
|
|
Is it possible to build your application so that a referenced .dll file is merged with the .exe? I have used a component in my project which states I may not include the component as a .dll file when I release my program.
If this cannot be done, what is the way to use a component without including the dll file as a separate component?
Thanks.
|
|
|
|
|
There's normally a reason why you can't include the DLL when you release your program. It's generally called the License agreement.
Arthur Dent - "That would explain it. All my life I've had this strange feeling that there's something big and sinister going on in the world."
Slartibartfast - "No. That's perfectly normal paranoia. Everybody in the universe gets that."
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
Sorry kinda new to this, so if i use a component from a third party .dll file, how do i build the program without including the dll file, and still have it run correctly?
|
|
|
|
|
If their license prohibits you from redistributing it you can't, or you require that all the people who use your application must buy the component. That's probably not going to fly.
Alternatively, use a component that does what you want that you can redistribute.
Which component is it?
Arthur Dent - "That would explain it. All my life I've had this strange feeling that there's something big and sinister going on in the world."
Slartibartfast - "No. That's perfectly normal paranoia. Everybody in the universe gets that."
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
It's the free GraphicsServer.NET graphing component which came as a registered benefit from registering Visual Studio Express.
Here's the important part of the EULA for reference
"Your license rights include the right to perform this compilation and to distribute User Applications, provided (a) you do not distribute the source code for the User Application,(b) you do not distribute, bundle, wrap or subclass the Software, and as a component, which, when used in a Design Time development environment exposes the programmatic interface of the Software,"
So is my only option to find another component (ie. opensource)?
Thanks
|
|
|
|