|
Err.....
Yes, possibly, maybe.
It really depends on what you mean by 'jump to the location'. Do you mean make the mouse pointer move to that location? Or do you mean something else?
Henry Minute
Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”
|
|
|
|
|
i've inserted a new label now i've changed the text to a ""
the silly thing that i've forgat where it is and the label is "invisable to me"
in another env i'm working called CVI i can right click in code on the name of the control
and click go to control, and the designer opens and shows me the control
is there antihng similar in vs 2005
Have Fun
Never forget it
|
|
|
|
|
Oh yes!!
1) ensure the form with the control you want is selected in design view.
2) In the properties window (if you don't have it up use View | Properties Window menu) there is a combo box at the top, drop it down.
3) select required control from drop-down.
4) it will be selected in designer, and its properties are displayed.
Henry Minute
Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”
|
|
|
|
|
|
Of course, a decent naming convention helps here as well. As your control is called label13, you have no idea what it is or what context it has, hence your difficulty in finding it. If your control was called something like labEmailAddress it is obvious what the label is for, and would be much easier to find later on.
"WPF has many lovers. It's a veritable porn star!" - Josh Smith As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.
My blog | My articles | MoXAML PowerToys | Onyx
|
|
|
|
|
|
My application enables desktop sharing between a system and a PDA through Wi-Fi.As the screen resolution is different i cannot do mouse movements.wht other features can i include in the project.
This code was posted by me...
|
|
|
|
|
Can you get it to make coffee?
Henry Minute
Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”
|
|
|
|
|
Vivek Vijayan wrote: desktop sharing between a system and a PDA
If there was a bit more here then maybe, just maybe, you would get a sensible answer.
You cannot 'share' the mouse movement but you should be able to do something about clicks, showing menus and bunnies.
Panic, Chaos, Destruction.
My work here is done.
|
|
|
|
|
Vivek Vijayan wrote: As the screen resolution is different i cannot do mouse movements
Why? can't you keep track of the mouse position in the coordinates of the other system, and show it scaled to your own resolution?
as in myMouseX=hisMouseX*myXmax/hisXmax; ?
Luc Pattyn [Forum Guidelines] [My Articles]
The quality and detail of your question reflects on the effectiveness of the help you are likely to get.
Show formatted code inside PRE tags, and give clear symptoms when describing a problem.
|
|
|
|
|
ok i will try
can u suggest more features
This code was posted by me...
|
|
|
|
|
i'm trying to insert data to access db, and i did it, but the problem is after first insert when check the db data is there, then close the application and run it again the last inserted data is missing, what might be the problem.
|
|
|
|
|
Actually the senerio is not clear, Probably you using a datatable with a disconnect recordset, Try to directly insert.
Md. Marufuzzaman
|
|
|
|
|
no i'm using oleDbDataAdapter1,dataSet11,oleDbConnection1 and following s the code
DataRow dr = dataSet11.Table1.NewRow();
dr["ic"] = txt1.Text;
dr["DES"] = txt2.Text;
dr["STKBAL"] = txt3.Text;
oleDbConnection1.Open();
dataSet11.Table1.Rows.Add(dr);
oleDbDataAdapter1.Fill(dataSet11);
oleDbDataAdapter1.Update(dataSet11,"table1");
oleDbConnection1.Close();
|
|
|
|
|
Ummm... you're adding a DataRow to a DataTable in a DataSet then filling the DataSet with the contents of the database? Doesn't that wipe out the existing data in the DataSet?
Other than that; why are you using a DataSet and a DataAdapter? You probably just want to use ExecuteNonQuery to add the data.
|
|
|
|
|
I would have thought that you might want to Open the Connection first??
Excellence is doing ordinary things extraordinarily well.
|
|
|
|
|
Check all the stored procedures/SQL queries that are fired on the DB until you close your application. If the data has been inserted, it can vanish only if some command that does so is run.
Had it been SQL server, Profiler would have helped you out. Don't know if it works with Access or there is something like that for Access DB too.
|
|
|
|
|
if you are running your application from visual studio and your access db file is added to project right click on your access db file, select properties, and set "copy to output directory" to "copy if newer"
hope it helps
Let there arise out of you a band of people inviting to all that is good, enjoining what is right, and forbidding what is wrong: They are the ones to attain felicity.
Āli-'Imrān (The Family of Imran), 104.
|
|
|
|
|
Here is my code, and i tried same code for file access control, it works well. but doesn't work for common application data on Vista.
<code>
private static void GrantEveryoneFullControlRight(string directory)
{
try
{
if (!Directory.Exists(directory))
Directory.CreateDirectory(directory);
DirectoryInfo dirInfo = new DirectoryInfo(directory);
DirectorySecurity ds = dirInfo.GetAccessControl(AccessControlSections.Access);
FileSystemAccessRule rule = new FileSystemAccessRule(
"Users", FileSystemRights.FullControl, AccessControlType.Allow);
ds.AddAccessRule(rule);
dirInfo.SetAccessControl(ds);
}
catch (Exception ex)
{
Console.WriteLine(ex.ToString());
}
}
</code>
Glad to discuss with you and best wishes.
|
|
|
|
|
|
I do something very similar except use "Everyone" in the access rule:
<br />
<br />
string appDataPath = Environment.GetFolderPath(Environment.SpecialFolder.CommonApplicationData);<br />
string _localUserDataPath = Path.Combine(appDataPath,"My Company\\MyApp\\");<br />
<br />
if (!Directory.Exists(_localUserDataPath))<br />
{<br />
DirectorySecurity ds = new DirectorySecurity();<br />
ds.AddAccessRule(new FileSystemAccessRule("Everyone", FileSystemRights.FullControl, AccessControlType.Allow));<br />
Directory.CreateDirectory(_localUserDataPath, ds);<br />
}<br />
else<br />
{<br />
DirectoryInfo di = new DirectoryInfo(_localUserDataPath);<br />
DirectorySecurity ds = new System.Security.AccessControl.DirectorySecurity();<br />
ds.AddAccessRule(new FileSystemAccessRule("Everyone", FileSystemRights.FullControl, AccessControlType.Allow));<br />
di.SetAccessControl(ds);<br />
<br />
}
|
|
|
|
|
does this work on Vista?
Glad to discuss with you and best wishes.
|
|
|
|
|
Well, I thought it was working on Vista but I must have been running my client in admin mode because I can't get it to work again. What does work is creating an installer package for my windows service that creates the directory in ProgramData. Using vs.net 2008 I added a custom folder called Common Application Data Folder (any name will work). I set the DefaultLocation property to [CommonAppDataFolder] and the Property property to COMMONAPPDATAFOLDER. Then I added my own folders to this folder (Company\commondir). When the install is run it creates the folders and adds "Users" to the security properties for those folders.
This seems to give "Users" enough permission to read/execute and write files to that location. My non-admin windows client can read/ write and execute from the folder and my windows service can as well.
|
|
|
|
|
Thanks for your reply, we granted directory access right in installer too.
It works well.
Glad to discuss with you and best wishes.
|
|
|
|
|
I am working in C# and dealing with very large images - too large to load the entire image into memory (which is what GDI+ Bitmap class does). I wondered if anyone at has had a similar experience and if so - how was this type of issue solved?
Any ideas are much appreciated.
Thanks!
|
|
|
|