|
i want to control mouse movement and clicking using my own application how can i achieve this
|
|
|
|
|
You can achieve it via windows api by sending messages to controls.
|
|
|
|
|
Thanx
if i need some more help regarding the project how can i contact you
|
|
|
|
|
|
you and your question are dump and useless.....
|
|
|
|
|
See the bit at the top of the page "How to answer a question". Please pay attention to point (3).
No trees were harmed in the sending of this message; however, a significant number of electrons were slightly inconvenienced.
This message is made of fully recyclable Zeros and Ones
|
|
|
|
|
The question asked by him was : sdfhjshdfh....
For this only i have replied like that.... If that hurts i am really sorry....
|
|
|
|
|
Nah, doesn't hurt - but if we can't be rude to them, we can't be rude to them! (Even when the post has been deleted!)
No trees were harmed in the sending of this message; however, a significant number of electrons were slightly inconvenienced.
This message is made of fully recyclable Zeros and Ones
|
|
|
|
|
Hello Friends.
I am developing an application in VS2005 using C# in which i have scanned pages and save them in a multi-page tiff file using leadtools control version 15.0. Now i want to sort that scanned pages. suppose the page that I have scanned first want to place it in middle or any place(index) of my choice. can anyone guide me using a sample code that how i can do this using leadtools or any C# function? Please guide me if there is any built in function of leadtools control that will help me to achieve this functionality or any C# feature that can help me to achieve this functionality.
|
|
|
|
|
Member 4624055 wrote: using leadtools control version 15.0.
Did you ask on the Leadtools forum.
|
|
|
|
|
Yes i have also put this question on leadtools form and there support as well but did not get any answer yet.
|
|
|
|
|
Friends Please help me regard to this problem as i am not getting any possible solution yet.
|
|
|
|
|
Hi
I want to write a regular expression to validate my experience field. This field excepts numeric(year) value and decimal(month) value.
For Ex: 4.3(4 yrs and 3 mnths)
I want to validate my texbox value using regual expression so that year is not more than 12 and month is not more tha 11. I need help as early as possible.
Thanks in advance
Nikks
Inderjeet Kaur
Sr. Software Engg
|
|
|
|
|
i think for this you can use Range expression validator instead of Regular Expression
|
|
|
|
|
HI Experts..
How do you convert a number to a string in Crystal Reports?
Plz do reply soon.. Thanks in Advance.......
|
|
|
|
|
I don't have any experience with Crystal Reports, but do you really have to convert a number to a string? I can see the challange in doing the opposite though...
|
|
|
|
|
|
Hi, I have a xml file with more than 1 GB size. I have to read the xml node value from the xml file. I can load the xml file and then read the value of node, but If I load the file its decrease the performance of the application. Is there any other method by which I can read the node value without loading the xml file ?
Pankaj
|
|
|
|
|
Using XMLReader might be one way.
It's not necessary to be so stupid, either, but people manage it. - Christian Graus, 2009 AD
|
|
|
|
|
hii I am desining a form that has glass effect. Well this code works on vista but i need it on Xp. The i am using gets an error saying that "DllNotFound Exception was unhandled". Well I have copyied all the dll that reqired for glass effect from vista.
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using Microsoft.DirectX.AudioVideoPlayback;
using System.Diagnostics;
using System.Drawing.Drawing2D;
namespace welcome_page
{
public partial class Form2 : Form
{
public Form2()
{
InitializeComponent();
this.FitGlass();
}
Video video;
private welcome_page.VistaGlassEffect.VistaApi.Margins marg;
private Rectangle topRect = Rectangle.Empty;
private Rectangle botRect = Rectangle.Empty;
private Rectangle lefRect = Rectangle.Empty;
private Rectangle rigRect = Rectangle.Empty;
private void FitGlass()
{
// If DWM is not enabled then get out
if (!this.IsGlassEnabled())
{
return;
}
// Set the Margins to their default values
marg.Top = 600; // extend from the top
marg.Left = 400; // not used in this sample but could be
marg.Right = 200; // not used in this sample but could be
marg.Bottom = 860;// not used in this sample but could be
this.Paint += new PaintEventHandler(this.Form1_Paint);
// call the function that gives us glass,
// passing a reference to our inset Margins
welcome_page.VistaGlassEffect.VistaApi.DwmExtendFrameIntoClientArea(this.Handle, ref marg);
}
private void apply()
{
this.Paint -= new System.Windows.Forms.PaintEventHandler(this.Form1_Paint);
this.RecreateHandle(); //needed if changing on the fly
this.FitGlass();
}
private bool IsGlassEnabled()
{
//if (Environment.OSVersion.Version.Major < 6)
//{
// Debug.WriteLine("How about trying this on Vista?");
// return false;
//}
//Check if DWM is enabled
bool isGlassSupported = false;
welcome_page.VistaGlassEffect.VistaApi.DwmIsCompositionEnabled(ref isGlassSupported);
return isGlassSupported;
}
// Alpha-blending Paint after the glass extension
// this seems better than the winforms transparency approach because here we can click on the glass!
private void Form1_Paint(object sender, PaintEventArgs e)
{
// black brush for Alpha transparency
SolidBrush blackBrush = new SolidBrush(Color.Black);
Graphics g = e.Graphics;
if (this.IsGlassEnabled())
{
// setup the rectangles
topRect = new Rectangle(0, 0, this.ClientSize.Width, marg.Top);
lefRect = new Rectangle(0, 0, marg.Left, this.ClientSize.Height);
rigRect = new Rectangle(this.ClientSize.Width - marg.Right, 0, marg.Right, this.ClientSize.Height);
botRect = new Rectangle(0, this.ClientSize.Height - marg.Bottom, this.ClientSize.Width, marg.Bottom);
// Fill Rectangles
g.FillRectangle(blackBrush, topRect);
g.FillRectangle(blackBrush, lefRect);
g.FillRectangle(blackBrush, rigRect);
g.FillRectangle(blackBrush, botRect);
}
blackBrush.Dispose();
}
protected override void WndProc(ref Message m)
{
base.WndProc(ref m);
if (m.Msg == welcome_page.VistaGlassEffect.VistaApi.WM_NCHITTEST // if this is a click
&& m.Result.ToInt32() == welcome_page.VistaGlassEffect.VistaApi.HTCLIENT // ...and it is on the client
&& this.IsOnGlass(m.LParam.ToInt32())) // ...and specifically in the glass area
{
m.Result = new IntPtr(welcome_page.VistaGlassEffect.VistaApi.HTCAPTION); // lie and say they clicked on the title bar
}
}
private bool IsOnGlass(int lParam)
{
// sanity check
if (!this.IsGlassEnabled())
{
return false;
}
// get screen coordinates
int x = (lParam << 16) >> 16; // lo order word
int y = lParam >> 16; // hi order word
// translate screen coordinates to client area
Point p = this.PointToClient(new Point(x, y));
// work out if point clicked is on glass
if (topRect.Contains(p) || lefRect.Contains(p) || rigRect.Contains(p) || botRect.Contains(p))
{
return true;
}
return false;
}
void buttn()
{
}
private void Form2_Load(object sender, EventArgs e)
{
int width = panel1.Width;
int height = panel1.Height;
System.Uri u = new Uri(@"Z:\B090105\Teja\C2\teja.avi");
video = Video.FromUrl(u);
video.Owner = panel1;
video.Play();
panel1.Size = new Size(width, height);
//this.apply();
}
private void button1_Click(object sender, EventArgs e)
{
this.Close();
//SpVoice sp = new SpVoice();
//sp.Speak("Who is this bich", SpeechVoiceSpeakFlags.SVSFlagsAsync);
//sp.WaitUntilDone(Timeout.Infinite);
}
}
}
Reply Me fast please
|
|
|
|
|
Windows XP does not support glass effect, it's Vista only.
|
|
|
|
|
Viswa Teja wrote: Reply Me fast please
I think understanding your post itself a time consuming one instead how can you expect a fast reply...
|
|
|
|
|
Viswa Teja wrote: "DllNotFound Exception was unhandled". Well I have copyied all the dll that reqired for glass effect from vista.
I'm impressed.
If you succeeded in copying all the dlls required for the vista glass (which of course you have not) and placed them on Windows XP then you would not have XP anymore but vista as you will need the entire vista operating system for glass to work.
If you have knowledge, let others light their candles at it.
Margaret Fuller (1810 - 1850)
www.JacksonSoft.co.uk
|
|
|
|
|
what do you mean by notify icon
|
|
|
|
|
ap kis se puch rahe hai
Thanks & Regards
Form :-
Vikash Yadav
|
|
|
|