|
you can also check memory leak issue like this......
check your drive memory value after this,open your application, again check your drive memory value and after this close your application, if your application dose not release the memory then there is problem in your application....
on form.closed event,dispose all objects which you have used in current form.
like
picturebox.Image = Nothing
|
|
|
|
|
|
It can change tabcontrol color by using DrawItem event in .net framework.
But how to do in .net compact framework?
Thanks a lot!
modified on Tuesday, May 12, 2009 5:01 AM
|
|
|
|
|
I want to Develope software for cellphone that can Remotely Access Pc using Bluetooth Is is necessary That Mobile should be always Windowsmobile? and What would be the Possiblities and Requirements for its implementation plz Give me suggestions and ideas regarding this
|
|
|
|
|
|
Hey,
I am interested in creating an application that logs all incoming and outgoing calls on the different mobile operating systems.
It would log the following:
A. The number it came from.
B. Outgoing or incoming.
C. Time of call.
D. Duration of call.
How can this be achieved in windows mobile? What API should i be reading about to "intercept phone calls"?
Thanx.
|
|
|
|
|
On Windows Mobile this can be done by using the State and Notification Broker. It is available in both native and managed code for Windows Mobile. Among other things the class will notify you when a call is coming in along with Caller ID data, when the conversation begins, and when the conversation ends. The other data you are looking for can be infered from these three items.
|
|
|
|
|
how to download the call log application
|
|
|
|
|
I want to display a text file containing Bengali language font. The text file is in UTF-8 format. Japanese and Bengali language font is displaying like box.
My development environment is VC++(2008)+ Pocket PC 2003 SDK. and my Device version Acer n30:Windows Mobile 2003 Se
In the device regional settings there is no option for Japanese and Bengali language setting.
I have copied MSGothic.ttf font to \windows folder but still displaying japanese font like box.
Note: All the font are in unicode format.
|
|
|
|
|
It should be C:\Windows\Fonts
|
|
|
|
|
Result is same for location '\Windows\MS Gothic.ttc' and '\windows\Font\MS Gothic.ttc'
|
|
|
|
|
I want to display a text file containing Bengali language font. The text file is in UTF-8 format. Japanese font is displaying but Bengali language font isn't displaying.
My development environment is VC++(2008)+ Pocket PC 2003 SDK.
|
|
|
|
|
Your Windows Mobile image must already have support for the language. If that's satisfied there's nothing more that you have to do. If your device came from the OEM without support for that language then there's not much of anything that you can do.
OEMs tend to install the fonts for a small set of languages because of restrictions on available ROM space. If you have a desktop that supports that language you can try to copy the font file for the language to your Windows Mobile device but due to copy right restrictions you typically cannot distribute the font with your software.
|
|
|
|
|
Hi,
I am not able to get the windowtext of all windows opened in device(taskmanger application).
Also Getprocess() is not working in WM6.Is there anyother way to retrieve all the HANDLES so that i can get the windowtext using GetWindowText().
Thanks.
|
|
|
|
|
I am responding to your question after some delay, so you may have already found your answer. If not, I think that you should look into the EnumWindows[^] function to get the window handles, then you should be able to utilize GetWindowText.
|
|
|
|
|
Hello. I have a problem on a mobile application and I'm not able to find any logical explanation, and thus any solution.
The thing works like this:
- the user has two fields for date and time and one for a string. The application just get the information from these textboxes, passes them to a web service and the web service save them into the database.
- because the date/time for the device might be incorrect, the application gets date and time from the server using the web service
- to avoid the situation in which the connection to the server is lost, the date/time are retrieved from the server when the user log in to the application. When entering the screen containing date/time details, it calculates the number of seconds that passed since the user logged in and add them to the server date/time. In the textboxes this date/time is displayed and the user hasn't the possibility to change them.
Everything worked fine, but it seems that for one device date and time that is saved into the database is 1/1/2001 12:00:00. I was not able to reproduce this situation on the emulator or on the device that I have. Each time I save something the correct date is available.
If someone has any idea, please HELP.
Thank you.
|
|
|
|
|
I know that DateTime.MinValue is equal to 01/01/01. I think some of the code may have automatically assumed that the year in this string was for the 21th century and added the 20 at the begining of the year. I'd be willing to bet that the region/culture settings on the device on which you are observing the problem are different. So you may need to update your code to either use the neutral culture or to be compatible with other cultures.
|
|
|
|
|
Thank you for you answer. It is possible that, as you said, the regional settings of the device are not the one from other devices. Unfortunately this happens only from time to time, thus there was a code problem that hopefully now is fixed.
|
|
|
|
|
the problem that my code does the update during the same run while iam out and run again i find nothing of the updates i think it's a comminting problem anyway hope anyone help me!!
plz check the code:
public partial class Form1 : Form
{
static SqlCeConnection _connection = null;
public static SqlCeConnection Connection
{
get
{
if (_connection == null)
{
_connection = new SqlCeConnection(ConnectionString);
_connection.Open();
}
return _connection;
}
}
public Form1()
{
InitializeComponent();
}
public static DataSet ds = new DataSet();
public static int rowindex = -1;
private void menuExit_Click(object sender, EventArgs e)
{
Close();
}
#region File & Database Details
static string CurrentFolder
{
get { return Path.GetDirectoryName(Assembly.GetExecutingAssembly().GetName().CodeBase); }
}
const string _databaseLocalFileName = "DB1.sdf";
static string DatabasePathName
{
get { return Path.Combine(CurrentFolder, _databaseLocalFileName); }
}
const string _baseConnectionString = "Data Source =";
static string ConnectionString
{
get { return _baseConnectionString + DatabasePathName; }
}
#endregion
private void menuedit_Click(object sender, EventArgs e)
{
rowindex = dataGrid1.CurrentRowIndex;
if (dataGrid1.DataSource != null)
{
panel1.Visible = true;
txtcol1.Text = ds.Tables[0].Rows[rowindex].ItemArray[0].ToString();
txtcol2.Text = ds.Tables[0].Rows[rowindex].ItemArray[1].ToString();
txttblID.Text = ds.Tables[0].Rows[rowindex].ItemArray[2].ToString();
}
else
MessageBox.Show("should load data grid first", "error", MessageBoxButtons.OK, MessageBoxIcon.Hand, MessageBoxDefaultButton.Button1);
}
public static SqlCeDataAdapter adap;
private void btnsave_Click_1(object sender, EventArgs e)
{
try
{
SqlCeCommand cmdUpdate = Connection.CreateCommand();
SqlCeTransaction se = Connection.BeginTransaction();
cmdUpdate.CommandType = CommandType.Text;
cmdUpdate.CommandText = "UPDATE tbl SET Col1=@Col1, Col2=@Col2 where tblID = @tblID";
cmdUpdate.Parameters.AddWithValue("@Col1", txtcol1.Text);
cmdUpdate.Parameters.AddWithValue("@Col2", txtcol2.Text);
cmdUpdate.Parameters.AddWithValue("@tblID", txttblID.Text);
if (Connection.State != ConnectionState.Open)
{
Connection.Open();
}
cmdUpdate.Transaction = se;
cmdUpdate.ExecuteScalar();
se.Commit(CommitMode.Immediate);
Connection.Close();
panel1.Visible = false;
menuItem1_Click(null, null);
}
catch (SqlCeException ex)
{
throw ex;
}
}
private void menuLoad_Click(object sender, EventArgs e)
{
try
{
SqlCeCommand com = new SqlCeCommand("Select * from Tbl ", Connection);
adap = new SqlCeDataAdapter(com);
if (ds.Tables.Count > 0)
{
ds.Tables["tbl"].Clear();
}
adap.Fill(ds, "tbl");
dataGrid1.DataSource = ds.Tables[0];
adap.Dispose();
}
catch (SqlException ex)
{
MessageBox.Show(ex.Message);
}
}
}
|
|
|
|
|
Hi i have create following link and i want both link in one line not saperate line.
<mobile:form id="Form1" runat="server"><mobile:link id="lnkHome" runat="server" font-size="Normal" navigateurl="~/Home.aspx">Home
<mobile:link id="lnkLogout" runat="server" font-size="Normal" navigateurl="~/Logout.aspx">Logout
|
|
|
|
|
Hi i want to add selectionlist in mobile:objectlist. I want two label contorl and one dropdown list and a check box on my mobile form as a datagrid control. My code is
<mobile:objectlist id="ObjectList1" runat="server" commandstyle-stylereference="subcommand" labelstyle-stylereference="title" autogeneratefields="False">
<field name="PatientName" datafield="PatientName" title="Patient Name">
<field name="Room" datafield="Room" title="Room">
|
|
|
|
|
Hi can any one help out to automaticall set page according to client mobile screen. i want page to fit according to clients mobile screen. I am unable to set mobile page height widht even.
|
|
|
|
|
if u r developing ur web application in visal studio(MMIT), u dont need to worry abot the screen size of user devices,, this envirnment outomatically detect the user screeen size and auto adjust according to the size.
|
|
|
|
|
Hi
I would like to buy a BlackBerry Bold but I want to be able to create applications for my mobile device. I googled about this and I found some articles.
I think I can develop applications for Blackberry with C# but I need a loader written in Java. Am I correct?
Can anyone help me about this?
Thanks.
|
|
|
|
|
Afraid not. As far as mobile development goes C# is only for .Net. And .Net Compact Framework assemblies are for Windows Mobile (although there is an S60 component that will allow many Symbian phones to run .Net programs).
|
|
|
|