Search the web
Sign In
New User? Sign Up
CSharpNET · C# .NET (C-Sharp) Developers' Group
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Want your group to be featured on the Yahoo! Groups website? Add a group photo to Flickr.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Messages 19698 - 19727 of 19727   Oldest  |  < Older  |  Newer >  |  Newest
Messages: Show Message Summaries   (Group by Topic) Sort by Date ^  
#19698 From: Dan Fat <dan_fat83@...>
Date: Tue Nov 3, 2009 2:28 pm
Subject: Re: [C#.NET] Need to draw line
dan_fat83
Offline Offline
Send Email Send Email
 
Hi.
The option for this is to create your custom control that will be repainted as
line.
Then create events for the control so it behaves the way you want to.
Happy coding !


With regards,
Dan Fat



________________________________
From: mahfouz sayed <mahfouz_sayed@...>
To: CSharpNET@yahoogroups.com
Sent: Tuesday, November 3, 2009 13:20:05
Subject: [C#.NET] Need to draw line


Dear Friends ,

I have one application  in need user to select line and draw inside form

after he draw one line , he can move this line in the form or select the line
and delete .

how can i do this

Regards ,
Mahfouz Sayed

[Non-text portions of this message have been removed]





       New Email names for you!
Get the Email name you&#39;ve always wanted on the new @ymail and @rocketmail.
Hurry before someone else does!
http://mail.promotions.yahoo.com/newdomains/aa/

[Non-text portions of this message have been removed]

#19699 From: mostafa goher <mostafa_goher@...>
Date: Tue Nov 3, 2009 7:06 pm
Subject: Re: [C#.NET] Need to draw line
mostafa_goher
Offline Offline
Send Email Send Email
 
this is a simple code to draw line
Graphics
grf.DrawLine(
u can use it to do what u want
goher




________________________________
From: mahfouz sayed <mahfouz_sayed@...>
To: CSharpNET@yahoogroups.com
Sent: Tue, November 3, 2009 3:20:05 AM
Subject: [C#.NET] Need to draw line

 
Dear Friends ,

I have one application in need user to select line and draw inside form

after he draw one line , he can move this line in the form or select the line
and delete .

how can i do this

Regards ,
Mahfouz Sayed

[Non-text portions of this message have been removed]


grf = this.CreateGraphics();newPen(Color.CornflowerBlue, 10), 0, 0, 100, 100); 




[Non-text portions of this message have been removed]

#19700 From: SUBHRA SANKHA DHUR <subhra.btech_4u@...>
Date: Tue Nov 3, 2009 1:05 pm
Subject: Re: [C#.NET] Need to draw line
subhra.btech_4u
Offline Offline
Send Email Send Email
 
Is it an web based application. If so, Its better to use javascript.
But as per my experience it is not a good proffesional approach. Best way is to
use flash actionscript.
 
If you are developing an exe application, use can use system.drawing and its
namspaces to inherits the pen and drawing tools. It is an interesting one.
 
Thanks


 
SUBHRA SANKHA DHUR
B.Tech (Electronics & Communication)
Team Leader
--------------------------------------------------------
 
BAAK Technology Pvt Ltd
Mobile: 9903154554
www.baakindia.com
www.sigmabit.com
 

--- On Tue, 3/11/09, mahfouz sayed <mahfouz_sayed@...> wrote:


From: mahfouz sayed <mahfouz_sayed@...>
Subject: [C#.NET] Need to draw line
To: CSharpNET@yahoogroups.com
Date: Tuesday, 3 November, 2009, 4:50 PM


 



Dear Friends ,

I have one application in need user to select line and draw inside form

after he draw one line , he can move this line in the form or select the line
and delete .

how can i do this

Regards ,
Mahfouz Sayed

[Non-text portions of this message have been removed]

















       Connect more, do more and share more with Yahoo! India Mail. Learn more.
http://in.overview.mail.yahoo.com/

[Non-text portions of this message have been removed]

#19701 From: oS <ntfirewall@...>
Date: Tue Nov 3, 2009 6:22 pm
Subject: getting root drive
artificial_net
Offline Offline
Send Email Send Email
 
Hi

I like to know how to get the drive on which my application will be running

so if i run the app from d:\abc\xyzz\asd\my.exe

i would like to get the "D:"

Thanks


[Non-text portions of this message have been removed]

#19702 From: "Rob Richardson" <Rob.Richardson@...>
Date: Wed Nov 4, 2009 2:55 pm
Subject: RE: [C#.NET] Need to draw line
interrobang
Offline Offline
Send Email Send Email
 
Keep in mind that the original poster doesn't just need to draw a line.
That would be easy.  He needs to be able to click on or near the line
and have the line be selected.


Robert D. Richardson
Product Engineer Software

RAD-CON, Inc.
TECHNOLOGY: Innovative & Proven
Phone : +1.440.871.5720 ... ext 123
Fax:  +1.440.871.2948
Website:  www.RAD-CON.com
E-mail:  rob.richardson@...

#19703 From: mahfouz sayed <mahfouz_sayed@...>
Date: Thu Nov 5, 2009 11:27 am
Subject: Re: [C#.NET] getting root drive
mahfouz_sayed
Offline Offline
Send Email Send Email
 
Hi

you can write this code to get the full path for application

string path  = Application.ExecutablePath;


then you will write this code to get the drive letter


string driveLetter = path.substring ( 0 , path.indexof(":") );




________________________________
From: oS <ntfirewall@...>
To: CSharpNET@yahoogroups.com
Sent: Tue, November 3, 2009 9:22:36 PM
Subject: [C#.NET] getting root drive


Hi

I like to know how to get the drive on which my application will be running

so if i run the app from d:\abc\xyzz\ asd\my.exe

i would like to get the "D:"

Thanks

[Non-text portions of this message have been removed]







[Non-text portions of this message have been removed]

#19704 From: ahmed abdelwahab <ahm_hefni@...>
Date: Mon Nov 9, 2009 4:14 am
Subject: Re: [C#.NET] Need to draw line
ahm_hefni
Offline Offline
Send Email Send Email
 
Dear Mahfouz
if you want it a desktop application"C#"
you can use drawing library to draw the line
and you need three event "Form1_Mouse......."
mouse down
mouse up
mouse move

int i=0;
int j=0;
bool flag = false;

mousedown(sender,e)
{
i=e.x
j=e.y
flag = true;
}

mouseup
{
flag = false
}

mousemove(sender,e)
{
if(flag)
drawline(i,j,e.x,e.y)
}

then  you need to save the point and if you click any point you ask if the point
is related to the line



________________________________
From: mahfouz sayed <mahfouz_sayed@...>
To: CSharpNET@yahoogroups.com
Sent: Tue, November 3, 2009 1:20:05 PM
Subject: [C#.NET] Need to draw line


Dear Friends ,

I have one application  in need user to select line and draw inside form

after he draw one line , he can move this line in the form or select the line
and delete .

how can i do this

Regards ,
Mahfouz Sayed

[Non-text portions of this message have been removed]







[Non-text portions of this message have been removed]

#19705 From: "mneale1" <mneale1@...>
Date: Tue Nov 10, 2009 3:40 pm
Subject: Re: [C#.NET] getting root drive
mneale1
Online Now Online Now
Send Email Send Email
 
Also if you are on your web page you could use

path = Page.Request.MapPath("/");

and then parse out the first drive letter as in the previous post.

M.

#19706 From: mahfouz sayed <mahfouz_sayed@...>
Date: Wed Nov 4, 2009 7:12 pm
Subject: Re: [C#.NET] Need to draw line
mahfouz_sayed
Offline Offline
Send Email Send Email
 
Dear Dan ,

thank you for reply .

Can you give me sample code for this control

Regards ,

Mahfouz sayed



________________________________
From: Dan Fat <dan_fat83@...>
To: CSharpNET@yahoogroups.com
Sent: Tue, November 3, 2009 5:28:31 PM
Subject: Re: [C#.NET] Need to draw line


Hi.
The option for this is to create your custom control that will be repainted as
line.
Then create events for the control so it behaves the way you want to.
Happy coding !

With regards,
Dan Fat

____________ _________ _________ __
From: mahfouz sayed <mahfouz_sayed@ yahoo.com>
To: CSharpNET@yahoogrou ps.com
Sent: Tuesday, November 3, 2009 13:20:05
Subject: [C#.NET] Need to draw line

Dear Friends ,

I have one application  in need user to select line and draw inside form

after he draw one line , he can move this line in the form or select the line
and delete .

how can i do this

Regards ,
Mahfouz Sayed

[Non-text portions of this message have been removed]

New Email names for you!
Get the Email name you&#39;ve always wanted on the new @ymail and @rocketmail.
Hurry before someone else does!
http://mail. promotions. yahoo.com/ newdomains/ aa/

[Non-text portions of this message have been removed]







[Non-text portions of this message have been removed]

#19707 From: santhosh vs <santhoshnta@...>
Date: Wed Nov 4, 2009 5:03 am
Subject: Re: [C#.NET] getting root drive
everlovingyouth
Offline Offline
Send Email Send Email
 
Path.GetPathRoot

On Tue, Nov 3, 2009 at 11:52 PM, oS <ntfirewall@...> wrote:

>
>
> Hi
>
> I like to know how to get the drive on which my application will be running
>
> so if i run the app from d:\abc\xyzz\asd\my.exe
>
> i would like to get the "D:"
>
> Thanks
>
> [Non-text portions of this message have been removed]
>
>
>



--

Santhosh V
http://techplex.wordpress.com


[Non-text portions of this message have been removed]

#19708 From: mahfouz sayed <mahfouz_sayed@...>
Date: Wed Nov 4, 2009 6:49 pm
Subject: Re: [C#.NET] Need to draw line
mahfouz_sayed
Offline Offline
Send Email Send Email
 
Dear Mostafa ,

How i will move this line and also how i  select and delete this line






________________________________
From: mostafa goher <mostafa_goher@...>
To: CSharpNET@yahoogroups.com
Sent: Tue, November 3, 2009 10:06:02 PM
Subject: Re: [C#.NET] Need to draw line


this is a simple code to draw line
Graphics
grf.DrawLine(
u can use it to do what u want
goher

____________ _________ _________ __
From: mahfouz sayed <mahfouz_sayed@ yahoo.com>
To: CSharpNET@yahoogrou ps.com
Sent: Tue, November 3, 2009 3:20:05 AM
Subject: [C#.NET] Need to draw line


Dear Friends ,

I have one application in need user to select line and draw inside form

after he draw one line , he can move this line in the form or select the line
and delete .

how can i do this

Regards ,
Mahfouz Sayed

[Non-text portions of this message have been removed]

grf = this.CreateGraphics ();newPen( Color.Cornflower Blue, 10), 0, 0, 100,
100);

[Non-text portions of this message have been removed]







[Non-text portions of this message have been removed]

#19709 From: "gusta1308" <gusta1308@...>
Date: Wed Nov 4, 2009 8:34 pm
Subject: Re: ATTACHING application to webprojects
gusta1308
Offline Offline
Send Email Send Email
 
Import Interop interface (ActiveX) in your solution

Regards

--- In CSharpNET@yahoogroups.com, "SAI RAJ" <xs.gama@...> wrote:
>
> I want to attach flv converter,Microsoft office and picture manager get
attached in my project if you have knowledge in it please help me
>

#19710 From: "gusta1308" <gusta1308@...>
Date: Wed Nov 4, 2009 8:06 pm
Subject: Re: getting root drive
gusta1308
Offline Offline
Send Email Send Email
 
Hi

You must to use the following sentence:

Application.StartupPath.Substring(1, 2);


I hope have been help you.
Regards

--- In CSharpNET@yahoogroups.com, oS <ntfirewall@...> wrote:
>
> Hi
>
> I like to know how to get the drive on which my application will be running
>
> so if i run the app from d:\abc\xyzz\asd\my.exe
>
> i would like to get the "D:"
>
> Thanks
>
>
> [Non-text portions of this message have been removed]
>

#19711 From: Green <greenlamar3020@...>
Date: Wed Nov 11, 2009 1:05 am
Subject: OpenFileDialog()
greenlamar3020
Offline Offline
Send Email Send Email
 
Hi
 
How do you open the OpenFileDialog() object in "Details" view rather than "List"
view?
Is there a property for this?

Green Lamar
Contact me at: greenlamar3020@...
www.GreenProductionss.com

========




[Non-text portions of this message have been removed]

#19712 From: Dan Fat <dan_fat83@...>
Date: Wed Nov 11, 2009 12:58 pm
Subject: Re: [C#.NET] Need to draw line
dan_fat83
Offline Offline
Send Email Send Email
 
Hello.
Unfortunatelly I can't give you any code.
But if you like, you could start developing the application, and I'll help
whenever I can.

With regards,
Dan Fat




________________________________
From: mahfouz sayed <mahfouz_sayed@...>
To: CSharpNET@yahoogroups.com
Sent: Wednesday, November 4, 2009 21:12:14
Subject: Re: [C#.NET] Need to draw line


Dear Dan ,

thank you for reply .

Can you give me sample code for this control

Regards ,

Mahfouz sayed

____________ _________ _________ __
From: Dan Fat <dan_fat83@yahoo. com>
To: CSharpNET@yahoogrou ps.com
Sent: Tue, November 3, 2009 5:28:31 PM
Subject: Re: [C#.NET] Need to draw line

Hi.
The option for this is to create your custom control that will be repainted as
line.
Then create events for the control so it behaves the way you want to.
Happy coding !

With regards,
Dan Fat

____________ _________ _________ __
From: mahfouz sayed <mahfouz_sayed@ yahoo.com>
To: CSharpNET@yahoogrou ps.com
Sent: Tuesday, November 3, 2009 13:20:05
Subject: [C#.NET] Need to draw line

Dear Friends ,

I have one application  in need user to select line and draw inside form

after he draw one line , he can move this line in the form or select the line
and delete .

how can i do this

Regards ,
Mahfouz Sayed

[Non-text portions of this message have been removed]

New Email names for you!
Get the Email name you&#39;ve always wanted on the new @ymail and @rocketmail.
Hurry before someone else does!
http://mail. promotions. yahoo.com/ newdomains/ aa/

[Non-text portions of this message have been removed]

[Non-text portions of this message have been removed]





       Get your new Email address!
Grab the Email name you&#39;ve always wanted before someone else does!
http://mail.promotions.yahoo.com/newdomains/aa/

[Non-text portions of this message have been removed]

#19713 From: mahfouz sayed <mahfouz_sayed@...>
Date: Thu Nov 12, 2009 8:29 pm
Subject: Re: [C#.NET] Need to draw line
mahfouz_sayed
Offline Offline
Send Email Send Email
 
Dear Dan ,

Thank you for your support .


Regards ,
Mahfouz




________________________________
From: Dan Fat <dan_fat83@...>
To: CSharpNET@yahoogroups.com
Sent: Wed, November 11, 2009 3:58:26 PM
Subject: Re: [C#.NET] Need to draw line


Hello.
Unfortunatelly I can't give you any code.
But if you like, you could start developing the application, and I'll help
whenever I can.

With regards,
Dan Fat

____________ _________ _________ __
From: mahfouz sayed <mahfouz_sayed@ yahoo.com>
To: CSharpNET@yahoogrou ps.com
Sent: Wednesday, November 4, 2009 21:12:14
Subject: Re: [C#.NET] Need to draw line

Dear Dan ,

thank you for reply .

Can you give me sample code for this control

Regards ,

Mahfouz sayed

____________ _________ _________ __
From: Dan Fat <dan_fat83@yahoo. com>
To: CSharpNET@yahoogrou ps.com
Sent: Tue, November 3, 2009 5:28:31 PM
Subject: Re: [C#.NET] Need to draw line

Hi.
The option for this is to create your custom control that will be repainted as
line.
Then create events for the control so it behaves the way you want to.
Happy coding !

With regards,
Dan Fat

____________ _________ _________ __
From: mahfouz sayed <mahfouz_sayed@ yahoo.com>
To: CSharpNET@yahoogrou ps.com
Sent: Tuesday, November 3, 2009 13:20:05
Subject: [C#.NET] Need to draw line

Dear Friends ,

I have one application  in need user to select line and draw inside form

after he draw one line , he can move this line in the form or select the line
and delete .

how can i do this

Regards ,
Mahfouz Sayed

[Non-text portions of this message have been removed]

New Email names for you!
Get the Email name you&#39;ve always wanted on the new @ymail and @rocketmail.
Hurry before someone else does!
http://mail. promotions. yahoo.com/ newdomains/ aa/

[Non-text portions of this message have been removed]

[Non-text portions of this message have been removed]

Get your new Email address!
Grab the Email name you&#39;ve always wanted before someone else does!
http://mail. promotions. yahoo.com/ newdomains/ aa/

[Non-text portions of this message have been removed]







[Non-text portions of this message have been removed]

#19714 From: "Rob Richardson" <Rob.Richardson@...>
Date: Fri Nov 13, 2009 3:46 pm
Subject: RE: [C#.NET] Need to draw line
interrobang
Offline Offline
Send Email Send Email
 
You'll have a line defined by its start and end points.  You will need
to define handlers for the mouse down and mouse move events, and maybe
the mouse up event.  In the mouse down event, you check to see if you
are close enough to your line to select the line.  If you are, you
highlight the line somehow and you store the current mouse position.  In
the mouse move event, you compare the current mouse position to the
previous mouse position and move the line start and end points by the
same amount.  Perhaps you redraw the line now, or you draw a faint copy
of the line, or perhaps you do not redraw anything now.  In any event,
the last thing that happens in the mouse move event is to replace the
previous mouse position with the current mouse position.  Finally, in
the mouse up event, you redraw the line in its final form.

Come to think of it, you could live without the mouse move event if you
don't need to show the line moving.


Robert D. Richardson
Product Engineer Software

RAD-CON, Inc.
TECHNOLOGY: Innovative & Proven
Phone : +1.440.871.5720 ... ext 123
Fax:  +1.440.871.2948
Website:  www.RAD-CON.com
E-mail:  rob.richardson@...


-----Original Message-----
From: CSharpNET@yahoogroups.com [mailto:CSharpNET@yahoogroups.com] On
Behalf Of mahfouz sayed
Sent: Thursday, November 12, 2009 3:29 PM
To: CSharpNET@yahoogroups.com
Subject: Re: [C#.NET] Need to draw line

Dear Dan ,

Thank you for your support .


Regards ,
Mahfouz




________________________________
From: Dan Fat <dan_fat83@...>
To: CSharpNET@yahoogroups.com
Sent: Wed, November 11, 2009 3:58:26 PM
Subject: Re: [C#.NET] Need to draw line


Hello.
Unfortunatelly I can't give you any code.
But if you like, you could start developing the application, and I'll
help whenever I can.

With regards,
Dan Fat

____________ _________ _________ __
From: mahfouz sayed <mahfouz_sayed@ yahoo.com>
To: CSharpNET@yahoogrou ps.com
Sent: Wednesday, November 4, 2009 21:12:14
Subject: Re: [C#.NET] Need to draw line

Dear Dan ,

thank you for reply .

Can you give me sample code for this control

Regards ,

Mahfouz sayed

____________ _________ _________ __
From: Dan Fat <dan_fat83@yahoo. com>
To: CSharpNET@yahoogrou ps.com
Sent: Tue, November 3, 2009 5:28:31 PM
Subject: Re: [C#.NET] Need to draw line

Hi.
The option for this is to create your custom control that will be
repainted as line.
Then create events for the control so it behaves the way you want to.
Happy coding !

With regards,
Dan Fat

____________ _________ _________ __
From: mahfouz sayed <mahfouz_sayed@ yahoo.com>
To: CSharpNET@yahoogrou ps.com
Sent: Tuesday, November 3, 2009 13:20:05
Subject: [C#.NET] Need to draw line

Dear Friends ,

I have one application  in need user to select line and draw inside form


after he draw one line , he can move this line in the form or select the
line and delete .

how can i do this

Regards ,
Mahfouz Sayed

[Non-text portions of this message have been removed]

New Email names for you!
Get the Email name you&#39;ve always wanted on the new @ymail and
@rocketmail.
Hurry before someone else does!
http://mail. promotions. yahoo.com/ newdomains/ aa/

[Non-text portions of this message have been removed]

[Non-text portions of this message have been removed]

Get your new Email address!
Grab the Email name you&#39;ve always wanted before someone else does!
http://mail. promotions. yahoo.com/ newdomains/ aa/

[Non-text portions of this message have been removed]







[Non-text portions of this message have been removed]



------------------------------------

Yahoo! Groups Links

#19715 From: Tanvir Faraj <tanvir.faraj@...>
Date: Mon Nov 16, 2009 6:02 am
Subject: 'Open in new tab' option in treeview control.
tanvir_faraj
Offline Offline
Send Email Send Email
 
Hi,

Please consider the following case:

I have a treeview control in a page. Only name and value property is
set for each treenode. The 'SelectedNodeChange' event is handled and
another new page is loaded based on the selected node's value. I have
used UpdatePanel and associated controls to show a 'Please Wait'
message when a tree node is clicked. The message starts showing
immediately after clicking the node and stops showing after a new page
is loaded. So far this is fine and working perfectly.

The problem is when i right click on a treeview node (which appears as
a link), the 'Open in new tab' option is shown disabled in the browser
menu (i mean the menu which appears after right clicking on a link). I
found that if i set the navigate url property of treenode, then the
'Open in new tab' menu is shown enabled. But in that case the 'Please
Wait' message doesn't show.

The problem is, if i do not assign any hardcoded url to a link
(treeview node in my case), the 'Open in new tab/window' option is
disabled. But if i assign a hardcode link, the browser handles the
request automatically. In my case, since i am loading another page,
the 'Please Wait' message is now shown any longer.

Is there any option to enable 'Open in new tab' without assigning
hardcoded link?
Or is there any option to stop browser to emmediately send request
when a hardcoded link is clicked?
Any help would be greately appreciated.


Regards,
Tanvir.

#19716 From: Mahmoud Ghoz <mahmoud@...>
Date: Mon Nov 16, 2009 11:07 am
Subject: RE: [C#.NET] 'Open in new tab' option in treeview control.
moody253
Offline Offline
Send Email Send Email
 
I have the same problem .



Mahmoud Ghoz

www.Ghoz.NET



From: CSharpNET@yahoogroups.com [mailto:CSharpNET@yahoogroups.com] On Behalf
Of Tanvir Faraj
Sent: Monday, November 16, 2009 8:03 AM
To: dot_net_community; CSharpNET@yahoogroups.com
Subject: [C#.NET] 'Open in new tab' option in treeview control.





Hi,

Please consider the following case:

I have a treeview control in a page. Only name and value property is
set for each treenode. The 'SelectedNodeChange' event is handled and
another new page is loaded based on the selected node's value. I have
used UpdatePanel and associated controls to show a 'Please Wait'
message when a tree node is clicked. The message starts showing
immediately after clicking the node and stops showing after a new page
is loaded. So far this is fine and working perfectly.

The problem is when i right click on a treeview node (which appears as
a link), the 'Open in new tab' option is shown disabled in the browser
menu (i mean the menu which appears after right clicking on a link). I
found that if i set the navigate url property of treenode, then the
'Open in new tab' menu is shown enabled. But in that case the 'Please
Wait' message doesn't show.

The problem is, if i do not assign any hardcoded url to a link
(treeview node in my case), the 'Open in new tab/window' option is
disabled. But if i assign a hardcode link, the browser handles the
request automatically. In my case, since i am loading another page,
the 'Please Wait' message is now shown any longer.

Is there any option to enable 'Open in new tab' without assigning
hardcoded link?
Or is there any option to stop browser to emmediately send request
when a hardcoded link is clicked?
Any help would be greately appreciated.

Regards,
Tanvir.





[Non-text portions of this message have been removed]

#19717 From: Tanvir Faraj <tanvir.faraj@...>
Date: Mon Nov 16, 2009 11:35 am
Subject: Re: [C#.NET] 'Open in new tab' option in treeview control.
tanvir_faraj
Offline Offline
Send Email Send Email
 
Well i solved it in the following way:

1. I registered a client script for each node of treeview:

--------------------------------------------------------------------------------\
----------------------------------------------------------------
public static void RegisterTreeNodeEffect(System.Web.UI.Page page,
System.Web.UI.WebControls.TreeView treeView)
{
             StringBuilder effectScript = new StringBuilder();
             int i = 0;
             foreach (System.Web.UI.WebControls.TreeNode tn in
treeView.Nodes)
             {
                 effectScript.Append("document.getElementById('" +
treeView.ClientID + "t" + i.ToString() + "').onclick=function(){"
+                       "StartNewPageEffect();" + "};");

                 i++;
             }

             page.ClientScript.RegisterStartupScript(page.GetType(),
"EffectScript", effectScript.ToString(), true);
}
--------------------------------------------------------------------------------\
----------------------------------------------------------------

2. In the code behind define the client function:
--------------------------------------------------------------------------------\
----------------------------------------------------------------
function StartNewPageEffect()
  {
             // start your effect here....i.e. a loading icon
             // you dont need to stop or hide the effect since it will be
automatically hide after browser gets the new response

             return false;
}
--------------------------------------------------------------------------------\
----------------------------------------------------------------

Thats it.


Regards,
Tanvir Faraj


On Mon, Nov 16, 2009 at 5:07 PM, Mahmoud Ghoz <mahmoud@...> wrote:

>
>
> I have the same problem .
>
> Mahmoud Ghoz
>
> www.Ghoz.NET
>
> From: CSharpNET@yahoogroups.com <CSharpNET%40yahoogroups.com> [mailto:
> CSharpNET@yahoogroups.com <CSharpNET%40yahoogroups.com>] On Behalf
> Of Tanvir Faraj
> Sent: Monday, November 16, 2009 8:03 AM
> To: dot_net_community; CSharpNET@yahoogroups.com<CSharpNET%40yahoogroups.com>
> Subject: [C#.NET] 'Open in new tab' option in treeview control.
>
>
> Hi,
>
> Please consider the following case:
>
> I have a treeview control in a page. Only name and value property is
> set for each treenode. The 'SelectedNodeChange' event is handled and
> another new page is loaded based on the selected node's value. I have
> used UpdatePanel and associated controls to show a 'Please Wait'
> message when a tree node is clicked. The message starts showing
> immediately after clicking the node and stops showing after a new page
> is loaded. So far this is fine and working perfectly.
>
> The problem is when i right click on a treeview node (which appears as
> a link), the 'Open in new tab' option is shown disabled in the browser
> menu (i mean the menu which appears after right clicking on a link). I
> found that if i set the navigate url property of treenode, then the
> 'Open in new tab' menu is shown enabled. But in that case the 'Please
> Wait' message doesn't show.
>
> The problem is, if i do not assign any hardcoded url to a link
> (treeview node in my case), the 'Open in new tab/window' option is
> disabled. But if i assign a hardcode link, the browser handles the
> request automatically. In my case, since i am loading another page,
> the 'Please Wait' message is now shown any longer.
>
> Is there any option to enable 'Open in new tab' without assigning
> hardcoded link?
> Or is there any option to stop browser to emmediately send request
> when a hardcoded link is clicked?
> Any help would be greately appreciated.
>
> Regards,
> Tanvir.
>
> [Non-text portions of this message have been removed]
>
>
>


[Non-text portions of this message have been removed]

#19718 From: Green <greenlamar3020@...>
Date: Thu Nov 19, 2009 2:56 am
Subject: Icons
greenlamar3020
Offline Offline
Send Email Send Email
 
Hi,
 
I have some forms where the Icons dont show up in the Windows TaskBar. Instead
the main Program Form's icon shows when these forms open.
It's not all of the forms just some of them.
Any ideas for fixing this?

Green Lamar
Contact me at: greenlamar3020@...
www.GreenProductionss.com

========




[Non-text portions of this message have been removed]

#19719 From: "Rob Richardson" <Rob.Richardson@...>
Date: Wed Nov 25, 2009 1:43 pm
Subject: Displaying a web page in an existing window
interrobang
Offline Offline
Send Email Send Email
 
Greetings!

Our flagship application is written in C++ using MS Visual C++ 6.  When
the application starts, it shows some buttons across the top and down
the left side, but most of the space is taken up by an HTML screen that
displays a set of boxes containing information about objects.  The
buttons down the left side of the screen control filters that determine
which objects get displayed.  The application passes an ADOConnection
object to the HTML screen, and JavaScript code applies the filter and
displays information from the resulting recordset.

The problem is that a clause in our biggest contract in many years
requires that our application consume no more than 40% of available
memory on the computer, and somewhere there's a memory leak that
increases usage every time a user clicks a button to change the filter.
We are at our wit's end trying to track this down and get rid of it.  It
appears to be buried inside the CWebPage class we're using to display
the HTML page.

It occurred to me this morning that it ought to be possible to come up
with a C# class library that would manage the web page.  I found a neat
little tutorial illustrating how to invoke a C# class library from a C++
application, and it shouldn't be hard to find out how to display a web
page from inside C#.  (Although I wouldn't mind a hint:  what class
should I use?)

The most pressing question I have is this:  I would like to display the
page using an existing window from the C++ application.  I could pass
the window handle into the C# library, or even pass in a reference to
the CWnd object, but what then?  How do I display my HTML screen inside
that window instead of creating a new window for it?  Or maybe the
existing window would end up being the parent of the window that
displays the HTML screen?  What would be the best way to do this?

Thank you very much!

RobR

#19720 From: "Merritt, Bruce" <bruce.merritt@...>
Date: Wed Nov 25, 2009 3:17 pm
Subject: RE: Displaying a web page in an existing window
bpm9648
Offline Offline
Send Email Send Email
 
Rob,

We have custom web Kiosk that was originally written in VB6 and recently
converted to C#. The application is a Windows form application that hosts IE.
Below are some links that may help you. The hardest part was extending the
browser control with COM Intereop to capture some of the events that aren't
exposed directly. In our case one of the events we needed to catch was the
WM_DESTROY event so we could do additional processing when a new window was
closed.

Bruce


How to: Add Web Browser Capabilities to a Windows Forms Application
     http://msdn.microsoft.com/en-us/library/3s8ys666(VS.80).aspx

Web Browser Control:
     http://msdn.microsoft.com/en-us/library/2te2y1x6.aspx

Web Browser Class:
     http://msdn.microsoft.com/en-us/library/system.windows.forms.webbrowser.aspx

How to get the URL of new window in NewWindow event.
    
http://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=\
115195

How to automate Internet Explorer to POST form data by using Visual C# .NET or
Visual C# 2005
     http://support.microsoft.com/kb/815724



-----Original Message-----
From: CSharpNET@yahoogroups.com [mailto:CSharpNET@yahoogroups.com] On Behalf Of
Rob Richardson
Sent: Wednesday, November 25, 2009 6:43 AM
To: CSharpNET@yahoogroups.com
Subject: [C#.NET] Displaying a web page in an existing window

Greetings!

Our flagship application is written in C++ using MS Visual C++ 6.  When
the application starts, it shows some buttons across the top and down
the left side, but most of the space is taken up by an HTML screen that
displays a set of boxes containing information about objects.  The
buttons down the left side of the screen control filters that determine
which objects get displayed.  The application passes an ADOConnection
object to the HTML screen, and JavaScript code applies the filter and
displays information from the resulting recordset.

The problem is that a clause in our biggest contract in many years
requires that our application consume no more than 40% of available
memory on the computer, and somewhere there's a memory leak that
increases usage every time a user clicks a button to change the filter.
We are at our wit's end trying to track this down and get rid of it.  It
appears to be buried inside the CWebPage class we're using to display
the HTML page.

It occurred to me this morning that it ought to be possible to come up
with a C# class library that would manage the web page.  I found a neat
little tutorial illustrating how to invoke a C# class library from a C++
application, and it shouldn't be hard to find out how to display a web
page from inside C#.  (Although I wouldn't mind a hint:  what class
should I use?)

The most pressing question I have is this:  I would like to display the
page using an existing window from the C++ application.  I could pass
the window handle into the C# library, or even pass in a reference to
the CWnd object, but what then?  How do I display my HTML screen inside
that window instead of creating a new window for it?  Or maybe the
existing window would end up being the parent of the window that
displays the HTML screen?  What would be the best way to do this?

Thank you very much!

RobR


------------------------------------

Yahoo! Groups Links

#19721 From: alvin bruney <vapordan@...>
Date: Wed Nov 25, 2009 5:34 pm
Subject: RE: [C#.NET] Displaying a web page in an existing window
vapor_dan
Offline Offline
Send Email Send Email
 
Isn't it cheapter to just fix the problem? These issues are fairly easily
resolved.



The "memory leak" is most likley in the interop layer associated with the leased
object lifetime. Here's how to find it. Force a garbage collection after 1
minute of idle time and after 6 minutes of idle time. Then dump the stack.
Examine the roots. There's your memory leak. I have posted a walkthrough on this
here http://support.microsoft.com/kb/555916, it is somewhat (but not exactly)
related to your problem.




Regards,
Alvin Bruney [MVP ASP.NET]

[Shameless Author plug]
The O.W.C. Black Book, 2nd Edition
Exclusively on www.lulu.com/owc $19.99
-------------------------------------------------------








To: CSharpNET@yahoogroups.com
From: Rob.Richardson@...
Date: Wed, 25 Nov 2009 08:43:00 -0500
Subject: [C#.NET] Displaying a web page in an existing window





Greetings!

Our flagship application is written in C++ using MS Visual C++ 6. When
the application starts, it shows some buttons across the top and down
the left side, but most of the space is taken up by an HTML screen that
displays a set of boxes containing information about objects. The
buttons down the left side of the screen control filters that determine
which objects get displayed. The application passes an ADOConnection
object to the HTML screen, and JavaScript code applies the filter and
displays information from the resulting recordset.

The problem is that a clause in our biggest contract in many years
requires that our application consume no more than 40% of available
memory on the computer, and somewhere there's a memory leak that
increases usage every time a user clicks a button to change the filter.
We are at our wit's end trying to track this down and get rid of it. It
appears to be buried inside the CWebPage class we're using to display
the HTML page.

It occurred to me this morning that it ought to be possible to come up
with a C# class library that would manage the web page. I found a neat
little tutorial illustrating how to invoke a C# class library from a C++
application, and it shouldn't be hard to find out how to display a web
page from inside C#. (Although I wouldn't mind a hint: what class
should I use?)

The most pressing question I have is this: I would like to display the
page using an existing window from the C++ application. I could pass
the window handle into the C# library, or even pass in a reference to
the CWnd object, but what then? How do I display my HTML screen inside
that window instead of creating a new window for it? Or maybe the
existing window would end up being the parent of the window that
displays the HTML screen? What would be the best way to do this?

Thank you very much!

RobR





[Non-text portions of this message have been removed]

#19722 From: "Rob Richardson" <Rob.Richardson@...>
Date: Wed Nov 25, 2009 7:56 pm
Subject: RE: [C#.NET] Displaying a web page in an existing window
interrobang
Offline Offline
Send Email Send Email
 
The problem is that this is not a .Net managed control.  This is an old
library used in a Visual C++ 6 application, and it's not even a library
we developed.  We found a single reference on the Internet saying that
there is a memory leak in this library, but we've never found a
workaround or fix.  So, I want to get rid of this library.

RobR

#19723 From: Puzzlefun <puzzlefun@...>
Date: Wed Nov 25, 2009 9:54 pm
Subject: Re: [C#.NET] Displaying a web page in an existing window
puzzlefun...
Offline Offline
Send Email Send Email
 
Hi Rob,

    You may use c#.net to create a COM control (OCX) to show your webpage. That
is very simple.
    Then you use this OCX in your c++ code.

Good luck.

puzzlefun





________________________________
From: Rob Richardson <Rob.Richardson@...>
To: CSharpNET@yahoogroups.com
Sent: Wed, November 25, 2009 8:43:00 AM
Subject: [C#.NET] Displaying a web page in an existing window


Greetings!

Our flagship application is written in C++ using MS Visual C++ 6.  When
the application starts, it shows some buttons across the top and down
the left side, but most of the space is taken up by an HTML screen that
displays a set of boxes containing information about objects.  The
buttons down the left side of the screen control filters that determine
which objects get displayed.  The application passes an ADOConnection
object to the HTML screen, and JavaScript code applies the filter and
displays information from the resulting recordset.

The problem is that a clause in our biggest contract in many years
requires that our application consume no more than 40% of available
memory on the computer, and somewhere there's a memory leak that
increases usage every time a user clicks a button to change the filter.
We are at our wit's end trying to track this down and get rid of it.  It
appears to be buried inside the CWebPage class we're using to display
the HTML page.

It occurred to me this morning that it ought to be possible to come up
with a C# class library that would manage the web page.  I found a neat
little tutorial illustrating how to invoke a C# class library from a C++
application, and it shouldn't be hard to find out how to display a web
page from inside C#.  (Although I wouldn't mind a hint:  what class
should I use?)

The most pressing question I have is this:  I would like to display the
page using an existing window from the C++ application.  I could pass
the window handle into the C# library, or even pass in a reference to
the CWnd object, but what then?  How do I display my HTML screen inside
that window instead of creating a new window for it?  Or maybe the
existing window would end up being the parent of the window that
displays the HTML screen?  What would be the best way to do this?

Thank you very much!

RobR




       __________________________________________________________________
Looking for the perfect gift? Give the gift of Flickr!

http://www.flickr.com/gift/

[Non-text portions of this message have been removed]

#19724 From: "Samah Hammad" <mesa19812002@...>
Date: Thu Nov 26, 2009 9:20 pm
Subject: Video Streaming
sassohammad
Offline Offline
Send Email Send Email
 
Hi all:

I have a new web application using c# that should allow user to upload video
with maximum 5 minutes, the plroblem appears when displaying video, the video
doesn't start playing before it completly downloaded, also when I tried to use
plyer skin, it works fine locally, but when I upload it on the server it didn't
give me anything (white page).

I want my video to display like you tube, I don't know what I miss, my server
operating server is windows server 2003, does it need any thired party to
install or what?

thanks in advance..

#19725 From: yella hari <yellahari2002@...>
Date: Thu Nov 26, 2009 11:41 am
Subject: speardsheet in WPF
yellahari2002
Offline Offline
Send Email Send Email
 
Hi,

i am having a problem here regarding the WPF control.
i used the Microsoft office speardsheet 11.0 in windows forms.
now i wanted to use it in wpf control. but i am not able to.

any ideas how to do it. or any other controls or workarounds for this one.

Thanks and Regards,
Hari

#19726 From: Andrew Badera <andrew@...>
Date: Fri Nov 27, 2009 12:03 am
Subject: Re: [C#.NET] Displaying a web page in an existing window
andrewbadera
Offline Offline
Send Email Send Email
 
Why in the world would you use an old-school OCX when you can use a
WebBrowser control in .NET? Sheesh!

∞ Andy Badera
∞ +1 518-641-1280 Google Voice
∞ This email is: [ ] bloggable [x] ask first [ ] private
∞ Google me: http://www.google.com/search?q=andrew%20badera


On Wed, Nov 25, 2009 at 4:54 PM, Puzzlefun <puzzlefun@...> wrote:

>
>
> Hi Rob,
>
> You may use c#.net to create a COM control (OCX) to show your webpage. That
> is very simple.
> Then you use this OCX in your c++ code.
>
> Good luck.
>
> puzzlefun
>
> ________________________________
> From: Rob Richardson <Rob.Richardson@...<Rob.Richardson%40rad-con.com>
> >
> To: CSharpNET@yahoogroups.com <CSharpNET%40yahoogroups.com>
> Sent: Wed, November 25, 2009 8:43:00 AM
>
> Subject: [C#.NET] Displaying a web page in an existing window
>
> Greetings!
>
> Our flagship application is written in C++ using MS Visual C++ 6. When
> the application starts, it shows some buttons across the top and down
> the left side, but most of the space is taken up by an HTML screen that
> displays a set of boxes containing information about objects. The
> buttons down the left side of the screen control filters that determine
> which objects get displayed. The application passes an ADOConnection
> object to the HTML screen, and JavaScript code applies the filter and
> displays information from the resulting recordset.
>
> The problem is that a clause in our biggest contract in many years
> requires that our application consume no more than 40% of available
> memory on the computer, and somewhere there's a memory leak that
> increases usage every time a user clicks a button to change the filter.
> We are at our wit's end trying to track this down and get rid of it. It
> appears to be buried inside the CWebPage class we're using to display
> the HTML page.
>
> It occurred to me this morning that it ought to be possible to come up
> with a C# class library that would manage the web page. I found a neat
> little tutorial illustrating how to invoke a C# class library from a C++
> application, and it shouldn't be hard to find out how to display a web
> page from inside C#. (Although I wouldn't mind a hint: what class
> should I use?)
>
> The most pressing question I have is this: I would like to display the
> page using an existing window from the C++ application. I could pass
> the window handle into the C# library, or even pass in a reference to
> the CWnd object, but what then? How do I display my HTML screen inside
> that window instead of creating a new window for it? Or maybe the
> existing window would end up being the parent of the window that
> displays the HTML screen? What would be the best way to do this?
>
> Thank you very much!
>
> RobR
>
> __________________________________________________________
> Looking for the perfect gift? Give the gift of Flickr!
>
> http://www.flickr.com/gift/
>
>
> [Non-text portions of this message have been removed]
>
>
>


[Non-text portions of this message have been removed]

#19727 From: Andrew Badera <andrew@...>
Date: Fri Nov 27, 2009 12:05 am
Subject: Re: [C#.NET] Displaying a web page in an existing window
andrewbadera
Offline Offline
Send Email Send Email
 
Sorry, should clarify that. You can expose C# to COM all day long. And if
you don't want to do that, you can expose it via a service that C++ can call
all day long.

∞ Andy Badera
∞ +1 518-641-1280 Google Voice
∞ This email is: [ ] bloggable [x] ask first [ ] private
∞ Google me: http://www.google.com/search?q=andrew%20badera


On Thu, Nov 26, 2009 at 7:03 PM, Andrew Badera <andrew@...> wrote:

> Why in the world would you use an old-school OCX when you can use a
> WebBrowser control in .NET? Sheesh!
>
> ∞ Andy Badera
> ∞ +1 518-641-1280 Google Voice
> ∞ This email is: [ ] bloggable [x] ask first [ ] private
> ∞ Google me: http://www.google.com/search?q=andrew%20badera
>
>
>
> On Wed, Nov 25, 2009 at 4:54 PM, Puzzlefun <puzzlefun@...> wrote:
>
>>
>>
>> Hi Rob,
>>
>> You may use c#.net to create a COM control (OCX) to show your webpage.
>> That is very simple.
>> Then you use this OCX in your c++ code.
>>
>> Good luck.
>>
>> puzzlefun
>>
>> ________________________________
>> From: Rob Richardson
<Rob.Richardson@...<Rob.Richardson%40rad-con.com>
>> >
>> To: CSharpNET@yahoogroups.com <CSharpNET%40yahoogroups.com>
>> Sent: Wed, November 25, 2009 8:43:00 AM
>>
>> Subject: [C#.NET] Displaying a web page in an existing window
>>
>> Greetings!
>>
>> Our flagship application is written in C++ using MS Visual C++ 6. When
>> the application starts, it shows some buttons across the top and down
>> the left side, but most of the space is taken up by an HTML screen that
>> displays a set of boxes containing information about objects. The
>> buttons down the left side of the screen control filters that determine
>> which objects get displayed. The application passes an ADOConnection
>> object to the HTML screen, and JavaScript code applies the filter and
>> displays information from the resulting recordset.
>>
>> The problem is that a clause in our biggest contract in many years
>> requires that our application consume no more than 40% of available
>> memory on the computer, and somewhere there's a memory leak that
>> increases usage every time a user clicks a button to change the filter.
>> We are at our wit's end trying to track this down and get rid of it. It
>> appears to be buried inside the CWebPage class we're using to display
>> the HTML page.
>>
>> It occurred to me this morning that it ought to be possible to come up
>> with a C# class library that would manage the web page. I found a neat
>> little tutorial illustrating how to invoke a C# class library from a C++
>> application, and it shouldn't be hard to find out how to display a web
>> page from inside C#. (Although I wouldn't mind a hint: what class
>> should I use?)
>>
>> The most pressing question I have is this: I would like to display the
>> page using an existing window from the C++ application. I could pass
>> the window handle into the C# library, or even pass in a reference to
>> the CWnd object, but what then? How do I display my HTML screen inside
>> that window instead of creating a new window for it? Or maybe the
>> existing window would end up being the parent of the window that
>> displays the HTML screen? What would be the best way to do this?
>>
>> Thank you very much!
>>
>> RobR
>>
>> __________________________________________________________
>> Looking for the perfect gift? Give the gift of Flickr!
>>
>> http://www.flickr.com/gift/
>>
>>
>> [Non-text portions of this message have been removed]
>>
>>
>>
>
>


[Non-text portions of this message have been removed]

Messages 19698 - 19727 of 19727   Oldest  |  < Older  |  Newer >  |  Newest
Advanced
Add to My Yahoo!      XML What's This?

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help