|
Hello,
I'm not sure if you're using the new WebBrowser control class in .NET 2.0 or whether you are using AxWebBrowser with .NET earlier than 2.0. I'll give what I think is the solution for both of these:
For the WebBrowser class in .NET 2.0:
WebBrowser myBrowser;
...
HtmlDocument myDocument = myBrowser.Document;
String myTitle = myDocument.Title; This code in .NET 2.0 will get the value contained between the HTML tags <title> and .
AxWebBrowser control in .NET earlier than 2.0
AxSHDocVw.AxWebBrowser myBrowser;
...
HTMLDocument myDoc = myBrowser.Document;
String myTitle = myDoc.title; This code will do the same as the code above, that is, retrieve the value between the HTML tags <title> and .
Hope that helps! Let me know if that does not solve the problem and I will try to help you as best I can.
Sincerely,
Alexander Wiseman
|
|
|
|
|
Hi, Everyone
i am new to c# can anyone help me how to call a variable in Form2 which is been declared in Form1 .
Thankyou.
Regards,
Praveen
|
|
|
|
|
declare public variable in from1
|
|
|
|
|
There are so many threads about it.
please search the forum or the articles in CP, and u can be sure to find aloooooot about it.
|
|
|
|
|
declare variable to access in form1 as public and then
on form2 u can create instance of form1 like
form1 frm1 = new form1();
and can access variable
frm1.variable
or u can pass variable from form1 to form2 by changing constructor of form2
to accept variable like
on form1 whrere u are openning form2
form2 frm2 = new form2(variable);
frm2.show();
and can recieve variable on form2 in form2's constructor like this
class form2(datatype variable)
{
variable2 = variable;
}
rahul
|
|
|
|
|
to call varieable that is declared in form1 u have to declare that veriable as "public static" in form1
eg: public static int myint
and then call this variable in form2
eg form1.myint
from Aijaz ahmed
|
|
|
|
|
Hi All,
I am using HTTPHandler to process certain requests from a client machine. But whenever I try to retrieve the client ipaddress through servervariables I get my server ip address. Because client machine requests are routed through my server. Is there any other way I can get client machine IP Address?
Need help regarding this issue.
Raghu
|
|
|
|
|
string sClientIP =""<br />
sClientIP = Request.UserHostAddress();<br />
Response.Write(sClientIP);
|
|
|
|
|
hi all,i try to attach morethan 10mb files using html file field but it wont allow it.is there any way to do this?
Regards,
ayyp
|
|
|
|
|
The default maximum size for a request is 4 MB. This can be changed using a setting in web.config. I don't remember it's name right now, though.
---
b { font-weight: normal; }
|
|
|
|
|
sorry i didn't get u can u reply clearly........plz........
Regards,
ayyp
|
|
|
|
|
Translation:
da deft max sz for a req is 4 mb dis can b chng uzn a setn in web.config i dont remember its nm right now, dou
---
b { font-weight: normal; }
|
|
|
|
|
Hi
it is possible. u can attach any size.
find 1) machine.config file
open in VS IDE
Search keyword "httpRuntime", u will find at 169 line.
<httpRuntime executionTimeout="120" maxRequestLength="102400" useFullyQualifiedRedirectUrl="false" minFreeThreads="8" minLocalRequestFreeThreads="4" appRequestQueueLimit="100" enableVersionHeader="true"/>
Here
set maxRequestLength="102400"
|
|
|
|
|
thanks for u r rply
Regards,
ayyp
|
|
|
|
|
hi CP people!!!
how can you call .dll from C++ and use it on a C# program?
i really dont know how to ask this question coz i dont know very much C++ programmin, and i'm just starting to learn C#.
and just a noob question. what does .dll do and how you use it?
hope there's somebody who can help here.
regards.
thanks in advance.
in land of the idiots, the imbecile is the king.
|
|
|
|
|
So now a days CP forums are replacing text books?
Koushik Biswas
|
|
|
|
|
Hi every body ,,well i'm not an advanced developer in c# so that i realy need quick help in " how to display the mac address of a local pc to a textBox in a c# windows application form" ?????
actualy i have found a lot of articals using console application to obtain mac address but i just couldn't make any use out of it so by the way can i use data obtained in a console application to a forms application ?and how would that be?
thanks all of u for helping
Hesham Hafez
|
|
|
|
|
You get an article on the internet which shows you how to display something on the console. And you cannot get it dispplyed on a text box ?
Assign a string variable with the value and set the Text property of the textbox to that value.
Judging from your question, you should not be dealing with Mac Addresses. Try displaying Hello World first.
Koushik Biswas
|
|
|
|
|
tanks any way Koushik Biswas but that didn't help as i told u i'm not familer with c#
Hesham Hafez
|
|
|
|
|
Hi all,
I have many SQL Stored procedures that i need to run before my program start ,so i need to run them while project installation ,how can do this?
your support is highly appreciated
thank you
|
|
|
|
|
add script files to the Setup and go to lanch conditions window.
Write a VBScript Self Executable file. This vbs file will be copied along with u r project. write vbscript code to execute sql scripts.
regards
GV Ramana
|
|
|
|
|
thank you Ramana,
can u tell me how to get the SQL server name dynamically of client machine in this script
|
|
|
|
|
Hello All,
I'm in a bit of corner here, i need to inherit a c++.net class with a c#.net class
but.. i can't find any way to do this.
what i can do is inherit a c# class using a c++ class but unfortunately i need to inherit the other way round from c++ -> c#
if any one know hot to do this please help me
10X
Hadar Raz
Hadar Raz
hadar33@gmail.com
|
|
|
|
|
hadar33 wrote: I'm in a bit of corner here, i need to inherit a c++.net class with a c#.net class
but.. i can't find any way to do this.
There shouldnt be any problem. Make sure of the following:
1. Make sure the c++.net class is infact a managed class
2. Make sure its publicly visible.
Please list any specific errors you get, then we can pinpoint the propblem easier
|
|
|
|
|
Not really programming question:
When debugging in Visual Studio 6 you can skip lines of code to be executed by placing the cursor where you want to start and pressing Ctrl+Shift+F10 (can also be used to repeat the same code over and over). I`m debugging a C# program now in Visual Studio 2005 and Ctrl+Shift+F10 does not work. I can only see options to step in a function, step out or run untill the cursor, but no option to skip lines or place the cursor a few lines prior to the current... Is this option not available in C#?? If it is, can anybode tell me the shortcut-key?
Thanks,
Davy
|
|
|
|