A common name for size and location? [closed] - c#

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
This might be a bit silly question since it's all about terms and naming, but I find it important for me to name my methods correctly.
I'm creating a windows form and I need a method that sets buttons' and textboxes' sizes and locations (at initializing process, and every time my form gets resized). What should this method be called?
At the moment I'm using name SetSizeAndLocation();, but I find it quite disturbing. Is there a common term for size and location?

i often find that position+dimension of a window are referenced together as "geometry" of the window, e.g. in tcl/tk windowmanagement.
you also find this in the X-window system.

In Windows Forms, the Control.Bounds property allows you to get or set a Rectangle that contains both the size and location of a control, so I think SetBounds would be a good name for your method.

Rectangle. Like the shape of a window. A rectangle object consists of both the location and size of a rectangular shape.

Related

Dynamic building layout using PHP or C# [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 9 years ago.
I am trying to put together a solution for our office to map the cubicle and office layout. We currently have both php and C# applications, so the solution can be built in either. We have something in PHP already, that allows us to move people from one cubicle to another, but it is based off a static image size and point coordinates. For example, cubicle one is at (3px, 4px). While this solution is working, it doesn't allow for the image size to change, or for the image to change at all without significant coding to realign all of the points on the image. Is there a better solution that can be used or an open source library that would be helpful? A coworked suggested that the Google Maps API might be helpful, or Leaflet.js. However, these both use geocoding, so unless our current Lat and Long is accurate to like a foot, I don't see how these could help.
Thanks for any suggestions.
Update
Here is an image similar to the one we are using. We add absolutely positioned clickable divs over the image to show who sits there.
What your co-worker suggested is not so much the GMaps API itself but the implementations of rotations/geosync translation/zoom algorithms that would allow you to flip an image and all the points related to the image.
No specific code implementation, so I can't be more specific.

Splitted Text box in Silverlight or Windows Phone [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
I need the customized Texbox like the below in Silverlight or Windows Phone platforms. That will be splitted based on the mask which has been applied to the control. I was looking over the internet and did not find anything.
I guess you cannot get away without creating a custom control. If you say split should be based on some mask, then, I guess, there could potentially be any number of text boxes inside, i.e. from 1 to unlimited (theoretically). Then you probably need to consider moving input focus between fields based on user input. Based on all this, custom control is what you need. If you have no previous experience with custom controls in WP or Silverlight, I suggest you to take a look here.

Processing images/video stream in C# [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
What is good book to read on about image processing in C#, and image processing overall.
Image will be taken from a camera and will be searched for certain objects, changes, etc.
If you're just wanting to to "basic" image manipulation functions, like color adjustments or things like that then you should probably just brush up on basic math and bit manipulation, you'd be surprised what you can accomplish with a few simple tricks (like in this post and this article).
However, if you're serious about image processing I would recommend Algorithms for Image Processing and Computer Vision, the source is in C, but that doesn't change the underlying concepts.

How to generate Automatically resx files for project [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 11 years ago.
I want to generation automatically Resx files for my project, I've heared that there's program which does it.
Can anyone tell me it's name?
The only program I know is Visual Studio. You can easily create your own program by using the ResXResourceWriter class.
As Hans stated, for components such as forms and user controls, you can do this via the "Localizable" property. For other ".resx" files, you can easily create your own localized ".resx" file but it needs to be properly named (you can read up on this - Google for "satellite assemblies" for starters). If your goal is dealing with translations in general however, then unless your app is very small, this approach is difficult, tedious and error-prone (trying to track changed strings on your own for instance, whose existing translations have become obsolete). There are 3rd-party packages that can help you however, and I'm the author of one of them (in the interest of full disclosure). See http://www.hexadigm.com.

Explorer window like address bar [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
The file system explorer window in Vista and Windows 7 has a bar at the top of the window where one can type in the address to look at. When you leave the field it turns from being a text edit field to a field with buttons and drop down menus that can be used for navigating.
Are there any existing components like this? How can one go about building this type of component?
Spy++ shows it to be a ToolbarWindow32. So it is just a toolbar but functionality seems to have been added to it.

Categories

Resources