|
You can display a web page in the "internet explorer control", and of course you can generate text and save it as a html file.
But why do you want to do it?
You can write a web application in C#, so you don't need to generate the page in a windows application.
|
|
|
|
|
Thank Kannan Kalyanaraman & Corinna John.
I do this because I have never developed any web application and have absolutely no idea what web application is like. I was thinking about trying to develop a web application, but I was told that it's complicated. Because I need to develop the server side to provide webservice.
Now what I am developing a tool to compare selected records in selected tables(could be more than 2). I already finished most of functions using Windows form. Also I have a windows form to show the compare result, highlight the difference.
Having the idea of putting the webpage in my windows application, is because I don't like the way I am doing now. If I can show the result in a webpage, then user can save it to wherever they want and also the appearance of webpage is nicer than a form.
I am new in .Net programming. So if you have any suggestion for me, please don't hesitate to tell me.
Thanks again.
|
|
|
|
|
yyf wrote:
I was thinking about trying to develop a web application, but I was told that it's complicated.
Its really easy, especially when you think about all the intricasies involved in a win app. There really is no need to make it a windows app. You'll have install, mainaining, and other problems. Design your 3 page web site in asp.net its soooooo much easier.
And dont listen to them thier probably VB programmers
nick
I'm not an expert yet, but I play one at work. Yeah and here too.
|
|
|
|
|
I forgot to mention another function in my program. It's to run one or more than one query files. Something like Query Analyzer.
I think that might help you understand why I am using windows application to do this.
|
|
|
|
|
Hi !
Please help me.
i'm trying to create a remote application. everything works fine if i copy the interface-dlls to the client computer.
BUT:
when i get them using soapsuds it doesn't work because the variablenames got somehow changed.
for example:
the property "Destination" (private: destination)
gets to destination. so the initial letter changes to lower-case.
WHY ?!?!?!?
any ideas ?
thanks very much !
|
|
|
|
|
an other interesting thing is that only the empty (standard) constructor is defined.
any other constructor gets lost.
|
|
|
|
|
I am fairly new to winforms and for some reason even though I added a 32x32 bitmap to my LargeImageList for my ListView it resizes them to 16x16 at runtime. My small icons display at the same size. The actual files are 32x32. Anyone encountered this and know how to fix it?
Matt Newman Sonork: 100:11179
"Battleship, was the first game that taught you to lie" - Zachery
|
|
|
|
|
Hi!
What should I do to create working bindable property in my custom control? I took System.Windows.Forms.Label, inherited into nLabel (numeric label) and added following code:
[Bindable(true)]<br />
public int val <br />
{<br />
get { return _val;}<br />
set { _val=value; this.Text=_val.ToString(); }<br />
}<br />
next I've bound this control and some other control to one datasource. I tried to change value, but value is locked by my control.
What is wrong?
h.
|
|
|
|
|
try return this.Text;
I'm not an expert yet, but I play one at work. Yeah and here too.
|
|
|
|
|
I'tried this one - it doesn't work (
There is really interesting event flow in the bound property. When you try to change value at bound column, property events are fired as following: GET ( ), SET, SET.
First GET destroy any data changes - because it reads from internal data of my class. This makes value "uneditable". How to detect, that data was changed externally or is it possible to not return anything from the property?
h.
|
|
|
|
|
Well it gets every second. I include a blank set set {} and this suffices for my read only
One way you might look into is
MyClassList : CollectionBase, IBindingList
MyClass : IEditableObject
Use the customer example in the IEditableObject example in msdn help within the IDE
The reason its doing this is it has to raise events notifying the control of changes.
I'm not an expert yet, but I play one at work. Yeah and here too.
|
|
|
|
|
HI!
thanks for your time and help. I tried to implement IEditableObject in my class, but these methods are not used in regular databinding. They are used in grids only.
but the most important I've found the bug:
I've made form with datagrid and nLabel connected to one datasource. I found, that they cannot be based on one currency manager. When they are on separate cm, everything works well. I've never seen similar behavior before this one. Could anybody explain it to me?
h.
|
|
|
|
|
yes they are used in datagrid or any control that uses an IBindingList
I use them for labels also
basically my class looks like
public class MyClass
{
private string s;
private MyObject i;
public string MyString
{
get { return s; }
set { s = value; }
}
public MyObject ThisObject
{
get { return i; }
set { i = value; }
}
}
public class MyObject
{
public override string ToString()
{
return "MyObject class";
}
}
if any other problems, explain a little more and I can send a prototype project to ya. I had to go trhough hell with getting my databinding to work. My classes wrap the database then bind to classes. And i perform biz rules on them so almost no code in GUI.
nick
I'm not an expert yet, but I play one at work. Yeah and here too.
|
|
|
|
|
Hi!
It seems you truly are an expert - esp. in Windows controls )
I have just one more question: How the bound property notifies datasource, that it's value has changed?
Let's imagine textbox with similar property val as in the numLabel described in my first mail. When value in datasource changes, text in textbox will change. But when user changes text in textBox, datasource doesn't change untill some other control does not refresh data. I played with control bound to dataset and datagrid which shows data from table. When I've changed value in the control, datagrid doesn't show any changes. But when I clicked on bound column in current row of datagrid, the value was read from the control. I'd like to know if there is a way to make it without clicking in datagrid - just like all MS controls do?
thanks again
h.
|
|
|
|
|
yeah I had a hard time with this also. The datagrid reacts by the underlying data source having its OnListChange event fired. This forces a refresh of the data for the grid.
You might try on either the change or leave event raising a changed event. This could possibly help in your situation. I'm a few days from this same situation in my app, so either way I will have to figure it out.
nick
I'm not an expert yet, but I play one at work. Yeah and here too.
|
|
|
|
|
Hi,
Is there a way to determine the indexes of rows that has been selected on a Datagrid in a Windows Form. I am trying to return values for what have been selected in the datagrid, but so far, I have only found the method, currentcell. Are there other events or methods I can use? Thanks in advance.
|
|
|
|
|
CurrentCell do that.So why don't you use it?
Mazy
No sig. available now.
|
|
|
|
|
Because it seems like currentcell only returns the one that is last selected. So if I highlight two rows, then it would not work.
|
|
|
|
|
|
|
I'm trying to create a remote object in a client application. It works using:
ClassRemotable ob=(ClassRemotable)Activator.GetObject(
typeof(ClassRemotable),
"tcp://127.0.0.1:8989/MyServer/ClassRemotable"); but it fails with:
object[] activationAttributes = {new UrlAttribute "tcp://127.0.0.1:8989/MyServer")};
ClassRemotable ob=(ClassRemotable)Activator.CreateInstance(
typeof(ClassRemotable),
null,
activationAttributes); throwing a System.Reflection.TargetInvocationException with the text "Requested Service not found".
Any idea why?
rechi
|
|
|
|
|
Hi.
I have a label which I would like to Databind to the count property of a rows collection in a datatable:
label1.DataBindings.Add("Text", MyDataTable.Rows, "Count");
The label gets the first time i put data into the table. But when i clear() the table and put new data into it, the label does not get the changes.
Why is that?
|
|
|
|
|
try setdatabinding maybe
I'm not an expert yet, but I play one at work. Yeah and here too.
|
|
|
|
|
no that's not it. think it has something to do with datatable.rows.count not sending notifications.... but i cant see how i can find out if it is supposed to send notifications....
|
|
|
|
|
Hi, I trying to run a registered version of WinZip 8.1 via a SOAP Service written in C# with Visual Studio 2002.
And I am trying to unzip a file on the server using a soap service call
When I take the code out of the SOAP service and try to run it on my local machine as is it works, on the server that the SOAP service is running on all I get is the executable being run in the background and only visible through the Task Manager, but no files being unzipped. The command line that I actually run does work if I run it from the command promt on the server.
sFileName = "\Temp\QNH007983.zip"
sRootFolder = "\Sat\"
Zip command being run 'winzip32.exe-e "C:\Temp\QNH007983.zip" "C:\Temp\Sat\"'
ExtractZipFile( @"\Temp\QNH007983.zip", @"\Sat");
private string ExtractZipFile(string sFileName, string sRootFolder)
{
try
{
string emuPath = "winzip32.exe";
//string emuParams = " -min -e \"C:" + sFileName+ "\" \"C:" + sRootFolder + "\""; //run minimised
string emuParams = "-e \"C:" + sFileName+ "\" \"C:" + sRootFolder + "\"";
ZipFileCall = emuPath + emuParams;
Process p = new Process();
ProcessStartInfo psI = new ProcessStartInfo( emuPath , emuParams);
psI.CreateNoWindow = false;
psI.UseShellExecute = true;
p.StartInfo = psI;
p.Start();
return sFileName;
}
catch
{
return "Failed - to save zip file";
}
}
thanks in advance
Satvinder
|
|
|
|