|
You need to use the WebBrowser control in your program.
CHtmlView is just a wrapper for WebBrowser control.
- Kannan
|
|
|
|
|
I get the error: The base class ' System.Windows.Forms.Form' cannot be designed.
All i do is create a new windows application in visual C# 2002, change the references path to the 1.1 dlls, ensure the System etc. references are 1.0.5, but when I try and design the form it gives me the above error.
i've can't find any service packs or updates for VS.NET 2002.
is this just a way of forcing us to upgrade to VS.NET 2003?
any tips would be much appreciated!
|
|
|
|
|
Actually, Visual Studio 2002 only targets NET 1.0 You you can not use the .NET 1.1 from within Visual Studio 2002.
To build a .NET 1.1 App you have two options:
1. Use Visual Studio to write and organize your files and then use the command line compiler on the 1.1 SDK folder to build your app (but remember that NET 1.1 introduces some code-breaking changes to NET 1.0)
2. Upgrade to Visual Studio 2003
|
|
|
|
|
thanks for confirming that. i already resorted to your option (1)
|
|
|
|
|
I am working on a .NET commandbar control. The menus are supposed to be able to scroll in pager fashion when there are too many items to fit on the screen. There are 2 different ways of doing this:
1) have the menu items in a toolbar control inside a pager-like control. (This is how the start menu does things - the menus are popups with toolbar controls on them.)
PROS: Since I'm going to have the toolbar control be able to be drawn like a menu (in other words, like a list), this would be the easiest way to do things.
CONS: This will make there be 4 windows per menu instead of 2.
2) Implement the scrolling by hand. (This is how Office does it.)
PROS: Fewer windows
CONS: Harder to implement.
Which do you think is best?
"Do unto others as you would have them do unto you." - Jesus
"An eye for an eye only makes the whole world blind." - Mahatma Gandhi
|
|
|
|
|
1)
Unless you prove to me that HWND's a scarce resource and creating / destroying them takes more than thetypical 200ms you have for user innput response.
"Der Geist des Kriegers ist erwacht / Ich hab die Macht" StS
sighist | Agile Programming | doxygen
|
|
|
|
|
Just wanting to be sure. People can be really "religious" about such things ("any good programmer knows that...[insert-pet-peeve-here]") and I wanted to be sure I was doing the right thing. I've looked it over some more, and not only would it be easier to do a toolbar/pager combination, it may actually save resources.
Thanks for your input!
"Do unto others as you would have them do unto you." - Jesus
"An eye for an eye only makes the whole world blind." - Mahatma Gandhi
|
|
|
|
|
Hi,
is there any sample information around on how to program a chart control?
Especially some information on how to program the horizontal and vertical scale would be highly appreciated
|
|
|
|
|
I believe I saw one on the main page.
<a TITLE="See my user info" href=http:
|
|
|
|
|
hmm... where? =)
I know that there are 2 sample chart controls here but both use static scales
|
|
|
|
|
i use TcpClient class to connect server,but the server sometimes shutdown.but when the server close the socket,my TcpClient class can't kown that.how can i kown the socket state when use TcpClient.
by the way.some body told me to send some bytes to server very serval seconds,if the server have nothing send back.then determin that the socket closed.i down what use this way.
i kown there is a protected property "Active",but how can i use a protected property.
|
|
|
|
|
Xytme wrote:
i kown there is a protected property "Active",but how can i use a protected property.
You need to inherit from that class, if it is not sealed. If sealed you can perhaps try getting that value with Reflection.
<a TITLE="See my user info" href=http:
|
|
|
|
|
I am calling a Java Web Service from my C# Client (WinForm) is there any way to dump the Request and Response of Soap Message? Or is there any tool which can run in background and intercept all the Soap Messages? Please share with me if anyone knows about it.
Thanks a million.
|
|
|
|
|
Hi all
Is there any way I can do this? I want to embed some debug comments, so I can see it when it decompiles.
CHeers
<a TITLE="See my user info" href=http:
|
|
|
|
|
I have a DataGrid bound to a DataSet that has 2 related tables.
I can navigate the relations from the DataGrid.
I am able to format the parent DataGrid using styles.
How can I format the child DataGrid responsible for the related table ?
Thanking you in advance,
Vlad Mihai
|
|
|
|
|
Hi,
I'm working on some encryption software and have a problem with the user interface. Some functions like asymmetrical key generation take a lot of time (up to several minutes) and I want users to be able to cancel during such functions. So when the user presses the cancel button, how can I cancel an currently running method of an object?
Another related problem is that key generation takes 100% processor time and my application doesn't handle events during that time. I know I could add System.Windows.Forms.Application.DoEvents() methods in these functions, but there has to be a better way (these functions have nothing to do with SWF and I don't really want to import the namespace everywhere).
Any ideas on how I can solve these problems?
Thanks in advance,
Daniel
|
|
|
|
|
Hmmm... this looks like a good candidate for multi-threading. Look it up on MSDN.
"Do unto others as you would have them do unto you." - Jesus
"An eye for an eye only makes the whole world blind." - Mahatma Gandhi
|
|
|
|
|
Hello,
I have a problem refreshing the contents of a DataGrid.
So I have on my Form a DataGrid called "dg".
dg is DtaBinded to a DataSet called "ds".
On the Form there is also a Button.
The Handler for this Button Updates the DataSource From the DataSet. Everithing works fine with respect to the update part, but I need to have an Empty DataGrid after this operation. (empty = remove all the data that the user inserted in the DataGrid and present him a clean one)
I try to Fiil the DataSet again (from a DataAdapter SelectCommand which does not return anything - in order to render the DataGrid empty). Then I set the DataBinding programatically but the DataGrid remains unchanged... I even call the Refresh() method... I can get rid of the Data that the user inserted...
Can U tell what am I doing wrong?
Thanking you in advance,
Vlad Mihai
|
|
|
|
|
I found the solution to the problem myself.
call the Clear() method before "ReFillling" it.
e.g.
this.adptReel.Update(this.dsInput, "tblReel");
this.dsInput.Clear();
this.adptReel.Fill(this.dsInput, "tblReel");
Hope you find it usefull.
|
|
|
|
|
Can anyone give me an idea of what their learning curve was with C# for someone with a strong C++ background already? Thanks
|
|
|
|
|
Very short, really take a look at the material available online and you will see, it shouldn't take you too long.
-Nick Parker
|
|
|
|
|
C# as a language - very low. There a re a few nifties you should know before doing serious stuff - sitting down with a C# book for an afternoon or two should give you an idea.
However, you won't be able to capitalize much prior MFC / Win32 knowledge. If you e.g. plan to do some Windows Forms aplicaiton, it will be a little PITA to hunt around the namespaces to see which class implements the funcitonality you're looking for. (There's a namespace lookup tool with the SDK, it makes things much easier) However, once you're used to it, it's ok.
"Der Geist des Kriegers ist erwacht / Ich hab die Macht" StS
sighist | Agile Programming | doxygen
|
|
|
|
|
peterchen wrote:
C# as a language - very low
Agree, as in its quick to learn, on the other hand the .NET Framework is big , I'm still finding new overlooked methods everday after a year now
I did a bit of Jaba before that, so it was is relatively easy.
<a TITLE="See my user info" href=http:
|
|
|
|
|
Yep, as mentioned the learning curve for C# is not very bad although there is tons of "gotcha"s. After working with C# for about a year I just noticed today that you cannot use static variables in methods, that have to be defined in the class.
I would recommmed you look for a good book on C# from a C++ point of view.
The .NET Framework though is the roughest part. I think there is something like 8,000 classes in the .NET Framework. It is no wonder most people are still learning.
There is also a lot of programming concepts that change. I know I used to hesitate to break things up into DLLs. Too much hassle to use all the time. Now with .NET I often break up a program into many modules that allow me to work in a more componentized method.
One last point, with .NET there are so many ways to go about doing something that I find I spend more time trying to figure out the most logical choice. It might help to do some checking into the "best practices" for coding.
Opps.. Going one more.. Now that it is frowned upon to use hungarian notation, it becomes less clear on the proper way to label things. Most of the time it is like Java where you first letter caps except for the first word. But there are several different camps on style nowadays. Some still use "m_" prefixes for member variables while others have picked up a format that reminds me of the old assembler days where they prefix member variables with a single underscore (yuck). Some use the "this." to prefix member variables in usage (I think just so that they can use the intellisense ).
The road is good once you get past the pain of letter go
Rocky Moore <><
|
|
|
|
|
The style I use, which is (or was) adopted from MS's recommended style:
Uppercase first letter of each word on method names and properties.
camelCase* local variables and method arguments.
camelCase private member-variables in a class.
If you have an abbreviation, that would normally be all capitalized and it is only 2 or 3 letters long, then only the first letter gets capitalized (to fit in with MS's naming of the Sql* and OleDb* classes). I don't always follow this one, especially when I have something like CustomerID. Putting a lowercase 'd' there just looks wrong.
No m_ or _ for private variables.
Constants/readonly variables have uppercase first letter for each word.
*camelCase means to capitalize the first letter of each word, except the first, also Java style.
Rocky Moore wrote:
Some use the "this." to prefix member variables in usage (I think just so that they can use the intellisense ).
It depends, if you have a private member variable named myVariable and you need to use that variable in a method which has a local variable or argument, myVariable . To access the private member you need to prefix the name with this. otherwise you access the argument/local variable. Typically you see this with arguments because (to me) having a local variable of the same name just seems wrong.
James
"I despise the city and much prefer being where a traffic jam means a line-up at McDonald's"
Me when telling a friend why I wouldn't want to live with him
|
|
|
|