|
You can change what the selection is in the textbox, that makes more sense to me. But, the only way to get a cursor AFAIK is to focus on the textbox.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Hello, at first, i am german and i can't speak a perfect english.. thx
My Problem is, i have an Access Database and a DataGridView in my Applicatoin.
i have use the Wizard to Make a Databinding to the Database
As i have Build my DGV with Drag and Drop in my Application, i have use the smal little Pionter on the top right corner... i hope you understand qhat i mean.
okay.... the datas was also in the DGV, BUT if i make changes in the database, the DataGridView don't show it.... why? what can i do, to make the DataGridView shows the current datas in the database....
thare is my C# Code from Highscores.cs
using System;<br />
using System.Collections.Generic;<br />
using System.ComponentModel;<br />
using System.Data;<br />
using System.Drawing;<br />
using System.Text;<br />
using System.Windows.Forms;<br />
using System.IO;<br />
using System.Data.OleDb;<br />
<br />
namespace Zahlenraten<br />
{<br />
public partial class f_Highscores : Form<br />
{<br />
public f_Highscores()<br />
{<br />
InitializeComponent();<br />
}<br />
<br />
private void f_Highscores_Load(object sender, EventArgs e)<br />
{<br />
this.highscoreTabelleTableAdapter.Fill(this.highscoresDataSet.HighscoreTabelle); <br />
}<br />
<br />
private void b_zurück_Click(object sender, EventArgs e)<br />
{<br />
this.Close();<br />
}<br />
}<br />
}
|
|
|
|
|
|
The changes are applied to the database, you need to refresh your datagridview.
Bob
Ashfield Consultants Ltd
|
|
|
|
|
Yes thx, but my problem is... how i have to refesh this?....
i add Datas vom the first Form of my Application. And the DataGridView is in the Second Form....
and if i open this form, i want to see the new datas....
what is the code to update/refresh oder what ever.... the DataGridView to see the new datas?
|
|
|
|
|
i'm using SQL Server 2005, Windows XP SP2, Visual Studio .Net 2003, AVG anti-virus, no firewall, no proxy.
i configure IIS (virtual directory) and SQL Server (publication) as described in Miscrosoft web site.
i installed Microsoft SQL Server 2005 Mobile Edition and configured for web sycronization. i tried everything which mentioned in many blogs, forms and msdn but i recieve the error "Header Information is either is corrupted or missing..."
When i type "http://[Server IP]/[Virtual Directory]/sqlcesa30.dll", it return a valid result but i cannot connect to SQL Server for Pull or Push or SubmitSql process.
here is my code
string rdaOleDbConnectString = "Provider=SQLOLEDB;" +
"Data Source=" + MainForm.ServerIP + ";" +
"User Id=" + MainForm.DBUserID + ";" +
"Password=" + MainForm.DBPassword + "; " +
"Initial Catalog=" + MainForm.DBName + ";";
SqlCeRemoteDataAccess rda = null;
try
{
rda = new SqlCeRemoteDataAccess();
rda.InternetLogin = MainForm.WebUserID;
rda.InternetPassword = MainForm.WebPassword;
rda.InternetUrl = "http://" + MainForm.ServerIP + "/" + MainForm.WebDir + "/sqlcesa30.dll";
rda.SubmitSql(txtQuery.Text, rdaOleDbConnectString);
MessageBox.Show("The query execution is successfull");
}
catch (SqlCeException exc)
{
MessageBox.Show(exc.Message);
return;
}
finally
{
rda.Dispose();
}
is there any suggestions?
|
|
|
|
|
I am doing an application in which i want to use an Excel file as backend processor. The Excel file is having some functions, which could generate values for tax .
I need to integrate this Excel file in C# and do an application, finally it works as a software and inputs values to excel file in back end and returns the concerned values.
Someone please put forward some ideas...
Thanks in advance....
SAJAN A PILLAI
ASP.NET,C#.NET Programmer
BANGALORE
"Winners don't do different things. They do things differently. ...
|
|
|
|
|
Hi all
I have been working on a piece of GIS software with my team for a little over 12 months now. We have now made it to the Microsoft Imagine Cup World Finals and are seeking to improve certain areas of our program. One of which is to improve the method we use to calculate the remaining trip time of a vehicle on a predefined route, at any point in its route. Can anyone please provide an algorithm we can use or some source where we can learn to build a more efficient algorithm. Time is short, but this is a very necessary improvement. Thanks in advance for any help.
Kind regards.
Dev
|
|
|
|
|
Please don't cross post, you are getting plenty of response in the lounge.
He who makes a beast out of himself gets rid of the pain of being a man
|
|
|
|
|
Sorry... didn't know which forum was the most appropriate to post on.
|
|
|
|
|
devil85 wrote: didn't know which forum was the most appropriate to post on.
So to be absolute sure to get it wrong, you posted in several forums.
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
But if you post a question in every forum, you'll get it right once.
BDF
A learned fool is more a fool than an ignorant fool.
-- Moliere
|
|
|
|
|
That's 3% right. Not much of a track record...
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
Dear All,
I want to pass datatable as parameter into method that's written in webservice. It was compiled without escalating any bugs but when I tried to access .asmx files from web location, its return some error which I could understand. So, if you anyone know, how to do this with webservice. kindly leave some sample codes
Regards
Balaji.K.Jeyaram
|
|
|
|
|
This is wrong on so many levels.
1. What error did you get? Why don't you tell us that?
2. Did you try googling with the error message?
Take a look at the very first result here[^] for the answer and please read this[^] as well.
Cheers,
Vikram.
The hands that help are holier than the lips that pray.
|
|
|
|
|
Even I have the same problem. If anyone knows the solution please help me.
The error I am getting is "There was an error generating the XML document".
|
|
|
|
|
I have created a folder called test by:
Directory.CreateDirectory("C:\test") on FormLoad Event.
Is it possible to write the code for that 'test' folder?
Actually I need to show the form while we click on that folder.And on this form I want to set the password.
Thank you.
|
|
|
|
|
Prabhat003 wrote: Is it possible to write the code for that 'test' folder?
What do you mean ?
Prabhat003 wrote: Actually I need to show the form while we click on that folder.And on this form I want to set the password.
No. At least, not without creating a process that hijacks the file system. And, even then, you'll be creating code that people can just stop, to unprotect it. Why not use the built in windows stuff to encrypt a folder instead ?
You can buy C++ programs to do this, so I assume it could be done with C# and p/invoke. But, it's not trivial, not by a long shot.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Prabhat003 wrote: Is it possible to write the code for that 'test' folder?
This line is not clear for me. what you are trying to do?
if i am right , then i thing you want to set password corersponding to folder. when you create the folder, you can use one tree view like folder strcture in you form with a folder image which
D:\.....
.. Test
and when you click on that tree node do the required opertion .
Best Regards
-----------------
Abhijit Jana
Microsoft Certified Professional
"Success is Journey it's not a destination"
|
|
|
|
|
No, you're lost. He wants the file system to show his password dialog when he tries to open the folder. I think the way to do this, is to create encrypted files that appear as folders within the file system, but actually are opened by his app. So, if his app is not running, the folder cannot be opened, as it's not a folder in the first place, it's a file which is associated with his app and contains encrypted data.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
As I have already told, I just want to set the password for the folder created.Can there be any method like, Click Event for that folder?
I ll appreciate ur help.
Thank u.
|
|
|
|
|
Yeah, there's an event for 'set a password for this folder in the file system'. I told you there wasn't, just to confuse you.
OR you could read my first answer. No, you can't do that. You CAN define a file format that encrypts data and looks as if it's in the file system, and you can create a file that represents that folder, and which is associated with your exe. You can probably do other funky stuff as well, but not in C#, not without using p/invoke to essentially use C++ APIs.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Christian, if he couldn't understand your original response, there's no way he's going to understand sarcasm.
Cheers,
Vikram.
The hands that help are holier than the lips that pray.
|
|
|
|
|
True...
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Sorry but I just want to know is there any click event for the folder created.
thank u.
|
|
|
|