How to center a button (.NET Compact Framework) - compact-framework

I want to centre a button in .NET Compact Framework. I dont see any property like StartPosition in .NET CF Form object.
Can someone please suggest me how to centre button in .NET CF 3.5?

You mean you want to center the button in it's container along these lines?
myButton.Left = myButton.Parent.Left + (myButton.Width / 2);

Related

How to implement Camera function in windows forms?

I'm working in a proyect in VB.NET who will run in .net frameworks 4.5 (windows 8.1).
I need to implement a function to add the posibility to take pictures INSIDE my application.
Can anyone help me saying what's the right way to implement?
(What class,functions,interfacts to use..etc

Gray unusable area on CE Winforms form

Did test app for Windows CE Winforms App.
Main form has about 30 px gray area between the form header and the actual content.
On the device itself (not emulator). CF 3.5 CE 6.0
What to do?
Remove the Menu from the Form or add MenuItems to it.

how to create charts in vb.net

How to create Charts in vb.net. Is it possible to have a chart like this without any additional components ? If yes then how ?
Using this VS component for real time manipulation
Sorry I can't see the picture (stupid internet blocker) but you should look into the Microsoft Charting Controls which work with both Windows Forms and ASP.Net.
The chart controls are shipped with the .Net framework 4.0 and above, or you can download
the chart controls for the .Net framework version 3.5.
Update: Oooh, now I can see the pretty picture - the Microsoft Charting Controls can definitely do this.

bar graph in vb.net?

i need to take user input and make a very simple bar graph from it in vb.net. anyone have suggestions on an easy way to accomplish this?
You didn't specify a framework but I'm guessing that you're using winforms?
What you're looking for is a chart / bar control. By default WinForms doesn't have great bar / chart controls. This site has a breakdown of the various add ons Microsoft released for WinForms and ASP.Net in the area of chart controls
http://blogs.msdn.com/magreer/archive/2008/10/24/microsoft-chart-control-for-winforms-and-asp-net-now-available.aspx
Agreed - you didn't specifiy framewrok version - web or windows app. But here
is a good free one for 3.5 framework web or windows apps.
I have been very please with ZedGraph for .net 2.0. I use it for both webforms and winForms.

.net cf 3.5 treeview Checkbox for the given node only

Treeview in .net cf 3.5 pocket pc app If we enable checkbox it will be displayed for all nodes, i want to show check box for childs of some nodes only. Is it possible ? i found some windows forms apps doing custom draw in drawnode event. But there is no drawnode event in .net cf treeview.
You are correct. The CF TreeView is a simple wrapper around the native CE TreeView control, which does not support checkboxes. You would have to create a fully custom control for this behavior. It may be worth looking at third-party control vendors like Resco to see if they have anything (I don't know if they do or not).