|
How can i expose the public enum created in c# form to the vb6 application?
-Amit
|
|
|
|
|
I don't believe you can expose the C# form to the v6 application, but you can expose that enum to a vb6 by creating a dll and adding a reference to it.
I get all the news I need from the weather report - Paul Simon (from "The Only Living Boy in New York")
|
|
|
|
|
There is a new toolkit from Microsoft for exposing .NET UI stuff to VB6 apps, but I can't remember what it is called.
|
|
|
|
|
I'm trying to write an application that will allow an external device to be synchronized with a PowerPoint presentation. So I wrote a very simple Windows Forms application that will load a PowerPoint presentation and get a list of the slides. It then allows the user to hook each slide to an event on the external device with the objective being that when that slide appears, the external device should do a certain action. I'm using the office XP primary interop assemblies from Microsoft and all of this works fine up to this point.
Now I have a button that starts the actual presentation. My program will handle the SlideShowNextSlide, SlideShowEnd and PresentationClose events (from PowerPoint) and everything works great. My handler is triggered when the slide changes and based on which slide is displayed, it makes the external device do something.
The problem occurs after the presentation ends and I then try and restart it. At this point when I get to the SlideShowSettings.Run() method I get a COMException with the message "Presentation (unknown member) : Object does not exist."
Does anybody have any idea what the problem here might be? I'm assuming that something needs to be cleaned up on exit, but I've closed the presentation with the Close() method and even tried reinitializing a whole new PowerPoint.Application and PowerPoint.Presentation, but it just doesn't work.
|
|
|
|
|
Hi,
I never do these things, but IIRC I read something like that on CodeProject
a couple of months ago.
I think this has been a bug, and some patch exists to solve it.
So I suggest you search CP for it (using the looking glass), or else just Google it.
|
|
|
|
|
Thanks but I've struck out on Google. I'm getting nothing.
|
|
|
|
|
Hi:
i am creating controls on a webpage dynamically and then want to get all page controls using "page.controls.count" but it is not getting page controls
anybody have any idea??
thanx
|
|
|
|
|
When you created your dynamic controls, did you add the controls to the Page.Controls collection?
Upcoming events:
* Glasgow: Mock Objects, SQL Server CLR Integration, Reporting Services, db4o, Dependency Injection with Spring ...
"I wouldn't say boo to a goose. I'm not a coward, I just realise that it would be largely pointless."
My website
|
|
|
|
|
thanx for ur reply
yes i added it to the page controls.
|
|
|
|
|
Might be the controls are not getting added to the page
Where are you adding the controls to the page ?
First check by debugging the application
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|
|
Are you counting the controls on postback? On a postback, you have to create and add all the controls again.
"More functions should disregard input values and just return 12. It would make life easier." - comment posted on WTF
|
|
|
|
|
Is there any mechanism to take the screenshot of the desktop along with the mouse pointer?
Here what i need is an image of the desktop in which it contains the mouse pointer.
Thanks in Advance
Ramu Medida.
|
|
|
|
|
|
Thank you very much.
Thanks and regards
Ramu
|
|
|
|
|
Where can I find the GLUT and GLAUX Libraries in c# ?
Noha
|
|
|
|
|
Noharyiasa wrote: Where can I find the GLUT and GLAUX Libraries
You mean other than on the internet?
|
|
|
|
|
Hi,
I have problem in retrieving the value of a column of selected row in DataGridView control using c#.net 2005
VijayaRam
|
|
|
|
|
easy one
<br />
public String returnGridViewCellValue(GridViewRow row, String fieldName)<br />
{<br />
String result = String.Empty;<br />
<br />
try<br />
{<br />
result = DataBinder.Eval(row.DataItem, fieldName).ToString();<br />
}<br />
catch<br />
{<br />
result = String.Empty;
}<br />
<br />
return result;<br />
}<br />
|
|
|
|
|
Here is an example(getting the value of a cell of the first row selected ):
<br />
DatagridView oGrid;<br />
<br />
if( oGrid.SelectedRows.Count>0 )<br />
{<br />
object oValue = oGrid.SelectedRows[0].Cells[0].Value;<br />
}<br />
<br />
<br />
if( oGrid.SelectedRows.Count>0 )<br />
{<br />
object oValue = oGrid.SelectedRows[0].Cells["colName"].Value;<br />
}<br />
<br />
Visit my blog at http://dotnetforeveryone.blogspot.com/
|
|
|
|
|
Does anyone know a good tutorial on how to program a html form filler in C#?
I searched the web but found nothing.
Please help. thx
|
|
|
|
|
Do you try to programm a spambot which
automatically fills the sign up forms of webpages?
|
|
|
|
|
pdluke wrote: sign up forms of webpages
But most of the signup forms now have a little-to-big CAPTCHA to 'contain' the efforts of such spambots right?
|
|
|
|
|
Thats true,
but there are a lot of tools that can decode CAPTCHA,
more or less well.
|
|
|
|
|
No im not trying to create a spam bot. I want to research the connection between IE and a program in C#. Im going to university next year and i want to make a good portfolio.
|
|
|
|
|
Bone2003 wrote: the connection between IE and a program in C#
What?
|
|
|
|