|
Ronin114 wrote: e doesnt seem to return any info
So the picturebox does fire the event when you move the mouse? What do you mean by "no info", does e equal "null"?
I are troll
|
|
|
|
|
well win i move the mouse it does nothing i have hookd e.x and e.y to a textbox and they return 0
|
|
|
|
|
hi.. i need database design for 2way sms thru modem..please help me
|
|
|
|
|
It's useless to stand in a street and fill a sentence or two with keywords, waiting for an answer - unless you want to talk to God.
Back to your question; there isn't a default design for handling 2-way sms. In fact, you can send and receive messages without using a database. So, if your specs say that a database is needed, ask yourself "why".
What facts are you going to store in that database? Make a list, please - then search Google or CP for "normalization principles", and convert your list to a design.
I are troll
|
|
|
|
|
|
|
I have to add the facilities of adding water mark on video files.
I am developing my application in c#.
any body help me for the same.
Thanks In advance.
|
|
|
|
|
You need to reencode the video and overlay the watermark on it.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Can u please elaborate on it??
|
|
|
|
|
Wow - this is an old question. You need to reprocess the video, and put the watermark on top. That's if you want a video file to contain a watermark, you need to put it there. If you just want to SHOW it with an overlay, you can play it using WPF.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
Ya this is an old question.
I am actually new to this, so i don't know about reprocessing and putting some watermark on it...
If u can guide me on this with some example...it will be really helpful..
|
|
|
|
|
As previously noted, I don't do anything close to this, any more. I'm sure there's ways of doing it now that did not exist when I was looking in to it, but I'd be googling for you, I'm sure you can do that.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
|
Convert it to an RTF first.
Seriously, if you could do that, why would there be all these people selling PDF libraries on the web ?
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
|
You cannot open a PDF in RichTextBox control. RichTextBox is not a PDF viewer control.
Calin
|
|
|
|
|
i want to change this xXrFnUlCk to oriya in c#.net windows application is it possible .if it's possible wat's the steps n code .
|
|
|
|
|
What the hell do you mean ? You're syaing this string is encrypted ? You need to know how, in order to decrypt it.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
i think you have to take some basic lessons on globalisation. Please do some homework yourself or atleast google and get some basic idea about what it is... before posting it here.. or if you are stuck with a real problem the state it clearly
|
|
|
|
|
hello,
i am using WMI to trap PrintJobs.
when a PrintJob arrives - the event HandleEvent is triggered nicely.
in the Event i wish to open a Form with the form.show()
the Form is opened but remains frozen with the Not Responding message.
if i use the form.showdialog() it looks ok but not sure what dimends hides behind...
i tested the trigger mechanism by using a timer which fires the same event.
in this case there is no problem with the form.show()
at first i thought it was a problem with my form itself but it was not so
because i changed the form to a simple form with nothing inside and it responded the same way.
i also tried hiding the form and showing it but the same problem accured.
then i went and created a different WMI , with timer. same problem.
when i look at the processes in the window task manager i see
both my form and another application with the same name.
maybe this can give a hint?
can anyone tell me what am i doing wrong ?
my fingers are acing for a solution...
here's a piece of my code :
this is what i use to trap the event :
--------------------------------------
WqlEventQuery query = new WqlEventQuery(@"Select * From __InstanceCreationEvent Within 3 Where TargetInstance ISA 'Win32_PrintJob'");
ManagementEventWatcher watcher = new ManagementEventWatcher(query);
watcher.EventArrived += new EventArrivedEventHandler(this.HandleEvent);
PrintJobCollection.ResetMyPrintJobCollection();
watcher.Start();
this is what needs to be done when the event arrives:
-----------------------------------------------------
public void HandleEvent(object sender, EventArrivedEventArgs e)
{
Form OpenCountMaxForm = new PaperCountMaxForm();
OpenCountMaxForm.Show();
}
thanks in advance,
avi
|
|
|
|
|
Have you tried to create PaperCountMaxForm into a new Thread ?
Calin
|
|
|
|
|
no, haven't yet.
But can you please explain what is the nature of this behaviour ?
i mean if a new thread will solve the problem what will happen
with the memory management ?
i am afraid there is something hidden here that might cause memory leak
i read somewhere that using WMI too much will cause the OS to hang...
thanks,
Avi
|
|
|
|
|
hi i need help
im doing drag drop to listview imagelist images....selected images.my drag drop part cannot work...i tried so many type of coding but could't now im tring....creat another image list in listview 2 and add those selected items images in to that list view...i can add item text but cannot add image....anyone if can pl help me.....
thanks a lot here is my code...
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.IO;
namespace Project_import_1
{
public partial class ImportForm : Form
{
public ImportForm()
{
InitializeComponent();
}
OpenFileDialog dlg = new OpenFileDialog();
private void import(object sender, EventArgs e)
{
ImageList imageList = new ImageList();
imageList.ImageSize = new Size(100, 80);
imageList.ColorDepth = ColorDepth.Depth32Bit;
int i = 0;
string[] files = dlg.FileNames;
string[] pathes = new string[files.Length];
foreach (string file in files)
{
pathes[i] = file;
i++;
}
foreach (string path in pathes)
{
imageList.Images.Add(Bitmap.FromFile(path));
FileInfo fileInfo = new FileInfo(path);
String strDir = fileInfo.Name;
listView1.Items.Add(strDir);
listView1.TileSize = new System.Drawing.Size(100, 80);
}
for (int j = 0; j < pathes.Length; j++)
{
this.listView1.Items[j].ImageIndex = j;
}
this.listView1.View = View.LargeIcon;
this.listView1.LargeImageList = imageList;
}
private void btnImport_Click(object sender, EventArgs e)
{
dlg.Filter = "All Image Files|*.bmp;*.ico;*.gif;*.jpeg;*.jpg;" +
"*.jfif;*.png;*.tif;*.tiff;*.wmf;*.emf|" +
"Windows Bitmap (*.bmp)|*.bmp|" +
"Windows Icon (*.ico)|*.ico|" +
"Graphics Interchange Format (*.gif)|*.gif|" +
"JPEG File Interchange Format (*.jpg)|" +
"*.jpg;*.jpeg;*.jfif|" +
"Portable Network Graphics (*.png)|*.png|" +
"Tag Image File Format (*.tif)|*.tif;*.tiff|" +
"Windows Metafile (*.wmf)|*.wmf|" +
"Enhanced Metafile (*.emf)|*.emf|" +
"All Files (*.*)|*.*";
dlg.InitialDirectory = @"C:\Documents and Settings\All Users\Desktop\";
dlg.Multiselect = true;
try
{
if (dlg.ShowDialog() == DialogResult.OK)
{
import(sender, e);
}
dlg.Reset();
}
catch (Exception ex)
{
MessageBox.Show(ex.Message);
}
}
private void listView1_ItemDrag(object sender, ItemDragEventArgs e)
{
this.listView1.DoDragDrop(this.listView1.SelectedItems[0], DragDropEffects.Copy);
}
private void listView1_DragEnter(object sender, DragEventArgs e)
{
if (e.Data.GetDataPresent(typeof(ListViewItem)))
{
e.Effect = DragDropEffects.Copy;
}
else
{
e.Effect = DragDropEffects.None;
}
}
private void listView2_DragDrop(object sender, DragEventArgs e)
{
ListViewItem item = e.Data.GetData(typeof(ListViewItem)) as ListViewItem;
this.listView2.View = View.LargeIcon;
ImageList imageList = new ImageList();
imageList.ImageSize = new Size(100, 100);
imageList.ColorDepth = ColorDepth.Depth32Bit;
int i = 0;
foreach (ListViewItem each in listView1.SelectedItems)
{
listView2.Items.Add(item.Text, item.ImageIndex);
listView2.TileSize = new System.Drawing.Size(100, 80);
}
for (int j = 0; j < listView1.SelectedItems.Count; j++)
{
this.listView1.Items[j].ImageIndex = j;
}
this.listView2.View = View.LargeIcon;
this.listView2.LargeImageList = imageList;
}
modified on Friday, February 27, 2009 2:01 AM
|
|
|
|
|
Have you set AllowDrop = true ?
Calin
|
|
|
|
|