|
What version of Windows Mobile are you using?
|
|
|
|
|
Hi I'm using the mobile 6 version, visual studio 2008, .NEt 3.5
|
|
|
|
|
I don't believe you can do this with the default WinMo TabControl, and I'm not aware of any open source implementations that provide this functionality. You might want to look at the controls at Resco[^]
|
|
|
|
|
There is a software called "advanced uninstaller pro 11" , I want to know is how the software dynamic menus can be built with C #? My English is poor, please reply with fluent English
This is software that addresses:advanceduninstaller
|
|
|
|
|
Instead of linking us to a website (which makes me wonder whether this is just a spam pseudo-ad), describe your problem. Dynamic menus could mean a lot of things. What do you mean by dynamic? (Different content each time you show them? Ability to change content while it's visible? Built once on app startup?) And what environment (i.e. web, WinForms, WPF, Silverlight etc)?
|
|
|
|
|
Surely this is not spam. I mean that would like the software advanced uninstaller, Means when we click on one of the menus with animation-like state of being into another.
|
|
|
|
|
I would also suggest you to post this question in their Forum for better and quick answer.
|
|
|
|
|
Hi people,
I've a doubt:
Today I work with Java, but I started teaching C# to beginners.
I created two forms, each one has a button on the middle of the form. When I click the button of the first form, the second form appears and the first form disappears. When I click the button from second form, (the one that appeared), the first form appears and the second form disappears.
It's just to teach how the methods .Show() and .Hide() works. Now it's working, but I've a problem: When my software is running over Visual Studio, normally if I were, for example, working with just a form, clicking on (X) to close the app, the IDE came back to development mode. But on my app, after I show some punch of clicks to go to a form and to came back to the other, even if I had been on any of the forms (first or second), if I click to close the app, It does not happens.... I have to click Shift+Control+F5 to came back to development mode, and still doesn't happens again, the form appears, and I have to close it (again), so THEN I go to development mode... Weird.... Could someone help-me ?
I'm hiding the first form, and opening the other using
<pre lang="c#">
Form form2 = new Form();
form2.Show();
this.Hide();
and inside the Form2:
<pre lang="c#">
Form form1 = new Form();
form1.Show();
this.Hide();
|
|
|
|
|
Process won't quit till the main form and all foreground threads finishes executing. If you close the Form1, it should get closed properly. Is that happening?
|
|
|
|
|
airmigjr wrote: Today I work with Java, but I started teaching C# to beginners.
I don't mean to sound negative, but I don't think you should teach C# (yet) if you still have these kind of questions.
That doesn't mean you're a bad programmer, but I think you still lack the thorough .Net knowledge to teach it.
I'm working with .Net for almost 10 year now (since 1.0) and I wouldn't even want to teach it.
|
|
|
|
|
I totally agree with you.
Think! Don't write a line of code unless you absolutely need to.
|
|
|
|
|
You didn't close the startup form. You closed another INSTANCE of Form1.
You should not have used Show to show Form2. You should have used ShowDialog. That way, when Form2 closes, the original instance of Form1 gets control back. Though, the down-side to using this is that Form1 code blocks until Form2 closes.
Form2 form2 = new Form();
this.Hide();
form2.ShowDialog(); ' Blocks until form2 closes
this.Show();
|
|
|
|
|
Very thank's Mr. Kreskowiak. You helped-me very very much!!! Thank's Again!, and Best Regards!
|
|
|
|
|
As far as teaching this class, you and your students are still screwed. You don't have the prerequisite knowledge to teach this stuff. You're just going to be guessing at how things work and the only thing worse that not knowing anything at all about what you're learning is being completely misinformed about what you're learning, and that's the path you're leading these students down.
|
|
|
|
|
This is entirely the wrong way to demonstrate Show/Hide. Multi-form UIs are difficult to get right, and coding up the example that you are using correctly will introduce a whole bunch of concepts (about main forms, the application loop and Program.cs) that are not relevant to the point.
Just have a button on your main form that shows or hides the secondary one.
And why are you creating a new instance each time? Such an elementary misunderstanding of objects and classes indicates that you shouldn't really be teaching people about any OO environment.
|
|
|
|
|
A windows App process will not close until the Main method exits.
And you're creating a new instance of the forms on each button click. What you should ideally be doing is to create a private member of Form2 in Form1 and instantiate it in the Form1's constructor or when it is first used (and vice versa for Form2).
|
|
|
|
|
Hi All,
I was developed a c# windows application and now I want to create a setup package for it that contains the SQL SERVER and .NetFramework and the application itself.
please help me how to create this package and how to handle the windows type and bits like windows 7, vista, 64 or 32 bit.
Thanks All
|
|
|
|
|
Look here[^]. zead wrote:
I was developed a c# windows application and now I want to create a setup package for it that contains the SQL SERVER and .NetFramework and the application itself. I don't think you can package SQL server with your application. Not sure if the license allows to do this.
|
|
|
|
|
I wrote one .net c++ dll,and reference it in an c# winform program .Prompt the following error:
title: BadImageFormatException was unhandled
content:
Could not load file or assembly “CppDll, Version=1.0.4798.31848, Culture=neutral, PublicKeyToken=null”or one of its dependencies.
the Default cpu settings is anycpu,when i change it to x64,the result is the same.but when i change it to x86 it can work well.
This is a very simple test example code:
part dll code:
namespace CppDll {
public ref class Class1
{
};
}
part exe code:
public Form1()
{
CppDll.Class1 cls = new CppDll.Class1();
InitializeComponent();
}
|
|
|
|
|
peter462 wrote:
the Default cpu settings is anycpu,when i change it to x64,the result is the same.but when i change it to x86 it can work well. Where are you changing? In the C# project?
|
|
|
|
|
It doesn't work because you compiled your C++ .DLL as 32-bit. You cannot mix 32- and 64-bit code in the same process.
Either recompile your .DLL as 64-bit or go into your C# project properties and target x86 (32-bit) to force your C# code to run as 32-bit only.
|
|
|
|
|
This is why the default setting isn't Any CPU anymore.
|
|
|
|
|
Hello friend!!
I will required the whole static text present on external application's input box or message box.
For example consider Microsoft word as external application which is password protected.
Suppose my file name is "Demo.docx", when I clicked on this file the "password" input box is opened as i have already mentioned my file is password protected.
The "Password" input box will contain static information message as follows:
Enter the password to open file "C:\...\sham\desktop\Demo.docx"
So my requirement is to getting this static message present on external application's input box or message box.
Is there any way to read out this message programmatically??
|
|
|
|
|
sham bhand wrote:
Is there any way to read out this message programmatically?? I don't think there is way to do this completly using .NET classes. You have to work with native windows functions to do this. The idea is
1 - Get the window handle for the textbox you need to read. You can use FindWindow()[^] or FindWindowEx[^] to get a window handle.
2 - use SendMessage and send WM_GETTEXT to the handle to get the text.
|
|
|
|
|
Check out the "UI Automation" classes in the .NET framework.
Google "UI Automation C#" to get started.
|
|
|
|