How to hint to users that they can scroll? - c#

I was wondering if there is any built-in way to show users that there is more content that they can scroll to besides the appearance of a scrollbar.
A scrollbar appears on the right. Someone reading content might not look there. If there is some way to hint to users at the bottom of the currently visible content that there is more content that they can scroll to, that would be nice.
Of course we can do anything in code, but that would be too time-consuming (at least to do well). So I was wondering if there is some CSS or HTML property that can be used for this, or perhaps some Asp.net element.

Normally the usual pattern of users really don't look at the scroll bar at the right side of the screen, but also, normally people willing to read more content tend to scroll it using their mouses, so popping up that there's more things below the main part of content it's a silly assumption that the users can't scroll on their mouses as they normally do.
BUT, answering your question, you can use HTML, CSS and jQuery to add a fixed icon on bottom left or (more likely), bottom right corner of the screen, showing with an arrow that they can go to the next "chapter" or etc, you'd use hashes calling IDs over DIVs and as the user clicks the arrow, they'd be redirected just down below to continue reading. Not that fancy to code this, but it's pretty decent stuff. Comment below if you're wondering to see an example and I'd be glad to help and code a simple example for you.

Related

Simple Taskbar NotifyIcon

I have a software that needs to trigger a little popup image by the taskbar. I have found some classes to help my cause, however, they're too complex and I wanted to ask here first if there's a better option for my scenario.
This is what I found:
http://www.codeproject.com/Articles/36468/WPF-NotifyIcon
But I don't need all those functions. I can't seem to find a simple way to achieve my goal.
All I need is a 200x100 rectangle image to pop-up by the bottom right corner, and open a URL when right clicked. It should open the webpage using the system's default browser. However, I need to do a few more things in addition, so a method like Object_clicked() would really help me a lot. Simply, I want a clickable notification image to popup for x seconds, but I don't know an easy way to do it.
Should I try to go with the link I found, or is there a simpler way?

Learning to drag and drop buttons in Winforms

I am currently trying to learn how to use Drag and Drop functionality in C# winforms. I've found some pretty neat tutorials and documentation online, but none that have helped steer me in the direction of a solution for my current problem.
To break my design goal down into just a simple example- I basically have a windows form that is split in half. There are regular ol' button controls on the left half, and nothing on the right. My goal is to be able to drag a button from the left side and drop it on the right. Doing so will grey out the button on the left side, and have the button now shown on the right. It doesn't have to show up wherever it was dropped on the right side- it can just appear in a preset location if necessary. I just want to be able to copy buttons from the left to right side.
Now, with that said- can anyone think of documentation, tutorials or anything else that might help steer me on the right track to figuring out how to do this? So far I've found that I'll need events for picking it up and putting it down, but beyond that I'm at something of a loss!
Normally I try to have more details in my questions, but since there is really nothing else to the program at this point I don't have much by way of code to show! So sorry for the somewhat vague question!
Thanks!
See Walkthrough: Performing a Drag-and-Drop Operation in Windows Forms
Edit: Changed link to english version
Check out this drag-and-drop walkthrough: http://msdn.microsoft.com/en-us/library/za0zx9y0.aspx [english]

How would you create a page like WP's Mail app's Compose screen?

I'm new to WP dev (and pretty much C# and Silverlight in general) and I've been playing with Textboxes. I found pretty quickly that you can't really scroll a TextBox control.
I've seen some solutions to this on various blogs and StackOverflow posts, and the most popular one seems to be to embed the TextBox in a ScrollViewer, then use some code to make the current input line always visible, like this:
scrollViewer.ScrollToVerticalOffset(textBox.ActualHeight);
This works okay if you have a relatively small TextBox, but if you want to make one that takes up quite a bit of space, you run into problems where the keyboard covers up the bottom section, you can't scroll to the top unless you manually move the cursor up there, etc.
Now the Compose page of the Mail application seems to do this perfectly: a nice big space for text entry where the keyboard never blocks the input, you can freely scroll through the entire pane, it just works really. I've tried various combinations of scrollviewers and textboxes but I haven't had any success in matching its behavior.
Any help?
The default apps are not written in C# using controls accessible in SDK or on the net.
Replication of mail viewer and composer has been tried before rather un-successfully. (Based on similar posts of AppHub - old WP7 forum)

Create a nice user input in a popup and send the data to the main page

I am working on an ASP.NET/C# application,
I am looking for the best way to do the following. (Note: I don't need you to tell me how to do it, just if you can point me to the right direction to look)
in my main page I have a button. When the user clicks it,I want to open popup open containing a map. the user can click on counties to highlight them and then click on submit. I want to be able to know which countries the user has clicked on in my main page (maybe save it in a array or string or anything)
What is the best way to do this? Should I use flash?
I know this is not a problem/solution type of question, but if someone can point me in the right direction I would very much appreciate it. Just some ideas and I will do the researches.
Thank you very much for any inputs or comments
And sorry for not being a specific problem question.
For the pop-up you can use a dialog (a "modal" HTML form like what you find in jQuery UI or similar). If you're using plain "old" ASP.NET you may need some trick if you want to use forms but they works well.
If what you want to provide is a selection from a map you do not need Flash (at least I wouldn't use it for such simple task, I'm not a fun of that kind of extensions). An image map can work well and it's more portable. If you want you may use HTML5 features to provide better experience for users with a compatible browser. I do not remember the link but I saw a very nice example of this using plain HTML (4) and JavaScript. Using a low-res image as base for the map, small images as checks applied on top of it and div tooltips for details (it supported a zoom-on-click feature too to enlarge a portion of the map loading a higher resolution version). I guess I wrote somewhere that URL...
Links
Nice article: http://www.workwithchoicecuts.com/methodology/revisiting-the-html-image-map/
For image maps basics: http://www.javascriptkit.com/howto/imagemap.shtml
Image map builder: http://www.image-maps.com/
jQuery plug-in for selection from maps: https://github.com/jquery/plugins.jquery.com

Windows Forms Panel control slowly creeping

So I'm working on a card maker for a TCG. I seem to have encountered a very odd glitch and can't find a decent workaround. I have several panels that contain various controls for determining the different variables of the card, like so:
However, I've noticed that if I go into the Form1.cs file and change code--any code at all, from adding/removing comments to deleting and restoring a semicolon--and then go back into the design view, the design view window goes black for a moment whilst it redraws everything, and then pops back into place...except that the right-hand side of various panels has been bumped to the left about 5 pixels. It doesn't seem like much, but after multiple changes, multiple swapping back and forth between windows I get this:
...which of course is hideous and unusable. For a long time I couldn't determine why some panels did it and others did not, but finally while reworking the Keywords tab you can see in the screenshot, it dawned on me that it was any panel that I have set to anchor both on the left and right hand sides of the parent control. This is to allow the user to resize the window to their heart's content. I currently have a kludge in place in which I modified Form1.Load() to hard-code the size of the affected panels. This is of course entirely against the whole point of using a visual editor in the first place.
The hierarchy of the controls goes Form1->SplitContainer->SplitContainer.Panel2->TabControl->StatsTab->StatsPanel. This unfortunately doesn't appear to be a code-based problem since I don't write any code to affect this. The redraws apparently actually change the StatsPanel.Size property, and if I cycle back and forth I can watch it sloowly decrement.
So, does anyone know what might be wrong? I don't like to jump to "oh Microsoft has a glitch in their editor" but I can't find anything else that I am doing or setting that could be causing it. Any help would be most appreciated.

Categories