|
|
BoneSoft wrote: word = Array.Sort(word, new WordComparer());
well i ve tried this already but it gives compile time error that cant covert type void to type TextMiner.Terminology[]
|
|
|
|
|
Hi howzit?
I need to find a component or sample code that interacts with Novell Groupwise email client. If its in C# that would be great.
I need to beable to import Novell's address book list and also send email with attachments programatically.
Cheers
|
|
|
|
|
I set ListView.ShowGroups=TRUE but i couldnt see the groups on listview at Windows 98 client
W H Y ?
H
Y
?
-- modified at 5:22 Tuesday 23rd May, 2006
|
|
|
|
|
Hi,
I am trying to get Acrobat to draw a page into a System.Drawing.Image.HBitmap class, I have the following code which so far only grabs the desktop window, I need to get an HDC somehow but am not sure exactly where and how I should be doing it:
_pdpage = (CAcroPDPage)_pddoc.AcquirePage(page);
/// This line is the problem:
IntPtr hDC = new IntPtr();
AcroRect pdfRect = new AcroRect();
pdfRect.Left = 0;
pdfRect.right = 200;
pdfRect.Top = 0;
pdfRect.bottom = 200;
_pdpage.DrawEx(0, hDC.ToInt32(), pdfRect, 0, 0, 100);
IntPtr hMemDC = PlatformInvokeGDI32.CreateCompatibleDC(hDC);
IntPtr hBitmap = PlatformInvokeGDI32.CreateCompatibleBitmap(hDC, pdfRect.right, pdfRect.bottom);
IntPtr hOld = (IntPtr)PlatformInvokeGDI32.SelectObject(hMemDC, hBitmap);
PlatformInvokeGDI32.BitBlt(hMemDC, 0, 0, pdfRect.right, pdfRect.bottom, hDC, 0, 0, PlatformInvokeGDI32.SRCCOPY);
PlatformInvokeGDI32.SelectObject(hMemDC, hOld);
PlatformInvokeGDI32.DeleteDC(hMemDC);
Bitmap newBmp = System.Drawing.Image.FromHbitmap(hBitmap);
PlatformInvokeGDI32.DeleteObject(hBitmap);
GC.Collect();
newBmp.Save("C:\\test.bmp");
Now all that code does is draw the desktop window to the file, I need to know where I'm going wrong.
Thanks in advance!
|
|
|
|
|
I have a flash file with .swf extension. Now, I want to view that flash file in an application that written by C#. I'm in dark. Please help me!
Thanks alot!
NPS.
|
|
|
|
|
You need to use Flash ActiveX to view flash files in C#.
check here
Saqib
|
|
|
|
|
I don't want to use Flash ActiveX to view flash files. I only want to code in C# to view flash files. Do you understand me? Please help me!
Thanks alot!
NPS.
|
|
|
|
|
If you want to read the flash file yourself then you must have to understand the file format, read from file and also display and animate graphics yourself, which I think would be difficult.
If you still want to continue then I would say best of Luck, and do share what you do.
Saqib
|
|
|
|
|
hi all,
i want to set title name,author anme to my image how can i set this using c#..
anybody help me..
thanks in adv..
Regards
Sree
|
|
|
|
|
See this one : http://www.codeproject.com/csharp/exifextractor.asp
|
|
|
|
|
thanks...for ur reply..
but its not i wanted..
Regards
Sree
|
|
|
|
|
Well Dears!
Which Port Xp uses when we Access a Shared Folder over a network. as i m working in a restricted enviornment where most of the windows port are blocked. i have to share a folder over network and access it on network. i want to know which port windows uises to browse shared folder over network so as i may be able to unblock that port
thnx in advance
|
|
|
|
|
Try this one :
445 (microsoft-ds)
139 (netbios-ssn)
|
|
|
|
|
Dear Experts
I need some float toolbox in my project which is under development using VC# 2003.I've seen some of this toolbox in Autocad or Photoshop or othe applications like VS2000.But I don't have any idea about it.Any help is highly appreciated in advance.
Best Regards
AsAdi
Reza AsAdi
|
|
|
|
|
|
hi folks,
can anyone please tell me why i can't add a string in a listbox? here's the code
Form1.cs
private void InitializeComponent()
{
printMsg += new myEventHandler(AddItem);
//some code here
}
public delegate void myEventHandler(string msg);
public event myEventHandler printMsg;
[STAThread]
static void Main()
{
Application.Run(new Form1());
}
public void AddItem(string msg)
{
listBox1.Items.Add(msg);
}
---------------------------------------------
Form2.cs
private void button1_Click(object sender, System.EventArgs e)
{
Form1 f = new Form1();
f.AddItem("just testing");
}
i'll appreciate any help. thanks
|
|
|
|
|
lagumaster wrote: Form1 f = new Form1();
You will need to show that form somehow, else you will never see it being added
|
|
|
|
|
Form1.cs
private void InitializeComponent() {
printMsg += new myEventHandler(AddItem);
}
public delegate void myEventHandler(string msg);
public event myEventHandler printMsg;
public void AddItem(string msg) {
listBox1.Items.Add(msg);
}
Form2.cs
[STAThread]
Form1 frm;
static void Main() {
frm = new Form1();
Application.Run(frm);
}
private void button1_Click(object sender, System.EventArgs e) {
frm.AddItem("just testing");
}
|
|
|
|
|
hi,
Please tell me how can i use another application(*.exe) outside my program.
And one more problem i face is how can i rename file ? For example: i have a picker, after i choose a file and fill the new name, this file will be save with the new name.
thanks in advance.
|
|
|
|
|
abiisalwayshappy wrote: Please tell me how can i use another application(*.exe) outside my program.
You mean run another program from your program? Look into System.Diagnostics.Process class.
abiisalwayshappy wrote: how can i rename file ?
System.IO.File.Move can "move" a file from its current directory and into its current directory with a new name.
Tech, life, family, faith: Give me a visit.
I'm currently blogging about: Islamic Domination: Coming to a Jewish state near you!
The apostle Paul, modernly speaking: Epistles of Paul
Judah Himango
|
|
|
|
|
you can start an external process by using Process.Start from System.Diagnostics namespace.
to rename a file you can use File.Move in which you need to specify source and target.
Saqib
|
|
|
|
|
Hi, I have some code in a C++ dll that I'm calling from a .NET 2005 C# application. Inside the DLL method that I'm calling is a process that I'd like to be informed of its current running status (0-100%).
My question is how would I implement some runtime communication between my .NET app and the dll process so as to be able to update a status bar in the .NET app.
Many thanks in advance....
Glenn Manion
GIS R&D Unit
NPWS, NSW, Australia
|
|
|
|
|
Hello Glenn,
You can implement callback system. In which your C++ dll call some method which you can catch in C#. For c# you can create function call delegate.
Divyang Mithaiwala
System Engineer & Software Developer
|
|
|
|
|
Hi Divyang,
Thanks so much for the help. I implemented the call back function as you suggested and this was exactly what I was after.
All the best and thanks again.....
Glenn Manion
GIS R&D Unit, NPWS
NSW, Australia.
|
|
|
|