|
Parameterized constructor?
जय हिंद
|
|
|
|
|
|
Hi friends,
I am currently working on windows mobile.
I need to know how to get different time zones in mobile.
GetSystemTimeZones() function is not available in .NET compact framework.
what would i do to over come this..
Thanks in Advance
|
|
|
|
|
Hi to you all
I'm trying to nudge a picture in excel sheet, but I couldn't do that till now.
Thank you all
mohammed was a great prophet
|
|
|
|
|
Keep trying.
Anyways, what's the question?
जय हिंद
|
|
|
|
|
I have a picture located in cell(D4), I want to nudge it a little right, is there any way to do that.
Thank you
mohammed was a great prophet
|
|
|
|
|
I think Microsoft.Office.Interop.Excel.Picture will help you out.
जय हिंद
|
|
|
|
|
Thank you d@nish for trying to help me,
finally I found the right solution, and I'm going to write it down for every one.
first we have to get the cells range (the code is written within a simple for loop):
object kui = Exl.Cells[i+1,4];
Microsoft.Office.Interop.Excel.Range mr = Exl.get_Range(kui, kui);
then write this lines of code:
mr.Cells.Worksheet.Shapes.Item(i + 1).IncrementLeft(7);
mr.Cells.Worksheet.Shapes.Item(i + 1).IncrementTop(23);
and to rotate the increment you just need to write the numbers within the brackets in negative like that
mr.Cells.Worksheet.Shapes.Item(i + 1).IncrementLeft(-7)
mohammed was a great prophet
|
|
|
|
|
Hi..Experts
I have doubt to get one solution.My task is ,is it possible to take some mobile while we put a data cable to system the folders are be visible in the computer.Shall is any way to create a component in windows form using c#.net ,that by clicking one button the folders may be the sms or images should be copied or drag and drop to that windows form from the mobile.Please suggest me related to this task.
Thanks and Regards
Ch.Gayatri
|
|
|
|
|
If it is a Windows based mobile, RAPI is what you need to use. Here[^] is a library which can help you.
Not sure about other mobiles though.
जय हिंद
|
|
|
|
|
Don't post the same question in multiple forums. Pick one and stick with it.
|
|
|
|
|
Sir plz reply my answer if u know.
Thanks in advance again posted correctly in windows forum.
With Regards
Ch.Gayatri
|
|
|
|
|
hi.., gayatri..,
well am dividing your question in two parts.., that is
1. reading phone related data from the phone (ex: SMS, Phone Book etc..)
2. Reading extranal device data from the phone(ex: The files which are stored in the extranal Flash(momery card))
for the 1st one .., u have to aware of the modem at commands of your Phone manufacturer , for example if u want to read sms from the phone: give the command as AT+CMGL="ALL"(to read all sms's) , AT+CMGR=1(read 1st sms). ( for more details, like reading Phone book , signal quality etc.. read Phone modem manufactures AT Commands Guide). Before this U must have the knowledge of Serial communication.
For Serial communication see: System.IO.Ports Class
for the 2nd one.., Every phone there are two flashs, one is internal flash, 2 nd one is external.., for the 1st one, U must have the Protocol for the communicate the internal flash.., second one u can directly read data from the drive which is detected in your pc.
Thanks
Rajesh B --> A Poor Workman Blames His Tools <--
|
|
|
|
|
yes sir how shall i copied those images and sms from mobile to my own created windows form using c#.net..how?
Thanks and Regards
Ch.Gayatri
|
|
|
|
|
Hi Gayathri!!
The answer for your question HOW SHALL I is not as simple as you think....
Am not discouraging you rather am jus trying to give you some insight regarding your requirement...
As Rajesh clearly divided and explained your problem, you should proceed with a little research on the issues mentioned...
To describe it in a better way...
Requirement: Data from Mobile phone is to be viewed on the computer, Datas from computer to be transferred to the mobile phone(Either to internal FLash or External Flash)
The "data transfer" calls for another lead called communication. So firstly learn, how the communication is carried between the mobile phone and computer...
Secondly, have some knowledge on AT- Commands of mobile phones....
This is the best data on SMS details and AT commands... SMS details[^]
Thirdly, try to learn the interfacing methodologies between mobile and computer...
Once you have some idea in all this, you got a way to proceed....
Learning is fun, if you love learning....
All the best...
Jai Ho!!!!
Have a Happy Coding.....
|
|
|
|
|
Dear All,
I am uploading files to ftp server, which each file gets uploaded in a thread.
i am using the following code to upload files to ftp, upload and every thing is successfull, but my concern is the priority of uploading files.
in following code the file with the smallest size gets uploaded first, but i want that the first file should be uploaded before second and second before third and so on.
foreach (string str in filesToUpload)
{
if (str.EndsWith(".xml"))
ThreadPool.QueueUserWorkItem(new WaitCallback(uploadFile),(object)str);
}
I also used WaitHandles and AutoResetEvent, it did help but it stack my computer and also my UI.
so how can i wait one uploading before another gets uploaed or started?
Abdul Rahaman Hamidy
Database Developer
Kabul, Afghanistan
|
|
|
|
|
You can't do it using the ThreadPool, since QueueUserWorkItem does not guarantee that Item #1 is going to run before item #2. You'll have to implement your own thread and queue to hold the files.
|
|
|
|
|
thx dude, i find out solution
Abdul Rahaman Hamidy
Database Developer
Kabul, Afghanistan
|
|
|
|
|
Hi Friends, I have a small doubt. Example:
Everytime I want to create a new form I use this:
private void UserMenuItem_Click(object sender, EventArgs e)
{
frmUser frmUser = new frmUser();
frmUser.Show();
}
Is it possible to replace it to something like
private void OpenForm(object ObjName)
{
}
private void UserMenuItem_Click(object sender, EventArgs e)
{
OpenForm(frmUser);
}
|
|
|
|
|
private void OpenForm(Form form)
{
form.Show();
}
private void UserMenuItem_Click(object sender, EventArgs e)
{
OpenForm(new frmUser());
} But why do you want to do this? I can't see any advantage this is providing compared to the code you have given.
|
|
|
|
|
I can see no benifit to doing what you want, however I do use a humongous switch structure on my main forms where I declare a form object, load the form inside the switch (based on user navigation) after the switch I test that the form is not null and do a form.show().
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
Are you looking for this :
(new frmUser()).Show();
or maybe this
(frmUser1 =new frmUser()).Show();
|
|
|
|
|
Hi,
I have developed an application which has only 4 buttons , which itself is taking 18MB , but when i minimize it the memory reduces to 3MB, when i searched i came to know that windows trims the workingset size which reduces the size.
Can anyone let me know how to know the actual memory used by the application.
Is there any tool to identify it.
Thanks
|
|
|
|
|
Perfmon[^]
Cheers,
Vikram. Current activities:
Films: The classic Pink Panther series
TV series: Friends, season 3
Books: Liar's Poker, by Michael Lewis. Carpe Diem.
|
|
|
|
|
You call 18MB "large"?? That's a drop in the bucket these days...
|
|
|
|