|
my program need to add control during runtime, and the control adding is triggered by a socket listening thread. However, i discover that the control adding cannot do in different thread, and ArgumentException will throw.
Here is the Code for demostrate the problem.(Click the button1 will open a new thread to add textbox1) Any Idea to solve the problem?
_____________________________________________________________________________________
Imports System.Threading
Public Class Form1
Inherits System.Windows.Forms.Form
Friend WithEvents TabControl1 As System.Windows.Forms.TabControl
Friend WithEvents TabPage1 As System.Windows.Forms.TabPage
Friend WithEvents TabPage2 As System.Windows.Forms.TabPage
Friend WithEvents Button1 As System.Windows.Forms.Button
Friend WithEvents TextBox1 As System.Windows.Forms.TextBox
Friend WithEvents MainMenu1 As System.Windows.Forms.MainMenu
#Region " Windows Form Designer generated code "
Public Sub New()
MyBase.New()
'This call is required by the Windows Form Designer.
InitializeComponent()
'Add any initialization after the InitializeComponent() call
End Sub
'Form overrides dispose to clean up the component list.
Protected Overloads Overrides Sub Dispose(ByVal disposing As Boolean)
MyBase.Dispose(disposing)
End Sub
'NOTE: The following procedure is required by the Windows Form Designer
'It can be modified using the Windows Form Designer.
'Do not modify it using the code editor.
Private Sub InitializeComponent()
Me.MainMenu1 = New System.Windows.Forms.MainMenu
Me.TabControl1 = New System.Windows.Forms.TabControl
Me.TabPage1 = New System.Windows.Forms.TabPage
Me.Button1 = New System.Windows.Forms.Button
Me.TabPage2 = New System.Windows.Forms.TabPage
Me.TextBox1 = New System.Windows.Forms.TextBox
'
'TabControl1
'
Me.TabControl1.Controls.Add(Me.TabPage1)
Me.TabControl1.Controls.Add(Me.TabPage2)
Me.TabControl1.SelectedIndex = 0
Me.TabControl1.Size = New System.Drawing.Size(240, 272)
'
'TabPage1
'
Me.TabPage1.Controls.Add(Me.Button1)
Me.TabPage1.Location = New System.Drawing.Point(4, 4)
Me.TabPage1.Size = New System.Drawing.Size(232, 246)
'
'Button1
'
Me.Button1.Location = New System.Drawing.Point(128, 88)
Me.Button1.Text = "Button1"
'
'TabPage2
'
Me.TabPage2.Location = New System.Drawing.Point(4, 4)
Me.TabPage2.Size = New System.Drawing.Size(232, 246)
'
'TextBox1
'
Me.TextBox1.Location = New System.Drawing.Point(8, 88)
Me.TextBox1.Text = "TextBox1"
'
'Form1
'
Me.Controls.Add(Me.TabControl1)
Me.Menu = Me.MainMenu1
Me.Text = "Form1"
End Sub
#End Region
Private Sub TextBox1_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs)
End Sub
Private Sub TabPage1_EnabledChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TabPage1.EnabledChanged
End Sub
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
End Sub
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim ListeningThread As Thread
ListeningThread = New Thread(AddressOf AddTextBoxFunction)
ListeningThread.Start()
End Sub
Private Sub AddTextBoxFunction()
Me.TabPage1.Controls.Add(Me.TextBox1)
End Sub
End Class
|
|
|
|
|
The problem only occur in .Net compact framework. It work fine on windows platform's .net framework
|
|
|
|
|
CAN NOT DEPLOY/DEBUG a CF application in any language ON THE IPAQ EMULATOR after installing the FULL REMOTE DEBUGGING COMPONENTS.
the ipac emulator 2002 was working fine until then. I reloaded the entire .NET system including the framework, vs .net and it still does not work.
does anybody have any idea where in the registry is the debugging information kept?
I really don't want to rebuild the entire system if I don't have to...
versions used:
Microsoft development environment version 7.1.3088
Microsoft .NET Framework 1.1 version 1.1.4322
Any help will be greatly appreciated….
thanks
sun.lcr
|
|
|
|
|
Is there a way to use ms access as the backend for an application developed
in vb.Net for a ppc 03 device?
If so, are there some resources for sample code for connecting to the database, opening the database, retrieving records, modifying records
etc.?
Thanks in advance for any help
|
|
|
|
|
helo friends,
I am looking for unoptimised C codes that considerably reduces the performance of the system.
I am looking for some of the cases (like,
inline functions,constant propagation,constant folding,faster for loops,loop fusion,loop jamming,table lookup,arrays,induction variable,commom sub expressions etc) by which when a programmer misuses them(above mentioned cases) in turn affect the performance of the system.
Example for Common Sub Expression Elimination.
(unoptimised code)
t1=x+y+1;
t2=x+y;
Instead declare a temporary variable say temp.calculate temp=x+y and then use in these instructions.so,introducing temp becomes my optimised code avoiding calculations.
temp=x+y;
t1=temp+1;
t2=temp;
By doing this i am avoiding the calculation thats happening twice.if such calculations are in for loop it really affects the performance.By doing this Common sub expression elimination we gain performance.
I am looking for such unoptimised codes in the cases mentioned above.
If anyone gets please do send me the details.
|
|
|
|
|
Frank Francis wrote:
temp=x+y;
t1=temp+1;
t2=temp;
Is not optimal, try:
t2 = x+y;
t1 = t2;
t1++;
No temporay variable allocation and store, only two store operations instead of 3. Use of the increment operator eliminates need for storage of the constant (1)
Anger is the most impotent of passions. It effects nothing it goes about, and hurts the one who is possessed by it more than the one against whom it is directed.
Carl Sandburg
|
|
|
|
|
Plz give some new and the latest ideas about the writing .NET applications for PDAs and the Pocket PCs..etc i need ideas as what to develop as my final year project. i m interested in developing communication/networks based applications like file transfers, or bluetooth etc..
NEDIAN_MUSTAFA
|
|
|
|
|
Maybe this will interest you for a while?
How do I place a GSM call on my PocketPC (Mobile Phone Edition) using C# and .net CF.
The device (MDA II / XDA II) offers a 'wireless modem' feature to any external device - just connect per Bluetooth/USB/serial/IrDA and issue AT commands just like any other normal modem. But I am not an external device - I am (in this context!) an application running on the MDA II / XDA II.
How do I get to place a GSM call (for V110 data) - I just want to dial my phone number and be told when I am connected, with the option to abort if this takes too long. C++ is a number too big for me and TAPI is way too complex for what I want - has somebody got a neat, lightweight C# solution... or at least a push in the right direction!
Peter Beedell
"Remember that age and treachery will always triumph over youth and ability." Quoted from the BBC Comedy 'The Office'.
|
|
|
|
|
Hi, I'm writing an application in evc++4.0 (c++) for a ppc2003 and wince based device.
When I try to make an icon object transparent I succeed but when i try to paint transparency on a bitmap I don't manage in doin' it because in the color toolbar the button with the screen (meaning transparent color) doesn't appear.
Is it possible to paint transparent a bitmap object?
|
|
|
|
|
Take a look at TransparentBlt.
|
|
|
|
|
Hi there,
sorry first of all 'cause i think it's an already soluted problem in the board but i can't find the answer.
Due to SDK and Hardware issues i'm forced to use evc++ 3.0 (with MFC)
First Problem:
Suddenly the Class Wizard doesn't want to add member variables for added Objects (e.g. a button). I read somewhere that this is a common bug about evc3, and that u should delete the vcc or vcb file. Is there anyone who could give some further explanation about that?
Second Problem:
I added a combobox and populatet the list items via the properties dialog, but when i compile the project no dropdown-items ar listed. it seems that this failure depends on the dialog the cb is created in. when i do the same steps in an already existing dialog in the same project it works fine.
any solutions?
Thanks in advance
Klabautermann
|
|
|
|
|
I derived a class from CCeSocket.
The object of that type that I use in my app is dynamically created.
I can connect and communicate correctly with the server-application using that object, the problem is that when the object gets destroyed that in DEBUG mode the application sometimes crashes. (In Release all seems to run correct)
The assertion error refers to wcesock.cpp line 733. Looking there it seems as if a thread created by the CCeSocket is still trying to access the socket. (My app is single threaded by the way). The crash does not happen every time though.
Should I wait for a certain event after I close the socket before I delete the socket-object? Or is this a known problem when running in DEBUG mode... Could something else be at fault?
I just want to avoid a crash ever happening in Release, so I don^t want to just ignore this warning without knowing for sure that it can't harm ignoring it...
Thanks for any help you might provide,
With Friendly Regards,
Davy
|
|
|
|
|
Hi all,
I just installed vs .net on my system and tried to create run and debug a test app using c#.
the application compiles, gets loaded into the emulator but the debugger is not run and app has to be run manually.
Does anybody else have had this experience?
running:
win2k sp4
vs .net 2003
system installed from scratch and its the only thing running on the system along with sql/2000
Thanks for the help....
sun.lcr
|
|
|
|
|
Can anyone help on how to keep a status icon visible on the bottom bar (beside the keyboard icon for example) when another program fills the whole screen usually. This happens in certain map functions of GPS software for navigating.
I'me sure I've something to achieve this but my searches have failed so far.
TIA for any ideas
Sylvia
|
|
|
|
|
I need help to make a simple application using Embedded Visual c++ 3.0
It's just a simple application that enables me to read and write files.
Write a file - save it - then retrieve it within the application.
Can anyone help to give me the codes needed for me to make the application work?? Thanks.
|
|
|
|
|
Hi all,
I've been asked to develop a little app for Pocket PC, and as I can't buy one for me, I would like to now if there is a Pocket PC Emulator, and where can I find it.
Thank you all for your time.
R@Y
|
|
|
|
|
|
Thank you very much, I'm now downloading it.
|
|
|
|
|
Hi,
When I read document about Windows CE registration in Microsoft Windows Website(http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wcemain4/html/cmlrfDefaultRegistrySettings.asp), it says "Like ISAPI dynamic-link libraries (DLLs), the Web server keeps Asp.dll and any libraries that ASP loads — including JScript.dll, VBScript.dll, and any DLLs that contain COM objects that were created on the page — in a cache. The Web server unloads the DLLs in this cache automatically if they have not been used for 30 minutes. This delay is defined by a setting in the system registry." But I can't find out which registry sub key is responsible for this delay, so does anyone has any idea about it? Thanks very much in advance!
Carl
|
|
|
|
|
Hello!!
Can anybody help me?
I´m doing an application in VS 2003 with c# to pocket pc,
and i need to pass some specific files between the pocket and my pc and viceversa,
but i need that this job do automatically transfering of files
cliking a button in my application. I read about winsock and
activeSync for make it, but winsock (i think) need a modem or network
card that i don´t have, i´m using an emulator. And the use of ActiveSync
is with c++ but i want to do it with c#.
Can anybody tell me how to pass this files with mi application with a
very easy job in C# in the emulator or with a pocket connected to the usb port.
Thanks a lot
juli.x
|
|
|
|
|
where can i get GPRS emulator ???? sum1 can help me ???
|
|
|
|
|
hi all,
Synchronization provides a means to compare two Object Stores, analyze their differences and then modify each Object Store so that the two are identical.
i wanted to sync my nokia phone data to my pocket pc windows ce device over bluetooth.
for that i am planing to write a application for my pocket pc.
what are all the various data sync standards available in the market ?
To support all the mobile phones(such as nokia, motorola, samsung and etc.,, how difficult it is to implement ?
any body is having idea about sync standards ?
please explain me in detail.
regards,
aks
|
|
|
|
|
Hi all,
will activesync supports of transferring data between Pocket PC and Smartphone ?
suggestions are most welcome.
regards,
aks
|
|
|
|
|
Hi, I'm developing an application for a pocketpc2003 based device. Now I have to port this application to a Windows CE based device.
In my application I used FindFirstFlashCard() to detect a storage on the device, but this function is part of PPC SDK. What can I use to detect if there's a flashcard (a storage card) on the winCE device?
|
|
|
|
|
I believe you will have to ask the device manufacturer for that information.
Regards,
João Paulo Figueira
Embedded MVP
|
|
|
|