Highlighting Textbox Text In .NET/ Compact Framework 3.5/ WM6Pro?
Jul 30, 2009
First time post, new to VB etc. I wonder if you can with what I figure should be a very simple VB.NET query [using VS2008, targeting Compact Framework 3.5,WM6 Pro Emulator].
im trying to creat a pocket pc application using visual basic. but i got problem access text file. system always shows that "counld not find a part of path". the code i wrote is like:
Imports System Imports System.IO Public Class Form1
I need to create a sound if validation fails. Anyone know how to do that? It can be a wave file or any kind of format.
How can i create a sound in .net compact framework 2.0. using vb.net. I saw codes asking to use system.media class. However in compact framework there do not seem to have this class.
I'm sure this has probably happened to most people but I've run out of UI space and need to create a hotkey or some similar situation to run a method or function.
We are in the process of creating a new WCF web service (WCF service that has an basicHttpBinding Endpoint) to carry out some of our business logic. The web application connects not problem at all, however our legacy Compact framework application doesn't seem to see the service at all. Are we on to a loser here and should we just revert to ASMX web service (the Compact framework cannot be upgraded) or is there a way around this?
I am building an application for windows mobile 5.0 using the .net compact framework and the mysql compact framework connector.Using this very simple app, I test the connection to our database:
Dim connection As New MySql.Data.MySqlClient.MySqlConnection("Server=160.10.1.25;Uid=***;Pwd=***;Database=DevAutomate;Pooling=false;")Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load connection.Open() connection.Close() End Sub
In the beginning, I was using an emulator to test this and I was getting a MissingManifestResource error. When I figured out that the emulator didn't have a network connection, I connected it to active sync and used the device emulator manager to simulate cradling the device. Next, I got my hands on a HP iPac mobile device running windows windows mobile classic and I get the MissingManifestResource exception again. This time, I have a network connection on my device and it can definately see the database.
Had any of you tried to migrating the code written in Compact framework (For Windows CE mobile application) into windows application 2010 I did this but getting .resx error i.e resource file error since it is in old version.Has any of you tried a workaroud on this in order to get rid of .resx error.
This is the first time I am working on compressing and decompressing data. I have a byte array(a dataset before compression) which is an already compressed data and I want to decompress it. But the decompression is to be done in .Net Compact framework 2.0 and this framework doesn't have System.IO.Compression library to use GZipStream or DeflateStream.
I'm developing an application with visual studio 2008 and compact framework 3.5 who needs to tell users about the compact framework version. If the user don't have the version specified in the application it sends a message but windows check the version before the application runs and send error message. How can i check the version before windows in vb without compact framework?
How can I get the state of a modifier key using VB.NET on the Compact Framework, in this case Windows Mobile 6.1. I want to be able to determine if the following keys are pressed or locked:
Shift CTRL ALT
and for the Psion Teklogix machines
Orange Blue
Although I may be able to work this out, if I can determine the others.I want to create my own on-screen indicator panel and want to poll the keys, not using events.
I am writing my first windows ce app. I am using an xml file (app.Config) to store state data... basically user preferences on the last location (connection string) that the person was using before closing the app. I am having trouble understanding what is happening on deploy. It looks like it is copying my xml file to the debug folder on deploy. My problem is, when I save the xml file it is not saving in my project. Is there another folder in which the emulator resides that contains all of the state data and possibly the file that I am writing out? I am saving the doc to the same filepath as I am reading in but it does not actually save or throw error or anything.
i'm not very familiar with GDI+, but i managed to create some basic functions of Space Invaders game i try to develop in Compact Framework. I have problems drawing the images (Spaceship, bullets, enemies). The screen is flashing a lot. I use a buffer bitmap in which i draw images to the new positions, and i have 1 line of code that just draws the buffer to screen
[Code]...
i use me.Invalidate inside a timer so every 50msec the game redraw the screen with new positions. Why the buffering does not work?? It can't be the emulator that i preview the program, it is flashing A LOT. Is there any similar code / project that could help me? i'm tring to find a similar project for COMPACT FRAMEWORK but i only find C++ .net examples. i need VB .NET COMPACT FRAMEWORK examples
I'm looking for an actual implementation of StackForm recommendation. It can be a framework, API or any light-weight, Compact Framework-compatible library.It's not too complex to implement that idea, and I did in the past a couple of times, but I'm friend of not re-inventing wheels and maybe someone or group did an open sourced project implenting a generic navigation manager in order to create Compact Framework Forms application using this approach or any other similar to it.
I'm looking for an actual implementation of StackForm recommendation. It can be a framework, API or any light-weight, Compact Framework-compatible library.It's not too complex to implement that idea, and I did in the past a couple of times, but I'm friend of not re-inventing wheels and maybe someone or group did an open sourced project implenting a generic navigation manager in order to create Compact Framework Forms application using this approach or any other similar to it.
I am developing a game in compact framework. In Mobile Devices there is a button that Rotates the screen by 90 degrees so you can hold the mobile device the way that suits you. The problem is that i want to handle that in my game, so if i see that the screen has rotated the game will pause.
i am developing a mobile application on visual studio 2008 under .net compact framework for windows ce platform.i use vb.net language i want to add a new row to datatable using Bindingsource object.my code is
How would I go about getting text from several textboxes and adding them to a new row in a sql table in their respective columns? For instance, I have textbox id's and sql column names of:
[Code]...
The program will be storing the values in a multidimensional array to simulate data from multiple customers. I want each row in the array to be assigned to a new row in the sql table upon the click of a button. I've got everything setup but the writing of the all the textbox values into their own rows in the database.
I have two textboxes. Each textbox contains lines, where each line contains comma separated values. When each line of a textbox does not match the number of comma separated values of the other textbox (ie if line 3 of textbox1 has 4 comma separated words and line 3 of textbox2 does not have 4 comma separated values) I want to highlight the line which does not match the other textbox's line.
This is what I got so far (and got stuck!)
For k = 0 To index test1 = testA.Lines(k).Split(",") test2 = testB.Lines(k).Split(",")
I have the requirement to create an application that has multiple front ends developed using Windows Forms, WPF, ASP and Compact Framework Mobile Forms.I would like to be able to create a series of obejct representing the business logic and have this logic accessible from the various front ends available. My first thought was to use remoting as I'd like to be able to pass the business objects back and forth between client and server but the compact framework doesn't support remoting and also transferring a full framework business object to a compact framework business object doesn't seem possible.My next thought was to use web services but again the passing of business objects seems to be very hard to accomplish. Without doing this I would have to create individual web methods for each business operation.
Finally my next option is to use sockets and write the whole client/server logic within some classes and expose them to the UI/Business layer. My only problem with this is it is not scaleable should the number of clients increase dramatically whereas using remoting or web services I can host the solution via ASP.Net.Does anybody have an ideas on the best way forward for this or even have any input on how they would write an application that required a windows form, wpf, asp website and mobile device GUI all of which want to use the same business logic?