473,382 Members | 1,651 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

Desktop Sticky Form

24
Hello everyone,

Can someone help me to make a desktop sticky form, always on the back not on top.
I try to search on internet but I did not find anything.
Please help.

Thank you
Feb 18 '10 #1
7 5181
CroCrew
564 Expert 512MB
Hello hdbbdh,

This is more of a “could someone create an application for me” question.

After you give it a try first yourself and find that you are not getting the results that you are looking for then please post your code here and we will be happy to provide you with a solution to your coding problems.

<cough /><cough />
http://msdn.microsoft.com/en-us/library/aa480731.aspx
<hint /><hint />

Happy Coding,
CroCrew~
Feb 18 '10 #2
hdbbdh
24
Hello CroCrew,

Thanks for your responding.
As you see, I submitted this question in vb.net section, and I reached before for the same link that you mention, but I don’t find anything written in vb.net.
This question is not like "could someone create an application for me", because I am asking about a tip only, and I tried to find anything on internet, but unfortunately I found nothing.
Please note that I am not a proffesional programmer, because if I am proffesional I will not ask.

Thanks and Best Regards
Feb 18 '10 #3
CroCrew
564 Expert 512MB
Hello hdbbdh,

Your question is worded:

Can someone help me to make a desktop sticky form, always on the back not on top. I try to search on internet but I did not find anything. Please help.”


My reply had a tip in it, a link to an article called “A Desktop Sticky Notes Application in the .NET Framework 2.0”. So what that it is not written in vb.net?

You’re looking to create an application that would not be tasked to a novice programmer. Can it be done by a novice programmer? YES. But, it is going to be painful at first because as you see there are not many examples out there.

So, if you are going to proceed with this endeavor then you’re going to have to learn more then what you’re comfortable with to date. I understand now that you’re not a programmer because you just told us so. But, even a “professional programmer” needs help for time to time. Every programmer is continually learning something new with each application they develop.

Again; if you still want to take on this project; pull up your boots and quit with the copouts. Learn something new today.

All the best,
CroCrew~
Feb 19 '10 #4
hdbbdh
24
Hello everyone,

The best code that I can do is something like the following:

Expand|Select|Wrap|Line Numbers
  1. Imports System.Runtime.InteropServices
  2.  
  3. Public Class Form1
  4.     Public Const HWND_BOTTOM = 1
  5.     Public Const SWP_NOSIZE = &H1
  6.     Public Const SWP_NOMOVE = &H2
  7.     Public Const SWP_NOACTIVATE = &H10
  8.  
  9.     <DllImport( _
  10.     "user32.dll", _
  11.     CharSet:=CharSet.Auto, _
  12.     CallingConvention:=CallingConvention.StdCall _
  13.     )> _
  14.     Public Shared Function SetWindowPos( _
  15.     ByVal hWnd As IntPtr, _
  16.     ByVal hWndInsertAfter As IntPtr, _
  17.     ByVal X As Int32, _
  18.     ByVal Y As Int32, _
  19.     ByVal cx As Int32, _
  20.     ByVal cy As Int32, _
  21.     ByVal uFlags As Int32) _
  22.     As Boolean
  23.     End Function
  24.  
  25.     Protected Overrides Sub OnActivated(ByVal e As System.EventArgs)
  26.         MyBase.OnActivated(e)
  27.  
  28.         Dim b As Boolean = SetWindowPos( _
  29.         Me.Handle, New IntPtr(HWND_BOTTOM), _
  30.         0, 0, 0, 0, SWP_NOMOVE Or SWP_NOSIZE Or SWP_NOACTIVATE)
  31.     End Sub
  32. End Class
  33.  
The problem now when I press WinLogo+D (Show Desktop), the form become minimized, and it must be in normal state, then any idea for correction?
Feb 21 '10 #5
tlhintoq
3,525 Expert 2GB
Make it a Vista/Win7 gadget.
Feb 22 '10 #6
hdbbdh
24
Thank you tlhintoq for your help.
I don't know about this technology, but I will study it and I will come back.
Thank you again.
Feb 23 '10 #7
Well in that case you can use a timer to determine the WindowState and set it to normal if it is minimized.
Mar 14 '10 #8

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: michael nieuwenhuizen | last post by:
how do i create a sticky form with multiple fields? say i want a form with: name: address: country: and if a user presses the submit button it will show
5
by: dave | last post by:
Hello, Ok, i'm missing something probably very simple. I want to have some forms that are sticky, a user fills one out then is given a personalized thank you message on the next page and the Email...
5
by: mabond | last post by:
Hi all This question is one of "theory" rather than a search for the specifics of a solution. I need some pointers as to how to proceed with my project. Here goes. My application allows the...
2
by: John Brock | last post by:
At work we are using a virtual desktop manager called AltDesk (http://www.astonshell.com/), and it is causing a weird and extremely annoying problem with the VB.NET application I am developing. ...
4
by: dac | last post by:
I am quietly going insane on this project. I've never worked on a project like this one before. All my previous sticky forms were for data entry, not editing. I don't know how to display the form...
2
by: sojo | last post by:
As a web designer with only very rudimentary php skills, I've looked all over for a user friendly php form processor that includes sticky fields. The best match for my needs, php form wizard...
16
by: Summercool | last post by:
the sticky form is that if validation didn't pass, re-display the form with the value in the text input again (and for other input field as well...) no book I read did it correctly so far. ...
3
by: cheapterp | last post by:
Hey Guys, I have just started working on ColdFusion, so I am relatively new to it than most of you may be. I am trying to create 'Sticky Stay-Filled' forms so that when the form is submitted, the...
9
by: student4lifer | last post by:
Hello, could someone show me how to make sticky form with dynamically generated form element? for example, if one likes to make the dynamically generated check box (and its name) 'sticky' that...
7
by: wktarin | last post by:
I've constructed a survey form, and I want to make the radio buttons sticky, so that if participants leave the page, they can return to find their answers still in tact. However, I can't seem to find...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.