|
Hi I am currently developing a mobile application within Flashbuilder 4.5 Pro. However I am having issues as I cannot seem to add a drop down list to my application and have it work properly. I have created the code below and this effectively creates a drop down list and populates it with items, however when the user clicks on an item it is not selected in the field.
This also happens when I am testing it on my machine and the only way to select the item is to click on the list and then use the down arrow on the keyboard which I cannot do in the application. Can someone please help me????
<s:DropDownList id="sex_drpdown" width="150" height="61.35" labelField="value" fontSize="30" change="sex_drpdown_changeHandler(event)">
<s:ArrayCollection>
<fx:String>Male</fx:String>
<fx:String>Female</fx:String>
</s:ArrayCollection>
</s:DropDownList>
|
|
|
|
|
|
Don't advertise here. This is not the correct forum. If you want to advertise on CodeProject check this[^].
|
|
|
|
|
Don't forget to report spammer (on OP's homepage).
The best things in life are not things.
|
|
|
|
|
Hi everyone
I styding about programming on windows mobile. And I build a mini program about "manage contacts" with functions: add, Edit, Delm Seach and seach and sort contacts by Group contacts.
But I don't know how to complate function : seach and sort contacts by Group contacts! Can you help me?
Thank you very much!
|
|
|
|
|
hi,
I have been developing programs for my PPC in windowCE using Visual Studio 2005. Now I want to use the SoundPlayer class, which is in the System.Media namespace. I have the statement "Imports System.Media", but when I try to build the program I get the error message, "The type or namespace name 'Media' does not exist in the class or namespace 'System' (are you missing an assembly reference?)"
So, I select menu items "Project -> Add Reference...", and under the .NET tab, System.Media is not listed.
I checked my PC's Add/Remove Programs list, and I do have .NET 2.0 installed.
What am I missing, and what do I have to do to get access to the System.Media namespace??
Regards,
Ramakrishna.
|
|
|
|
|
SoundPlayer class and others of System.Media namespace are supported in .NET Compact Framework 3.5 and up. That is probably why you don't see it in your project.
--
"My software never has bugs. It just develops random features."
|
|
|
|
|
hi
How to play wav file at the background using thread concept in Win CE. please help me.
Regards,
ramakrishna.
|
|
|
|
|
|
hi,
My task is :
when i click the button control a selected wav file("CBDBUSDE.wav") should be play through speaker without opening the media player. the application with the below code is opening player, how can i play only wav file without opening player window.
Dim fp As String = "/NANDFLASH/TCPMP/PLAYER.exe"
Dim fF As String = "/NANDFLASH/TCPMP/CBDBUSDE.wav"
Process.Start(fF, fp)
Regards,
Ramakrishna.
|
|
|
|
|
Enum SoundFlags As Integer
SND_SYNC = &H0
SND_ASYNC = &H1
SND_NODEFAULT = &H2
SND_MEMORY = &H4
SND_LOOP = &H8
SND_NOSTOP = &H10
SND_NOWAIT = &H2000
SND_ALIAS = &H10000
SND_ALIAS_ID = &H110000
SND_FILENAME = &H20000
SND_RESOURCE = &H40004
End Enum
Declare Function PlaySound Lib "coredll.dll" (ByVal pszSound As String, ByVal hMod As IntPtr, ByVal sf As SoundFlags) As Boolean
Example:
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Call PlaySound("\1.wav", IntPtr.Zero, SoundFlags.SND_SYNC)
End Sub
Its the man, not the machine - Chuck Yeager
If at first you don't succeed... get a better publicist
|
|
|
|
|
Hi all,
i m trying to using Eclipse Helios for android application.
in my Eclipse Helios the minimum Android Build Target version is Android 1.5.
and according to my history of android version before the version Android 1.5(CupCake) three more versions are launched those are
1. Android Beta,
2. Android 1.0
3. Android 1.1
but in the build target there are not available.
so i want to ask these are not supported or any other reason.
please tell me What minimum version of Android Build Target supported by Eclipse Helios?
i m waiting for ur valuable suggestions.
thanks in advance.
|
|
|
|
|
Think of those versions as being deprecated and unsupported. All public devices running those operating systems have received updates to at least 1.5. The Android toolchain no longer supports targeting them, it's not really a matter of Helios supporting them.
There's very little reason to target those versions other than for research.
|
|
|
|
|
I have a WP7 Silverlight application that uses gestures as primary user input. But, also I want to catch keybord clicks on WP7 devices with hardware keyboard (like LG Optimus Quantum).
I added Key_Down event handler to page LayoutRoot, swith my emulator to hardware keyboard (PgDn), but that event is not fired (unless I put TextBox on page, but I do not want that). Anyway, my page has no controls that can receive focus, which means that KeyDown pressed event cannot occur.
Any ideas how can I catch keyboard clicks? Is it possible to use XNA KeyboardState structure somehow in WP7 Silverlight application?
|
|
|
|
|
hi,
here i am coping vb.net code to "detect usb mass storage device when connected" , the code is working in vb.net but not working in window CE application.Please tell me how to write code to detect usb device in Windows Ce Application.
1.
Imports System.Runtime.InteropServices
2.
Public Class Form1
3.
4.
Private Const WM_DEVICECHANGE As Integer = &H219
5.
Private Const DBT_DEVICEARRIVAL As Integer = &H8000
6.
Private Const DBT_DEVTYP_VOLUME As Integer = &H2
7.
8.
'Device information structure
9.
Public Structure DEV_BROADCAST_HDR
10.
Public dbch_size As Int32
11.
Public dbch_devicetype As Int32
12.
Public dbch_reserved As Int32
13.
End Structure
14.
15.
'Volume information Structure
16.
Private Structure DEV_BROADCAST_VOLUME
17.
Public dbcv_size As Int32
18.
Public dbcv_devicetype As Int32
19.
Public dbcv_reserved As Int32
20.
Public dbcv_unitmask As Int32
21.
Public dbcv_flags As Int16
22.
End Structure
23.
24.
'<<<< Function that gets the drive letter from the unit mask >>>>
25.
Private Function GetDriveLetterFromMask(ByRef Unit As Int32)
26.
Dim i As Integer
27.
For i = 0 To 25
28.
If Unit And i Then Exit For
29.
Unit = Unit >> 1
30.
Next
31.
Return Chr(i + 1 + Asc("A"))
32.
End Function
33.
34.
'Override message processing to check for the DEVICECHANGE message
35.
Protected Overrides Sub WndProc(ByRef m As System.Windows.Forms.Message)
36.
If m.Msg = WM_DEVICECHANGE Then
37.
If m.WParam = DBT_DEVICEARRIVAL Then
38.
Dim DeviceInfo As DEV_BROADCAST_HDR
39.
DeviceInfo = Marshal.PtrToStructure(m.LParam, GetType(DEV_BROADCAST_HDR))
40.
If DeviceInfo.dbch_devicetype = DBT_DEVTYP_VOLUME Then
41.
Dim Volume As DEV_BROADCAST_VOLUME
42.
Volume = Marshal.PtrToStructure(m.LParam, GetType(DEV_BROADCAST_VOLUME))
43.
Dim DriveLetter As String = (GetDriveLetterFromMask(Volume.dbcv_unitmask) & ":\")
44.
Dim FileList() As String = IO.Directory.GetFiles(DriveLetter, "test.txt")
45.
If FileList.Count > 0 Then
46.
MessageBox.Show("Found Config File")
47.
'<<<< The test file has been found >>>>
48.
Else
49.
MessageBox.Show("Could not find config file")
50.
'<<<< Test file has not been found >>>>
51.
End If
52.
End If
53.
End If
54.
End If
55.
MyBase.WndProc(m)
56.
End Sub
57.
58.
59.
End Class
Regards,
Ramakrishna.
modified on Wednesday, May 4, 2011 9:26 AM
|
|
|
|
|
Hi
i have to develop a PDA application to make payments through paypal. PDA part of application will be used just for payments and rest of the admin side and other functionality will be done through web application on a computer. should i develop a PDA application and then access internet to make payments or should i develop a PDA specific web application that can be accessed on PDA to make payments.
can we use standard paypal with PDA applications.
Regards
Aijaz
|
|
|
|
|
Hi
i have to start mobile programming from today. i know nothing about mobile programming in .net. please tell me what i need to take care of while developing mobile applications. and suggest some help from where i can start programming. can i develop mobile applications for windows mobiles only in .net or any type of application can be developed with .net. suggest some beginner and expert sites that are helpful for the development of mobile applications.
Thanks a lot
|
|
|
|
|
S_Aijaz1 wrote: i have to start mobile programming from today. i know nothing about mobile programming in .net.
Not a good starting point. Try Google and search for "mobile .NET wp7 android". That should give you enough to get started.
[edit]I just discovered I answered this same question from you a month ago, what have you been doing since then?[/edit]
The best things in life are not things.
|
|
|
|
|
actually a priority project came that time and was working on that. now again i have to start working on mobile apps
|
|
|
|
|
Well I have twice given you some pointers, so the rest should be easy.
The best things in life are not things.
|
|
|
|
|
|
hi for all
<b>(SORRY FOR MY BAD ENGLISH)</b>
i am trying to rereceive a number from a Servlet
i send the request from J2ME using HttpConnection to a servlet , then a servlet make a session to count the number of times
i send the requests
and the servlet send back to me that number
but in HttpConnection i can send just one times terminated after that third states
so every time i send the request the number i received is 1
this is the code in J2ME
<pre>
HttpConnection hc = null;
DataInputStream in = null;
DataOutputStream out = null;
String UrlServer = "http://localhost:8080/DeleteWebApplication/RomaServlet";
StringBuffer sb = new StringBuffer();
private void sendGetContactsRequest() {
try {
UrlServer = "http://localhost:8080/Server2/SessionServlet";
sb = new StringBuffer();
hc = (HttpConnection) Connector.open(UrlServer, Connector.READ_WRITE);
hc.setRequestMethod(HttpConnection.POST);
out = hc.openDataOutputStream();
String getContacts = "getContacts";
byte[] getContactsBytes = getContacts.getBytes();
for (int i = 0; i < getContactsBytes.length; i++) {
out.writeByte(getContactsBytes[i]);
}
in = hc.openDataInputStream();
long len = hc.getLength();
int ch;
if (len != -1) {
for (int i = 0; i < len; i++) {
if ((ch = in.read()) != -1) {
sb.append((char) ch);
}
}
in.close();
hc.close();
out.flush();
out.close();
} else {
sb.append("ERRORR R ");
}
System.out.println(sb.toString());
} catch (IOException ex) {
ex.printStackTrace();
}
}
</pre>
don't care about all the code just about send and receive
this is the code in my servlet
<pre>
protected void processRequest(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
System.out.println("he totti asdf asdf asdf asdf ");
HttpSession session=request.getSession(false);
if(session==null){
session=request.getSession(true);
Integer times=new Integer(0);
session.setAttribute("count", times);
}
Integer times=(Integer) session.getAttribute("count");
times=new Integer(times.intValue()+1);
session.setAttribute("count", times);
response.getWriter().println("the number of times is "+times.intValue());
}
</pre>
i believe that a session is the best solution but i don't know how to use it
plz help me
ty very much
|
|
|
|
|
ty very much
i solved the problem using a third class with a STATIC variables
|
|
|
|
|
Dear Friends;
I have a database and I want to insert Cyrillic and utf-8 characters, however all Cyrillic characters are displayed as '?'.
How can I handle it?
Thank You.
|
|
|
|
|
This has nothing to do with your database, but the way you are displaying results. check your character set and font settings.
The best things in life are not things.
|
|
|
|