Click here to Skip to main content
15,909,332 members
Home / Discussions / C#
   

C#

 
GeneralRe: validating ASP.NET Label control Pin
Dave Kreskowiak25-Jul-05 4:17
mveDave Kreskowiak25-Jul-05 4:17 
QuestionHow can I add control's icon on VS IDE's toolbox Pin
Libra25-Jul-05 0:05
Libra25-Jul-05 0:05 
AnswerRe: How can I add control's icon on VS IDE's toolbox Pin
LongRange.Shooter25-Jul-05 10:02
LongRange.Shooter25-Jul-05 10:02 
GeneralRe: How can I add control's icon on VS IDE's toolbox Pin
Libra26-Jul-05 0:21
Libra26-Jul-05 0:21 
GeneralRe: How can I add control's icon on VS IDE's toolbox Pin
Libra26-Jul-05 16:30
Libra26-Jul-05 16:30 
GeneralCall C# methods from AxWebBrowser Pin
gnjunge24-Jul-05 23:30
gnjunge24-Jul-05 23:30 
GeneralRe: Call C# methods from AxWebBrowser Pin
LongRange.Shooter25-Jul-05 10:04
LongRange.Shooter25-Jul-05 10:04 
GeneralRe: Call C# methods from AxWebBrowser Pin
malharone25-Jul-05 12:55
malharone25-Jul-05 12:55 
The IE control enables you to display a webpage. When the user clicks on a link/button that takes them to another page, an event is triggered "BeforeNavigate2".
I format my URL in the webpage according to my parsing format so i can determine if i need to display it using my application forms or through standard HTML viewer.

//***** this is the code in my HTMLViewer control which wraps the IE COM control
private void AxWebBrowser1_BeforeNavigate2(object sender, DWebBrowserEvents2_BeforeNavigate2Event e)
{
NavigationInfo ni = NavigationInfo.ParseURL((string)e.uRL);
if (ni.IsInternalURL) //
{
if (NavigationRequested!=null)
{
NavigationRequested(ni); //raise event
}
e.cancel = true;
}
}

'******* code in the form which uses the HTMLViewer control and handles the NavigationRequested event

private void HtmlViewerCC1_NavigationRequested(HTMLViewerCC.NavigationInfo ni)
{
Form f = null;
switch (ni.ObjectType)
{
case ObjectTypeCodes.Users:
f = new frmUsers(ni.Value);
break;
case ObjectTypeCodes.Company:
f = new frmCompany(ni.Value);
break;
default:
throw new Exception("Not supported");
}
f.ShowDialog();
}

GeneralDCOM Pin
sangtao24-Jul-05 23:10
sangtao24-Jul-05 23:10 
GeneralCOM registration and PInvoke Pin
gxdata24-Jul-05 22:59
gxdata24-Jul-05 22:59 
GeneralCrystal Reports -> Sorting Data Pin
Zishan Haider24-Jul-05 22:10
Zishan Haider24-Jul-05 22:10 
GeneralRe: Crystal Reports -> Sorting Data Pin
Yulianto.24-Jul-05 22:43
Yulianto.24-Jul-05 22:43 
GeneralRe: Crystal Reports -> Sorting Data Pin
Zishan Haider24-Jul-05 22:57
Zishan Haider24-Jul-05 22:57 
GeneralRe: Crystal Reports -> Sorting Data Pin
Rob Graham25-Jul-05 2:56
Rob Graham25-Jul-05 2:56 
GeneralRe: Crystal Reports -> Sorting Data Pin
Anonymous25-Jul-05 20:45
Anonymous25-Jul-05 20:45 
GeneralRe: Crystal Reports -> Sorting Data Pin
Craig G Fraser25-Jul-05 21:40
Craig G Fraser25-Jul-05 21:40 
GeneralRe: Crystal Reports -> Sorting Data Pin
Zishan Haider25-Jul-05 22:27
Zishan Haider25-Jul-05 22:27 
GeneralRe: Crystal Reports -> Sorting Data Pin
Craig G Fraser25-Jul-05 22:43
Craig G Fraser25-Jul-05 22:43 
GeneralRe: Crystal Reports -> Sorting Data Pin
Zishan Haider25-Jul-05 23:07
Zishan Haider25-Jul-05 23:07 
Generalinstalling a c# web service on the server Pin
fady_sayegh24-Jul-05 21:43
fady_sayegh24-Jul-05 21:43 
GeneralRe: installing a c# web service on the server Pin
cshaaaa24-Jul-05 21:59
cshaaaa24-Jul-05 21:59 
GeneralRe: installing a c# web service on the server Pin
fady_sayegh24-Jul-05 22:12
fady_sayegh24-Jul-05 22:12 
GeneralRe: installing a c# web service on the server Pin
cshaaaa24-Jul-05 22:37
cshaaaa24-Jul-05 22:37 
GeneralRe: installing a c# web service on the server Pin
fady_sayegh24-Jul-05 22:50
fady_sayegh24-Jul-05 22:50 
GeneralRe: installing a c# web service on the server Pin
J4amieC25-Jul-05 0:40
J4amieC25-Jul-05 0:40 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.