|
I'm going to develop an application whcih send sms to their clients on the bassis of changes in Stock Exchange Rates after regular intervals. I also want to know about free web serives for sending sms.
Din
|
|
|
|
|
Hi all,
Ineed your help translating this bit of code having no idea how to translate the "Handles" statement.
Any help will be appreciated
---------
Private Sub Application_SelectionChanged(ByVal Window As Office.Interop.Visio.Window) Handles visioApplication.SelectionChanged
Dim mywindow As Office.Interop.Visio.Window = Window
NumOfShapes = mywindow.Selection.Count()
MyShape = mywindow.Selection(1)
ReadANamedCustomProperty(MyShape, "HoursPerWeek", )
End Sub
|
|
|
|
|
I *think* (from very limited VB experience) the Handles statement implies that the Application_SelectionChanged method will get called when the visioApplication.SelectionChanged event is fired.
"I think I speak on behalf of everyone here when I say huh?" - Buffy
|
|
|
|
|
My thoughts exactly but how can I hook this event from my application (COM Add-in) in the same way that the "Handles" statement does it?
thanx anyhow
|
|
|
|
|
Having no experience whatsoever with a COM add-in, if I had to have a guess it would probably be the same as hooking up a normal event with C#:
visioApplication.SelectionChanged += new EventHandler(Application_SelectionChanged);<br />
<br />
private void Application_SelectionChanged(Office.Interop.Visio.Window window)<br />
{<br />
NumOfShapes = window.Selection.Count;<br />
MyShape = mywindow.Selection[1];<br />
ReadANamedCustomProperty(MyShape, "HoursPerWeek");<br />
}
"I think I speak on behalf of everyone here when I say huh?" - Buffy
|
|
|
|
|
thanx, you're the man.
almost exactly what I needed
Roy
|
|
|
|
|
i designed a program to generate a dataset and pull into a ReportDocument, then i set the ReportSource of CrystalReportViewer to this ReportDocument, then i created the installer and installed in my computer, it works perfectly on my computer becoz my computer has .Net framework 1.1 and Crystal Report Enterprise v10 installed.
then i install my program on user's computer which has only has .Net framework 1.1 installed, there is a error occur when loading the crystal report, plz click the following link to view the screen shot
http://img.photobucket.com/albums/v608/mjay83/Error.jpg[^]
i had check the coding, this error occured when the dataset is being pull into the ReportDocument, wat could cause this problem??all the DLL inside user program files folder is exactly the same with mine one! it is impossible to install Crystal Report Enterprise v10 in all user's computer!!
|
|
|
|
|
|
In the code below I created a class(Listings) to hold three stings.
I Also have a ArrayList of the class.
I can add items, can see the data in the watch window and I can use a foreach and see all elements of the arraylist, but I cant figure out how to read the data in the first element of the arraylist.
Thanks for your help.
Mitchell
public class TestArrayList
{
public TestArrayList()
{}
private ArrayList arrListings = new ArrayList();
public void ClearList()
{
arrListings.Clear();
}
public void AddListing(string Name, string Address, string Phone)
{
arrListings.Add(new Listings(Name,Address,Phone));
}
public string getFirstListing()
{
return "?"; //What here to return Name for First item in ArrLst?
}
public class Listings
{
private string x_name;
private string x_address;
private string x_phone;
public Listings()
{}
public Listings(string Name, string Address, string Phone)
{
x_name=Name;
x_address=Address;
x_phone=Phone;
}
public string Name
{
get {return x_name;}
set {x_name = value;}
}
public string Address
{
get {return x_address;}
set {x_address = value;}
}
public string Phone
{
get {return x_phone;}
set {x_phone = value;}
}
}//end listings structure
}
}
|
|
|
|
|
You can use the ArrayLists Item property (see MSDN[^])
public string getFirstListing()<br />
{<br />
if (arrListings.Count == 0)<br />
{<br />
return null;<br />
}<br />
<br />
Listings list = (Listings) arrListings[0];<br />
return list.Name;<br />
<br />
return ((Listings) arrListings[0]).Name;<br />
}
"I think I speak on behalf of everyone here when I say huh?" - Buffy
|
|
|
|
|
I am looking for a reliable commercial or open source .NET library (preferrably) that allows loading SVGs, drawing them, programatically reading and editing them (through SVG DOM), saving them.
I am aware of the following package:
- MobiForm SVG (commercial, but is being discontinued)
- SvgNet (open source)
- Svg# (open source)
- Librsvg (open source)
- Batik (open source)
If you have used any of the above, please let me know about your experience with it. Also please let me know if you have used one that is not in the above list.
We will be building a commercial application that uses the chosen SVG component.
Regards,
Victor
Victor Boctor
http://www.futureware.biz[^]
|
|
|
|
|
Ok, I'm trying to create a new interface for an existing program. Basically I want to get information (pictures, text) and port it into a new window in a different format. I've come to realize that screen scraping is probably my best bet.
My problems are:
How do I go about screen scraping?
All I can find involves scraping from webpages, this is a windows application.
Is there some way to get a "Window ID" to identify which screen I'm scraping from?
Does the screen I'm using need to be on top? because I am creating a new interface because I want to use it.
Is there a better way to go about this?
Any advice on where to begin?
thanks,
jack
|
|
|
|
|
This is a perticularly troublesome issue since you are dealing with a windows application you want to scrape the data from. You can get the window handle! It is kind of involved but you can get it from it's location, or, you can get it from the module handle but you'll need to use windows API which involves some interop. In the end, you might not even be able to get the information depending on if standard windows controls are used or not. Assuming you have the window handle and that the data you are getting is in a standard list box, you can get at it. You mentioned picures though and I know of no non-convoluted way to scrape that. You can get a binary image right off the screen but the window will need to be made topmost, but what if another window overlaps between the time you bring it to the top and you start scraping? Screen scraping is generally reserved for application where data is in text that is rendered to a destination that supports reading it back as text. In the GUI world you'll need to rely on asking some control for that information and that may or may not be possible, depending on the control which rendered it.
If possible, I'd look at getting at the data in some other way, perhaps its storage medium?
Probably not much help but...
|
|
|
|
|
Iknow how to read text files by c# but idont know how to play movi files from my hard disk by program c# please
I want answer to my Qustion pleas pleas....
abdullah
|
|
|
|
|
As Judah Himango Said:
Download managed DirectX 9 SDK.
Add a reference in your project to Microsoft.DirectX.AudioVideoPlayback.
Video.Play("someFile.mpg");
|
|
|
|
|
Hi Everyone,
I want to make a program in which multiple "same" taskbarnotifier(Image) appears at same time looks like MSN messager. When multiple user login on MSN Messager at a same time a pop window(Image) appears right hand side(On the window Screen) "one by one".
I have already created multiple different Image.
Can you help me out.
Thanks
|
|
|
|
|
How do you add HTML (and their corresponding image files) to a solution and code a browser control to open them? I've added a new folder to the solution and placed the html and image files into it, however, I don't know if this is the correct way to add these files to a solution or how to open the html in the browser once they are added. Any help would be much appreciated.
C.S.
|
|
|
|
|
I have to implement two controls - MyPicture (extends PictureBox) and MyLabel (extends Label). They both have the same additional properties and fields, and the properties do the exact same thing in both these classes. Each property calls Invalidate methods. Both classes have a constructor which puts some default values to the fields, and override the OnPaint method.
Now the problem is: how would you implement this hierarchy in C#? I'm quite new to C# and OOP and I am not fully accustomed to it. I know I can inherit from one class and implement many interfaces. But the additional properties cannot be an interface becouse it contains fields and I would have to write exactly the same code in both classes.
So my request is - how would yopu implement this hierarchy?
|
|
|
|
|
ICustomTypeDescriptor wrote:
Now the problem is: how would you implement this hierarchy in C#?
In C++, this might be a candidate for multiple inheritence. With C#, interfaces are a poor substitute, because as you say, you end up writing the same code in both classes.
However, you still may want to use an interface so that some other class can utilize your specialized class' methods and properties. So, to avoid duplicating the same code, you write a class that implements the functionality, and the classes that implement the interface instantiate the helper class and call its methods.
Does that help?
Marc
MyXaml
Advanced Unit Testing
YAPO
|
|
|
|
|
|
Well, I think I can't instantiate one of the classes and call its methods. So I have to double the code?
So I have another question - it happens to be a DLL, so is it possible to write the dll in Managed C++, using multiple inheritance, and then use it in C#?
|
|
|
|
|
I have a process that starts and runs MS Word for about 10 seconds. Sometimes Word seems to hang; it stays open for 'ever'. Is there an way that I can run a process2 independently of process that checks to see if Word is running and if it is, if it has been open for about a minute, and if it has, to stop it? Thanks in advance.
|
|
|
|
|
You can do the following. Run the follong code to see if MS Word is running and if it is it will kill the process.
using System.Diagnostics;
private Process[] WordProcessList;
.....
int index;
WordProcessList = Process.GetProcessesByName("WINWORD");
for( index = 0; index < WordProcessList.Length; index++)
{
WordProcessList[index].Kill();
}
|
|
|
|
|
How to develop a dropdown list like control from scratch.
|
|
|
|
|
Just atextbox and a flat button in the right and some other textbox without border to actlike the list.
|
|
|
|