Calender View Control Position On Screen
I click a number of buttons to open a calender view
Can anyone tell me how to get my calender view to always open next to the button i pressed to open it
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Control Position On Screen
Any fast way to find a controls screen position other then getting the Left value of each parent all the way down to the form?
I want to replace the pixels in my picture box with the pixels of the DesktopDC but i gotta figure out the pixel position.
Screen Position To Form Control Math.... HELP!
I am using the
Private Declare Function GetCursorPos Lib "user32" (lpPoint As _
POINTAPI) As Long
Private Type POINTAPI
x As Long
y As Long
Dim a As POINTAPI
Dim b As Long
Dim c As Long
API to read the position of the mouse.
Now I need my form to use twips since I dynamically am adjusting position of all form controls on form resize and I tried pixels and it was a mess.
Now I use the mouse position in conjunction with Microsoft HTML Object library pointing to the currently loaded page in the webbrowser control.
Say a link is on the page. I use the mouse X,Y to check if it is over a link.
The API returns positions that to not work with the browser.
I will be like 30 pixels above a link and it thinks I am on it.
I tried adjusting it and it still didn't work.
Is there some math solution to get the returned X and Y to be X and Y for the browser control? Wouldn't it have to account for different screen resolutions and form sizes?
The code attached is in VB 5.
Thank you for any help
Just wondering, I have VB6 and the calender control, which is fine but takes up too much room - is there one available that shows when you hit a combo button or something (like VB.Net)
I'm using MS calender Control. I tried to, but failed, to color the days of my choice. Is there anyway to color some specific days in the control? I don't care wheater it is the text or background color, as long as it is a single day that is highlighted
VB6 Calender Control
Anybody had any problems using the Calender Control in VB6 under XP?
If so did you fix it?
And if you fixed it how did you do it?
Calender Control -- Nothing
I use the vb calender control in a application. There is about in total 50 of them in the program. The problem is that about 5 of them, when you make it visisble it displays the control with no day values, the month and year is fine but only the days is effected. All the other controls is fine its just a specific nm of them that ****s around.
I need major help on this. I DONT NEED ANY CODE (although I might need some examples on how to make it work?).
so i added ms calender control from the components. dragged it on, and did a
Private Sub Calendar1_Click()MsgBox Calendar1.Day End Sub
so i get the day. ok heres my purpose:
I am a student, and I have 4 days to work on this project. I am trying to make an organizer. so like, on the main page a calender is shown, and if they click a date they can add what "TIME" things need to be done, and whens it due and stuff.
how do I store the info? what do i need? any other components?
anyone wanna send me some examples?
On one of my clients machines that numeric dates are not appearing in the calendar control, instead there are just *. I have ensured the mscal.ocx is installed & registered.
How can you set the value of a textbox to what ever date you select in a calender control?
Calender Control In VBA
I have to use a calender control in my project.
And my project is based on VBA.
As i don't know VBA, plz help me.
My client want a calender which have to show his appointments,follow ups and vacations.
I don't know how to proceed further with this project.
plz help me.
This is a German Real Estate Company,they r maintaining their database in MS Access.He want me to convert his database into SQL Server.(Completed).
He want some additional features to his forms,
and a calender form. (regarding this, i need help)
The calender control on one of the forms shows only the month and year.
I would like it to show the date as well. Using Vb 6.
Chilangisha B Changwe
http://www.fastmail.fm - Faster than the air-speed velocity of an
unladen european swallow
VB Calender Control
I use Microsoft Calender Control in my program.
The calendar gives me the - Day / Month / Year.
Now How can I change the calendar to Month and Year view only e.g June 04
Need A Calender Control
Does anybody know where i can find a calender-control that displays a whole month or year and where i can fill in a value for each day ?
Then i want to put those values in a database.
Hi everyone, seems to have been a while since I was last on the forum with a question, but can somebody tell me why a small program I wrote with calander control in it does not work correctly on a pc with W98 OS. The program has functioned ok for a long time then I made a small change to it and now the calender control shows in the program but with no information on it (the dates on the day boxes do not show, however if you click on them it gives the correct date) The program still works ok on two machines running win2000 (both also have vb6 installed). What is the reason for this ?
Farpoint Calender Control
Select Dropdown and select Date(FarPoint Calender) and click on the button or form leaves a gray box(the image of the calender on the form).screen shot attached for reference.Please help
Will Calender Control Work For Me?
I'm trying to figure out if the calender control will work for me. I want to have important events displayed INSIDE the calender on the date they occur (like the real calender everyone has in their kitchen). Like inside the box labelled Oct. 10th I might put "Doctor's appointment: 3:00". The data can be seen month by month for the whole year, like flipping the pages of a real calender. The user might double-click a date to open a text box to enter a new event. I'm pretty sure you can't display anything inside the calender control itself; it seems to be for just picking dates where you could then print events somewhere else in the form. But what good is that? If you want to make plans for the month you want to see everything you're doing all at once not just one day at a time, right?
Thanks in advance,
How To Use Calender Control/(UNRESOLVED)
I m designing application for school and i need to design school attendance report with form in VB6, my database is in access2000. I don't know how to design 31 text boxes in single form. SO please tell me how to use calender control for this.
it's really urgent for me as this question is on forum for last 3 days and more.
Problem With MS Calender Control.
Serveral users here have a vba app in which there is a form with the MS Calender control on it. However, for one user, his date is one day off from everyone else's. Makes no sense. It works fine otherwise.
I've checked his system date and that is correct. I've also tried un-registering and re-registering the ocx. But no luck.
Does anyone have any ideas as to why this could be happening?
"If at first you don't succeed, try, try again. Then quit. No use being a damn fool about it." --W.C. Fields
HELP In Calender User Control
Can anyone help me take a look at a Calender User Control coding that was able to compile before but as I develop it, it gives me a type mismatch error in:
k = Weekday(mday) - 1
mday = WeekdayName(Weekday(mday))
// Below is the whole coding source, please help me out. Thank you so much.
Private Sub UserControl_Initialize()
load = 1
mrow = 1
mcol = 1
For i = 1980 To 2020
yrcmb.ListIndex = 24
i = Month(Date)
MnthCmb.ListIndex = i - 1
Private Sub loadgrid()
i = 0
For i = 0 To 6
.ColWidth(i) = 500
.TextMatrix(0, 0) = "Sun"
.TextMatrix(0, 1) = "Mon"
.TextMatrix(0, 2) = "Tue"
.TextMatrix(0, 3) = "Wed"
.TextMatrix(0, 4) = "Thu"
.TextMatrix(0, 5) = "Fri"
.TextMatrix(0, 6) = "Sat"
mday = (MnthCmb.ListIndex + 1) & "/1/" & yrcmb.Text
k = Weekday(mday) - 1
mday = WeekdayName(Weekday(mday))
mdays = Left(Right(DateSerial(yrcmb.Text, MnthCmb.ListIndex + 2, 0), 7), 2)
i = 1
j = 1
Do While (True)
.TextMatrix(j, k) = i
i = i + 1
If k = 6 Then j = j + 1
k = (k + 1) Mod 7
If i > mdays Then
Private Sub MenuCmd_Click()
Private Sub MnthCmb_Change()
Private Sub MnthCmb_Click()
If load = 1 Then
yrcmb.Text = Year(Date)
load = 2
Public Sub MsCalGrd_Click()
mdate = .TextMatrix(.Row, .Col)
If mdate <> "" Then
.FocusRect = flexFocusHeavy
mdate = MnthCmb.Text & " " & mdate & "," & yrcmb.Text
datelbl.Caption = mdate
If .Row = 0 Then
actrow = .Row
actcol = .Col
.CellBackColor = vbBlue
.Row = mrow
.Col = mcol
.CellBackColor = vbWhite
mrow = actrow
mcol = actcol
.Row = actrow
.Col = actcol
Private Sub YrCmb_Change()
Private Sub YrCmb_Click()
.CellBackColor = vbWhite
.FocusRect = flexFocusNone
List View Item Position
I have a list view set to report view which is populated by a database. I have a timer control which every 30 seconds clears down the list and repopulates it with up to date information.
If a user has an item selected down the list it loses that selection when the list refresh is invoked, as expected. Therefore I have written some code to reselect the item the user was originally on then used the EnsureVisible command to return the view back to where the user was.
My problem is the EnsureVisible command only just makes the item visible, what I am looking for is to return to user to the exact position that the item appeared before the refresh took place therefore making the refresh virtually unnoticable. Is this possible ?
Any help would be appriciated
Microsoft Calender Control Version 11
Hai friends ,
I am using VB6.0 and office 2003.
I am having a date control on a form . Pressing <f5> i open a form with a microsoft calender control .
Now the problem is the font size even though i set during the design mode , in the executable the font is not displayed properly. It displays as small dots.
Also if i keep the same control on a form in a separate project and make EXE , the same problem occurs.
kindly if any one has faced this problem let me know the solution
Thanx in Advance
Calender Control - Date YES But Which Week ....
I'm trying to figure out if it is possible to use the Calender control and somehow when you click the date can also find the week of that date (say it's "date = week 32 of the 2006) just like in a dairy. If it has to be any other control fine, but I would prefer the Calender cntrol to work with.
Calender Control Finnish Problems
I have installed a system in Finland onto a Finnish PC. Now the calender control doesnt work on that pc. The OCX is there and vb6 runtimes are present but for some reason the chars dont appear???
Anyone had this before?
Calender Control Current Date
I have a Microsoft Calender control embedded in a form. I would like the control, when opened, to display the current date. Is there a way of setting the value of the calender control with the current date. Any help would be appreciated. Thanks,
Storing A String On A Calender Control
im making a project and i want to have it so when you type something in and press a button it save a value and highlight the date on the calander you saved it to how would i do that?
Edited by - Split on 12/10/2005 2:08:29 PM
Calender Control 10.0 Application Kick Out
About a year ago I experience an application kick out when I clicked on the VB6.0 calender control 10.0. It only did it on one of my PC and not on the others. The solution was to go into the PC set up and reset a calender funtion. After I made the adjustment all worked fine. A year later I havent been able to fine those instructions on any of my search sourses.
Can you help diect nme to this fix.
Changing Recordsource Of Calender Control During Run Time
I am doing a project using calender control in vb and databases. I couldnt change the recordsource of the calender control during runtime. I need.... whenever i select a day from calender control the corresponding datas from the database should display in the datagrid used in the same form. I ll be very thankful if you give some suggestion for it.
How i can retain the position of my application on screen.. like whenever i open up my application (like MSN Messenger), and move it into the screen across screen... on desktop... then i exit it.. if i open a program again, how i can open it to a same place in desktop it was closed?
Position On Screen
When the user selects any cell in column #2 in my Data Grid control I want a combo box to be placed in the exact position of that cell (same left, top, height, width as the cell clicked).
I already know how to make the combo box appear at the same left, height, and width, but I cant figure out how to make it appear at the right top (y-axis position).
How do you find out the top position of the current row the user is currently in???
I have compiled a program every time it starts up it is in the bottom right hand corner of the screen.
Is there a way of making it start into a full screen every time ?
Visual Basic List View Control To View Network Computers
I am working on simple network connect utility and ready with the functinality. But I am stuck at a very important aspect of the GUI where I need a List View Control that will view the computers from the available LAN domains. And will let us select a particular computer on expanding the domain List Item. If not a list view then a treeview rather.
Also will this control let me select a NETWORK COMPUTER ONLY but not shared folders on its individual drives. Only computers has to be selected. Not the nodes (folders) shared at them.
Last One I Promise - Screen Position
Didnt know if this was "graphics" or not - so i stuck it in here..
I want an object (textbox, picture, whatever) displayed at the top right corner of my form (in fullscreen). My problem is that I am using a large monitor. If a user has a smaller monitor, it cuts off part of the picture, or doesnt show it at all. How can I code it to position itself at the top right corner????
How do I also make it display center screen?
Form Screen Position
I am wanting to detect (ie. fire an event) when a user has finished moving a form around the screen. I want the user to be able to click on the capiton bar, move the form and then when the form has finished moving output the new form co-ordinates in a message box or debug window. I can gather the co-oridinates before but getting them after is the problem. Any ideas?
Starting Screen Position
When I run my VB Program the bottom is cut off by the monitor and I have to move it up. Is there any way to set the program to automatically open at the top of the screen instead of the middle?
Get The Screen Position Of The Cursor
I am trying to find a way to make the mouse cursor move to the keyboard cursor position in an application. For example, I use an application called Enterprise Guide, and I control this application using Dragon naturally speaking as I have a disability that makes using the keyboard quite difficult.
I often have to say the name of an object to make to be the active or highlighted object. However to do something such as drag and drop in Dragon NaturallySpeaking , I need to have the mouse at the same position that I want to drag from.
I know there are functions such as GetCursorPos - but this appears only to work in terms of the mouse position. What I would like to do is to find the coordinates of the current active highlighted object. An example of this could be, in windows explorer, if your mouse position is on the right-hand side of your screen, but you have a folder highlighted in the left pane. How could you move the mouse cursor to the location where the highlighted object is?
I would appreciate any suggestions, or any links to any sites that may assist me.
Thank you for your help
How To Position The VB Exe At The Center Of The Screen Always?
When I double click an VB exe, I want the form EXE should always appear at the center of the screen rather than randomly appear each time when I click the exe to lauch the application.
I 've tried form layout window to position the screen center. But first few times it looks ok, if I close and open the same exe for a couple of times, its postition started moving diagnally down little bit and starting from left top again.
Please advise me for the above issue.
Screen Position Of The InputBox
I'm using VB6 Prof. When you call the InputBox it appears centered in the screen but it covers part of my Control Array of Check Boxes, making it difficult for the user to see just what to select. Is there any way to move this InputBox Down into the lower right hand section of the screen? If I could changel the "Top" and "Left" properties it would do it. Thanks in advance for any help. JungleJim.
Mouse Position In Screen
(1) I need to detect mouse position on the screen.
(2) I also need to find out whether you are dragging the mouse.
I guess you need to use a API function for that.
Can u tell me how this is done……
HELP! Check For A Programs Position On Screen
how can i run a check as my main form is moved to see if it is within 50 pixels away from the left side of the screen and as you move it if it is, then make it jump or dock to the left side?
i also need it to dock to the top and right of the screen but i think i can figure those out once i learn how to check while i'm moving th form.
the only way i can think of is by using a timer but is there any other way?
Get Screen Coords Of Caret Position In RTB
Does anyone know how to do this.. I'm not talking about the screen coordinates of the mouse in the RTB, thats easy.. but the current screen coordinates of the caret where the user is typing..
Change Msgbox Screen Position?
app x has a messagebox which pops up from items in an array, each time. user then locates the entity, and modified it, then hit's ok in msgbox, which goes to the next entity, and so on. well the user, has to move the message box, to work on the creen- is there a way to position a message box on show, like you position a form?
Saving A Forms Screen Position
I would like to save my forms position after the user has re-positioned it and then to have it load next time my program is run.
I have tried saving the forms position in Form_terminate as a .dat file
but the position that keeps getting written to the file is the forms top and left as stated at design time in the form properties.
is there a 'form move' event that i can code ??
Any help will be muchos appreciated..