|
Windows Mobile is just Windows CE with .NET Compact Framework 1.0 SP2 and some office progams and stuff.
Wikipedia: Windows Mobile[^]
---
b { font-weight: normal; }
|
|
|
|
|
hi, i have a date and time picker in my smart device application. i can select a date and store that date but when i edit the date and time picker should be selected on that particular date rather than the present date..ive tried everything and i dnt know what i am doin wrong..has any1 got any suggestions please??
Public Sub New()
MyBase.New()
'This call is required by the Windows Form Designer.
InitializeComponent()
m_picker = New DateTimePicker
m_picker.Location = labelPlaceHolder.Location
m_picker.Size = labelPlaceHolder.Size
labelPlaceHolder.Parent.Controls.Add(m_picker)
labelPlaceHolder.Parent.Controls.Remove(labelPlaceHolder)
m_picker.Format = DateTimePickerFormat.Short
'Add any initialization after the InitializeComponent() call
End Sub
the above shows the code where the date and time picker is loaded and when i select a certain date, the value is stored in
labelPlaceHolder.Text = m_picker.Value.ToShortDateString
once i click on the edit button my form i want the date and time picker to show the value stored on the above line.
plz help me
thanks
|
|
|
|
|
I want in my RichTextBox this action to do: Backspace key takes the same action like left arrow key. Speaking generally I don`t want to delete characters by backspace key inside the textBox field unless it is the last character.
This code works in TextBox (do the action which I want) but unfortunatelly doesn`t work in RichTextBox.
private void textBox1_KeyPress(object sender, System.Windows.Forms.KeyPressEventArgs e)<br />
{<br />
<br />
char c = e.KeyChar;<br />
int start = textBox1.SelectionStart;<br />
int lenght = textBox1.Text.Length;<br />
<br />
if(c == (short)Keys.Back && start!=lenght)<br />
{ <br />
e.Handled = true;<br />
SendKeys.Send("{LEFT}");<br />
return;<br />
}<br />
}
Can anyone help me? Sorry for my english
|
|
|
|
|
This is a re-post of an article I put in the COM section. It refers to .NET, COM and RPC so it's kind of hard to get coverage by people with appropriate skillsets.
Here is the problem:
As soon as I installed XPSP2 the startup code in a COM object instantiated by a .NET Service hangs. This in turn cause the service to hang.
Observations:
The COM object is instantiating an RPC Listener when it hangs. It specifically hangs on an endpoint registration, though raaaarely it continues through after getting an error code. The function in question is RpcServerUseProtseqEp and it returns 1740 (duplicate endpoint) or hangs. I am very sure the endpoint is NOT already registered.
If I manually start my service it will work.
If I delay the service start by 5 minutes (in code) it will start.
If I add almost every service dependency I can it will still hang.
If I have another service start the COM object (query a web page in background) it starts fine!!
This all seems to work fine under 2000 SP4 and under the previous XP. I may just require a service environment (if it works under 2003), but I would really like to fix this behavior. This requires .NET, COM & RPC familiarity so I may have to move this to another forum.
Assert(this);
-- modified at 11:21 Monday 3rd April, 2006
Ok, found the fix for this. The RPC listener code was initiated in the DllMain section of the COM object. The DllMain section is a bad section to put any init code in due to lots of system locks etc... being set when that is called. Evidently XPSP2 has added some that were not there before and a previously working app. can now lock up.
|
|
|
|
|
VB.net
I am trying to learn how to write a document and saw this code
below: How do they figure out the number of characters?
Number of characters with spaces?
WriteLine("<o:characters>326")
WriteLine("<o:characterswithspaces>382")
|
|
|
|
|
What do you mean?
What kind of document are you writing? Who are "they"? What characters are you talking about?
---
b { font-weight: normal; }
|
|
|
|
|
It is a word document that is being populated. I was just wondering how they figure out how many charactres are in the document. It is a template document
|
|
|
|
|
They count the characters.
As that answer was so terribly obvious, it's probably not what you were looking for. Can you be more specific in your question?
---
b { font-weight: normal; }
|
|
|
|
|
Hello,
I'm trying to parse a string according to a Type that's being passed in:
<br />
Type inputType = Type.GetType("System.Int32");<br />
string inputString = "314"<br />
<br />
TypeDelegator td = new TypeDelegator(inputType);<br />
<br />
return td.InvokeMember("Parse", BindingFlags.Static | BindingFlags.InvokeMethod | BindingFlags.Default, null, null, new object[]{inputString});<br />
However, the code above results in a MissingMethodException: Method "System.Int32.Parse" not found.
Calling System.Int32.Parse(inputString) works fine, so I have no idea what's wrong.
I've played a bit with the BindingFlags, but to no avail.
First person to answer correctly gets a cookie!
Thanks!
Moo
|
|
|
|
|
Parse is a Public Static method, so add BindingFlags.Public
|
|
|
|
|
Hehe, can't believe it was that simple.
Thank you very much!
|
|
|
|
|
Hello,
I'm trying to pain a TabControl.
I already painted the tabpages, but I have a grey rectangle, from the last tabpage until the right limit of the tabcontrol, that I cannot paint... How can I paint this part of the tabcontrol??
Can anyone help me?
Thank you very much
ACC
|
|
|
|
|
http://www.codeproject.com/dotnet/CustomTabControl.asp
|
|
|
|
|
hi all. having a slight problem with opening a url in my smart device application..
i have a button and when i click on it i want it to open internet explorer and have the url loaded on internet explorer..
any ideas
thanks
|
|
|
|
|
|
tried that but it did not work..process not declared
|
|
|
|
|
Introduction
I've got a combobox on my form which is bound to a complex data source (IList).
myCombobox.DataSource = myList;
myCombobox.DisplayMember = "LastName";
myCombobox.ValueMember = "person_id";
The combobox itself is bound to a business object
myCombobox.DataBindings.Add("SelectedValue", myBusinessObjectInstance, "person_id");
So far so good. My combobox is filled with the provided Items and when I select an item inside the combobox the value get's updated in my myBusinessObjectInstance as expected.
Problem
As far as I understand the BindingContext class it holds all bindings (controls) bound to the same data source instance, in my case myBusinessObjectInstance .
But when I ask the form for the BindingContext attached to myBusinessObjectInstance the combobox binding is missing.
What do I miss?
myMsg.BehindDaKeys = "Jerry Maguire";
|
|
|
|
|
I am trying to install .NET1.1 on Windows 98, a task which I have done quite succesfully before. This time however it fails right at the end when registering enterpriseservices.dll. A message is displayed that Regsvcs has "performed an illegal operation", and the whole installation rolls back. I have tried updating the windows installer, and running the Installation Cleanup Utility, and deleting the windows\Microsoft .net\framework folders, all to no avail. This is a brand new W98SE installation with nothing on it but VNC and ZoneAlarm.
I have found several messages on the web from people who have had this problem, but not one that satisfactorily cures it. Any suggestions would be welcome.
Dave
|
|
|
|
|
Have you installed all available patches on the Win98 box? How about MDAC 2.6, Internet Explorer 5.01, Windows Installer 2.0 and all their patches?
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
I have the latest version of the Installer (as stated), IE is at V6, MDAC at 2.81, and I've done a full Windows Update scan.
Dave
|
|
|
|
|
Not a clue. And it doesn't look like anyone else has one either.
There is a hotfix for the System.EnterpriseServices.dll (and the Thunk that goes with it), but it will only fix certain problems AFTER installation of the .NET Framework, not before.
About the only thing I could even remotely suggest is to wait for .NET 1.1 SP2. But that doesn't help you now... I'd try it on a new installation of Win98, but without installing anything else. Not even ZoneAlarm...
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
By the way, did I mention that the processor is a 486. Is it possible that this is the cause of the problem?
Dave
|
|
|
|
|
Well, the minimum is either a Pentium 90MHz, or the minimum for the O/S, whichever is higher.
I don't think a 486 qualifies...
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
I guess that's the problem then. Odd way to manifest itself, but there we are. Thanks for your help.
Dave
|
|
|
|
|
I create a thread with sub1 of form1 subs.
In sub1 i want to access to form1 controls.
but it cause InvalidOperationException error and this error description :
"Cross-thread operation not valid: Control 'Status' accessed from a thread other than the thread it was created on."
what cant id do?
hhamidreza62@yahoo.com
|
|
|
|