|
If I am not getting you wrong you like to know how to change the view from Landscape to portrait and vice-versa.If Yes, then you have to handle WM_SIZE and WM_SETTINGCHANGE.Try it.
Dev
|
|
|
|
|
Hi,
I want make the progressbar's backcolor as transperant,I mean user should be able to see the form in which the progress bar is placed.
I am new to mobile applications,
any IDEA about this issue?help me
Prashanth...
|
|
|
|
|
Hey everybody,
I have a small and probably easy problem, but I just couldn't solve it yet.
I would like to arrange Textboxes in two columns on a mobile device using the mobile controls and everything that's offered by VS2005. How can I do this. I tried HTML tables but it just wouldn't work.
Thanks for your help
|
|
|
|
|
Hello,
VS 2005 Windows Mobile 6.0
I have an application that get data from a web service. This gets done in the main UI thread, as the application cannot move on until this is finished.
However, once the data has been loaded into the dataset, I want to save the contents of the tables in XML on the PDA device itself. It is this that I want to run in the background, so that this form will hide and open another form when this is being done in the background.
Many thanks for any suggestions,
Steve
{<br />
this.LoadDataIntoDataSet();<br />
this.workerThreadSaveXML = new Thread(BackgroundProcessSaveXML);<br />
this.workerThreadSaveXML.IsBackground = true;<br />
this.workerThreadSaveXML.Start();<br />
<br />
<br />
frmOrders objOrders = new frmOrders(DS);<br />
objOrders.Show();<br />
this.Hide(); <br />
}
private void LoadDataIntoDataSet()<br />
{<br />
try<br />
{<br />
DS = ws.GetStarters();<br />
DS = ws.GetOrders(staffID);<br />
DS = ws.GetBeverages();<br />
DS = ws.GetMainCourses();<br />
DS = ws.GetOrderDetails();<br />
DS = ws.GetMenus();<br />
}<br />
catch (Exception ex)<br />
{<br />
MessageBox.Show(ex.Message);<br />
}<br />
}
This is will run in the background in saving the data to xml - THIS IS THE IMPORTANT PART AND SHOULD STILL WORK IF THE NEW FORM HAS BEEN OPENED
Code Block
private void BackgroundProcessSaveXML()<br />
{<br />
try<br />
{<br />
this.LoadStartersData();<br />
this.LoadBeverageData();<br />
this.LoadOrdersData(staffID);<br />
this.LoadMenus();<br />
this.LoadMaincourse();<br />
}<br />
catch (Exception ex)<br />
{<br />
MessageBox.Show(ex.Message);<br />
}<br />
}
//This is one example of loading the data into the xml file - there are 5 but I have just added on here to save space on the post..
private void LoadStartersData()<br />
{<br />
try<br />
{<br />
writeXML.WriteStartersXML(DS);<br />
}<br />
catch (Exception ex)<br />
{<br />
MessageBox.Show(ex.Message);<br />
}<br />
}
|
|
|
|
|
hi guys,
I am having performance issue in my application.
But while I am debugging my application from visual studio 2005 it runs faster than actual application!
So while debugging mode processing is taken place at PC and not at device?
I am not getting handle on this issue.
Please help.
Regards
Tushar
|
|
|
|
|
Usually this happens the other way around: Debug is slower than Release. Please make sure that you are not conditionally excluding code from the Debug build that is included on the Release build. You should also look for conditions that are not met in Debug mode that lead the Release build to execute slower.
Regards,
João Paulo Figueira
DAD MVP
|
|
|
|
|
Hi guys
I am having problem in editing and adding drivers in an existing BSP using BSP Wizard. When I select a BSP and select edit/add driver, the resulting dialog box has 'OK' button disabled. The editing action does not enable it. What is the reason?
Regards
|
|
|
|
|
hi,
If we socket for windown mobile 2005, can we connect from PC to PPC. and send SMS auto??Please
|
|
|
|
|
The way I have been sending SMS to my mobile phone is through regular email. For example:
T-Mobile: phonenumber@tmomail.net <br />
Virgin Mobile: phonenumber@vmobl.com <br />
Cingular: phonenumber@cingularme.com <br />
Sprint: phonenumber@messaging.sprintpcs.com <br />
Verizon: phonenumber@vtext.com <br />
Nextel: phonenumber@messaging.nextel.com
All you got to do is to replace "phonenumber" with the phone number you have. Perhaps you can apply a similar concept to your hand held device? If not you could send a regular socket message to the device (not SMS).
Pete Soheil
DigiOz Multimedia
http://www.digioz.com
|
|
|
|
|
Hi to all!
Another problem....
Unfortunately, Compact Framework version of OpenFileDialog (may be also normal version), do not recognize the entire file system in Windows Mobile 2003 based devices, but his "scope" is limited to the "\My Documents" folder.
Absolutely, I need to implement in the code I'm writing, the possibility to choose a file to open (read with StreamReader function),through entire file system (included SD Card).
Is there some simple solution (inside VB .Net Compact Framework environment),to do this or necessarily I'll must to turn to use of others complicated (for me) solutions like use of API, to mix C++ with VB, mix unmanaged code with managed ...etc..etc?
Thanks in advance for help and/or suggests.
Marco
|
|
|
|
|
Hi to all,
I'm writing a code (in VB .net Compact Framework environment) to read a text file (where is included a field containing a DateTime in Ole Automation format i.e.: 39097.4010995 is equivalent to 1/15/07 9:37:34 AM ).
Before to adding the part of code relative to above work,the program (in fase of development yet), was working almost perfectly in both emulator (windows mobile 2003 SE) and the real device.
After I added the following code lines (only that relatives to DateTime elaboration):
----------------------------------------------------
Dim Tempi() As Single
Dim DatOra As DateTime
Dim Tempo As TimeSpan
Dim Tempo1 As DateTime
Dim Tempo2 As DateTime
Tempi = New Single(TotRecords) {}
DatOra = DateTime.FromOADate(Microsoft.VisualBasic.Mid(line, D1, D2))
If CountLines = 7 Then
Tempo1 = DatOra : Tempo2 = DatOra
Else
Tempo1 = Tempo2 : Tempo2 = DatOra
Tempo = Tempo2 - Tempo1
End If
Tempi(CountLines - 7) = Tempo.TotalSeconds
-------------------------------------------------------
the program is perfectly working only on emulator, but on real device, return me this error:
ArgumentException
Impossible to show an error message. It is not been found assembly of the optional resource that contain it.
in System.DateTime.DoubleDateToTicks()
in System.Windows.Forms.Form.WnProc()
in System.Windows.Forms.Control._InternalWnProc()
in Microsoft.AGL.Forms.EVL.EnterMainLoop()
My device is Windows mobile 2003 SE based, updated to Version 2.00 of Compact framework, and is Italian language Culture.
To develop code, I'm using English version of VS 2005 and Compact Framework environment.
Any idea on where is the problem?
May be that problem depends on different languages (I am not sure)? If yes can someone help me please?
Marco
|
|
|
|
|
Hello,
This thread relates to Windows Mobile 5.0 on a Motorolla Sybol MC35 device but I think its a bit more of a generic question than device specific.
I have a scenario where I have a form in my vb.net 2.0 compact application with a textbox near the bottom of the screen. When I open the Soft Keyboard (SID) it covers the textbox that the user may currently be working on. Does anyone know how to make the screen "jump" down (scroll down to the bottom) when the SID is enabled.
I have been playing round with the enabled changed event for the SID but cant seem to get around this problem. E.g.
Private mobjUCLoc As System.Drawing.Point<br />
<br />
Private WithEvents mypanel1 As Microsoft.WindowsCE.Forms.InputPanel = New Microsoft.WindowsCE.Forms.InputPanel<br />
<br />
<br />
<br />
Private Sub ipKeys_EnabledChanged1(ByVal sender As Object, ByVal e As System.EventArgs) Handles mypanel1.EnabledChanged<br />
<br />
<br />
<br />
mobjUCLoc.Y = 220 <br />
<br />
MyBase.AutoScroll = True<br />
<br />
MyBase.AutoScrollPosition = mobjUCLoc<br />
<br />
MyBase.Anchor.Bottom.Equals(AnchorStyles.Bottom)<br />
<br />
MyBase.Location = mobjUCLoc<br />
<br />
<br />
<br />
End Sub
Any advice would be great and thanks in advance!
Kind regards,
Robert
|
|
|
|
|
Try someting like
Private Sub inputSip_EnabledChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles inputSip.EnabledChanged
If Me.inputSip.Enabled = True Then
mypanel1.Height -= Me.inputSip.Bounds.Height
Else
mypanel1.Height = 221 ' This is the height of you mypanel1
End If
End sub
JB
|
|
|
|
|
hi
How to find platform builder in PDA windows CE 5.0?
|
|
|
|
|
I need to validate user input with reg expressions but need a library (C++). Preferrably, one that is already part of the Mobile 6 OS. However, the Mobile 6 documentation doesn't appear to list one. Does anyone know of one for Mobile 6?
|
|
|
|
|
Hi. I recently let my PocketPC (old ViewSonic V37, MS PocketPC v3.0.11171) go idle and loose battery charge.
When I tried to synch with my desktop, for which I used to do in the past, it said that I have to go through the whole Partnership configuration process again. Ok....
However, the default Device Name of "Pocket_PC" was flagged as already in use.
How can I find the Device Name I originally used so that I don't have so many instances of Partnerships on my desktop - and can recover the next time I let my PPC loose charge?
Thanks,
Johnny
|
|
|
|
|
Remove the Pocket PC from the cradle and open ActiveSync. On the File menu, select the "Delete Mobile Device" option. Connect the Pocket PC and you should be able to synchronize it.
Regards,
João Paulo Figueira
DAD MVP
|
|
|
|
|
Thanks! I will try this.
|
|
|
|
|
Hi,
I know this isn't the right forum for this question. But i love this site, but i don't like the fact that it doesn't support java forum. So i'm posting my question here.
The problem is:
I'm using netBeans v 6.0 beta 2 and I have a problem with the system class
I write this simple line of code: system.out.println("something...");
And an error shows saying that system class does not exist.
But everything else works. The class java exists...
Thank you!
|
|
|
|
|
hi,
1.My QVGA device can display bitmaps perfectly alright.
However, when displaying the same bitmaps on a VGA(480x640) device the bitmaps
seem to appear only half the size seen on my QVGA(240x320) device screen.
Can someone advise me how do I enlarge those bitmaps accordingly
on my VGA device?
I would greatly appreciate if your advice can help me.
Here are bits of the code I have written:
-extract from a *.cpp file:
LRESULT CSIPMainWindow::OnPaint(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled)
{
CPaintDC paintDC(*this);
WTL::CDCHandle renderingDC(paintDC);
CDC memDC;
CBitmap memBitmap;
HBITMAP oldBitmap = 0;
RECT rect;
GetClientRect(&rect);
memDC.CreateCompatibleDC(paintDC);
if (! memDC.IsNull())
{
memBitmap.CreateCompatibleBitmap(paintDC,rect.right-rect.left,rect.bottom-rect.top);
if (! memBitmap.IsNull())
{
oldBitmap = memDC.SelectBitmap(memBitmap);
renderingDC = memDC;
}
}
int iBmpID;
if (m_pCurrentIMWnd == m_paInputMethodWnd[2])
{
iBmpID = IDB_BITMAP_SYMBOLS;
} else
{
if(m_bIsCapMode == true && m_bIsPredMode == true)
{
iBmpID = IDB_BITMAP_T9P_CAP;
}
if(m_bIsCapMode == true && m_bIsPredMode == false)
{
iBmpID = IDB_BITMAP_T9M_CAP;
}
if(m_bIsCapMode == false && m_bIsPredMode == true)
{
iBmpID = IDB_BITMAP_T9P;
}
if(m_bIsCapMode == false && m_bIsPredMode == false)
{
iBmpID = IDB_BITMAP_T9M;
}
}
int iLogox, iLogoy,iBmpX, iBmpY;
iLogox= k_iDallabLogoX;
iLogoy= k_iDallabLogoY;
iBmpX = k_iIMBmpX;
iBmpY = k_iIMBmpY;
DrawSingleBitmap(renderingDC,IDB_BITMAP_DALLABLOGO,iLogox,iLogoy);
DrawSingleBitmap(renderingDC,iBmpID,iBmpX,iBmpY);
if (static_cast<HDC>(renderingDC) == static_cast<HDC>(memDC))
{
//paintDC.BitBlt(0, 0, rect.right-rect.left, rect.bottom-rect.top,renderingDC, 0, 0,SRCCOPY);
paintDC.StretchBlt(0, 0, rect.right-rect.left, rect.bottom-rect.top,renderingDC, 0, 0,rect.right-rect.left, rect.bottom-rect.top,SRCCOPY);
memDC.SelectBitmap(oldBitmap);
}
return 0;
}
- extract from a *.h file:
const RECT g_rectScreenArea = {0,250,240,294};//OK
const RECT g_rectScreenAreaHorizontal = {0,170,320,214};//OK
const RECT g_rectClientArea = {0,0,240,44};//OK
const RECT g_rectClientAreaHorizontal = {40,0,280,44};//OK
//left,top,right,bottom//
const RECT g_vgarectScreenArea = {0,500,480,600}; //ok but must make it double the size
const RECT g_vgarectScreenAreaHorizontal ={0,340,640,430);//ok but size must be double
const RECT g_vgarectClientArea = {58,0,480,44}; //ok but must make it double the size
const RECT g_vgarectClientAreaHorizontal = {58,0,580,44};//ok but size must be double
2.Also, I have switched from the BitBlt function to StretchBlt function but it doesn't seem to help. S.O.S
Denise
|
|
|
|
|
Hi Denise,
ttarantula wrote: Can someone advise me how do I enlarge those bitmaps accordingly
on my VGA device?
See http://msdn2.microsoft.com/en-us/library/ms889979.aspx[^] and following pages.
You might use the DRA namespace functions located in <Microsoft Visual Studio 8>\VC\ce\atlmfc\include\DeviceResolutionAware.h.
Cheers,
AR
|
|
|
|
|
Hi,
Thank you very much for your kind help.
Somehow, now the bitmaps are displayed perfectly fine.
However, the device under test (DOPOD PU10), is not responding to any key press on the alphanumeric keypad.
Someone please advise me.
cheerios,
Denise Ema
|
|
|
|
|
ttarantula wrote: However, the device under test (DOPOD PU10), is not responding to any key press on the alphanumeric keypad.
Are you sure that your window has focus and handles the keyboard messages?
cheers,
AR
|
|
|
|
|
I'm not sure that my window has focus and handles the keyboard messages.
Basically I just reused an existing code which works perfectly fine on a device with numeric keypad.
So what should I do now?
Ema
|
|
|
|
|
|