|
Hi
I develop a mobile device with a Touch-Screen (1024*768) with XP-Embedded. The application should be region/language independet.
The standard XP On-Screen-Keyboard is too small.
Can I manipulate the size of the buttons programmatically?
or
Is there a way to program a multi-language keyboard myself?
or
Does anybody know a good 3rd-Party-Tool/Library programmed in C#?
Thanks and best regards,
Martin
|
|
|
|
|
i have two combo box on my page. depending on first combo box value of second combo is changed. in second combobox i have some data which is not visible completely becoz the length of data is bigger than size of combobox.i don'nt want to change the size of combo box
my problem is when the size of data is bigger than the size of combobox . when i keep the the mouse pointer on that data the data scroll to left and right so that visible properly without changing the size of combo box
Amit Grover
CDAC R&D
|
|
|
|
|
hi guys,
I'm using the standard toolbar (.NET) and I need to set the background colour. Unfortunately I could not find a way.
Any pointers pls?
programming....the devine gift from God
|
|
|
|
|
hi friends
i am trying to fetch data from Oracle database using dataadpator into data table.But i am not able to get it.
I am using the OracleClient namespace. Data is getting inserted in the tables but not able to fetch from there.
If someone can providethecode for itthen it'll be really very helpfull. the program is not giving any errors. the same codewhen used with SqlClient namespace fro fetching data from sql server, then it was working properly.
Kindly someone please give me some urgent help regarding the above mentioned problem. if you want the code for it then do ask me i'll provide it.
Thanx in advance.
nauty
|
|
|
|
|
Hi all ,
I am using a qodbc data source. when i fire a select query on a table i get following error
"QODBC ERROR [42500] [QODBC] Error"
Can any one help me?
|
|
|
|
|
i need a function that:
when i enter a date , function checks that format
if that format is correct(such as 1384/02/03) return 1 and if not correct return 0;
and type of date field in database is not "date" its "varchar".
and my date is solar it's not of the Christian era.
thanks for your help
|
|
|
|
|
Don't spam the forum.
Don't cross post.
|
|
|
|
|
|
WHat would the coding be to open an XML file when the application loads?
its saved in the applications folder under Settings\\Settings.xml
In the end we're all just the same
|
|
|
|
|
XmlDocument xmlDoc = new XmlDocument();
xmlDoc.Load("FILENAME.XML");
|
|
|
|
|
Thanks!
In the end we're all just the same
|
|
|
|
|
i write a function and i can not to call it
how can i call the fanction with btn_click.
private bool format(string date)
{
bool format;
if (date == "1384/04/03")
{
format = true;
}
else
{
format = false;
}
return format;
}
private void Button2_Click(object sender, System.EventArgs e)
{
date=txtdate.Text;
format(date);
}
|
|
|
|
|
The code you posted seems to be fine (it worked for my vs).
Could it be that the Button2_Click() Method isn't called.
Check the EventHandler for Button2 - there should be something like:
this.button2.Click += new System.EventHandler(this.Button2_Click);
|
|
|
|
|
i found the answer.
classname p= new classname();
p.format(date);
|
|
|
|
|
I have a button and the code on its this:
btnStartMnu.Image = System.Drawing.Image.FromFile("Themes\\WinME2\\WindowsMEButton1.bmp");<br />
Sound.Play("Sounds\\Camera.wav",PlaySoundFlags.SND_ASYNC);<br />
MessageBox.Show("Theme changed to Windows ME 2!", "Theme Changed");<br />
string appPath = Path.GetDirectoryName(Application.ExecutablePath);<br />
m_appSettings.Save(appPath + "\\Settings\\Settings.xml");<br />
m_saved = true;
When you click button, it changes its image and then saves the info in a XML file. What I want to know is how to add code so it will change the colour of a panel called pnlleft to red and panlright change its colour to yellow. How would you do this?
Also is there a way to change a fileMenu colours well?
In the end we're all just the same
|
|
|
|
|
Hey,
as long as you are in the same class you can simply use
pnlleft.BackColor = Color.Red;
(same with the other panel)
for the filemenu it is bit more complicate - the can only change the backcolor of one item - so the only way i know to change it all would be to go through every item.
|
|
|
|
|
i need a function that:
when i enter a date , function checks that format
if that format is correct return 1 and if not correct return 0;
and type of date field in database is not "date" its "varchar".
and my date is solar it's not of the Christian era.
thanks for your help
|
|
|
|
|
Create a DateTimeFormatInfo for the calendar you are using. Use that in the DateTime.Parse or DateTime.ParseExact method to parse the date. Use try...catch to catch the FormatException exception that occurs if the string format is incorrect.
---
b { font-weight: normal; }
|
|
|
|
|
How do bind a data using DataReader?
|
|
|
|
|
Hi,
First build a connection string and then initialise the command and reader object as
Write this in the event when you want it to be done:(i have used MSAccess as database)
OleDbConnection conn=new OleDbConnection(@"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\new1.mdb");
conn.Open();
OleDbCommand cmd=new OleDbCommand("select * from Table1",conn);
OleDbDataReader rdr=cmd.ExecuteReader();
rdr.Read();
DataGrid1.DataSource=rdr;
DataGrid1.DataBind();
This is a simple example..
YOu try out for more samples..
Feel free to ask anything regarding this..
|
|
|
|
|
hi
try this:
1. open connection
2. SqlCommand objSqlCommand = new SqlCommand();
3. SqlDataReader objSqlDataReader;
objSqlDataReader = objSqlCommand.ExecuteReader();
objSqlDataReader.Read();
grid.DataSource = objSqlDataReader;
grid.DataBind();
objSqlDataReader.Close();
3. close connection
|
|
|
|
|
Hello everyone,
Greetings from Brazil! As shown in the code below, is it possible for me to add the new objects for tipoDT and sementesDT without having to do it one-by-one? Like, for example, getting the values automatically from the tables?.... How would I do that? The sementesDT table is quite large and would take me forever to add the new objects one-by-one! Here's the code:
public frmBA()
{
tipoDT = new DataTable("tabTipoSemente");
tipoDT.Columns.Add("CodTipo", typeof(int));
tipoDT.Columns.Add("Tipo", typeof(string));
tipoDT.Rows.Add(new object[] { 0, "Nocivas Probidas" });
tipoDT.Rows.Add(new object[] { 1, "Nocivas Toleradas" });
tipoDT.Rows.Add(new object[] { 2, "Sementes Silvestres" });
sementesDT = new DataTable("tabSementes");
sementesDT.Columns.Add("CodSemente", typeof(int));
sementesDT.Columns.Add("CodTipo", typeof(int));
sementesDT.Columns.Add("Semente", typeof(string));
sementesDT.Rows.Add(new object[] { 0, 0, "SubCat0-Cat0" });
sementesDT.Rows.Add(new object[] { 1, 0, "SubCat1-Cat0" });
sementesDT.Rows.Add(new object[] { 2, 0, "SubCat2-Cat0" });
sementesDT.Rows.Add(new object[] { 3, 1, "SubCat3-Cat1" });
sementesDT.Rows.Add(new object[] { 4, 1, "SubCat4-Cat1" });
sementesDT.Rows.Add(new object[] { 5, 1, "SubCat5-Cat1" });
sementesDT.Rows.Add(new object[] { 6, 2, "SubCat6-Cat2" });
sementesDT.Rows.Add(new object[] { 7, 2, "SubCat7-Cat2" });
sementesDT.Rows.Add(new object[] { 8, 2, "SubCat8-Cat2" });
InitializeComponent();
tipoBS = new BindingSource();
tipoBS.DataSource = tipoDT;
TipoComboBoxColumn.DataSource = tipoBS;
TipoComboBoxColumn.DisplayMember = "Tipo";
TipoComboBoxColumn.ValueMember = "CodTipo";
unfilteredSementesBS = new BindingSource();
DataView undv = new DataView(sementesDT);
unfilteredSementesBS.DataSource = undv;
EspecieComboBoxColumn.DataSource = unfilteredSementesBS;
EspecieComboBoxColumn.DisplayMember = "Semente";
EspecieComboBoxColumn.ValueMember = "CodTipo";
filteredSementesBS = new BindingSource();
DataView dv = new DataView(sementesDT);
filteredSementesBS.DataSource = dv;
}
Thank you very much for your attention, time and help and I'm looking forward to your reply.
Best regards,
JC Carmo
|
|
|
|
|
JC Carmo wrote: Like, for example, getting the values automatically from the tables?....
What tables ? If you mean in a database, then yes, that's what a dataset is really for.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
I mean the tabSementes table that is referenced in the code. How do I connect it to a DataSet ? Thanks for your reply.
JC.
|
|
|
|
|
A DataSet is a collection of DataTables, I'd assume you can create a datatable and add it to the Tables collection of a DataSet.
Christian Graus - Microsoft MVP - C++
|
|
|
|