Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
 
  HOME    TRACKER    Visual Basic




Calander Control


hi all
i want to make a clander control like as outlook...
any idea any one you have...
thanks
shakti




View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread
Calander Control 9.0
With the Calander Control 9.0, is there any way to change the fill color for just one particular day of a calander?

Calander Control 8.0
I have a form with a calendar on it. I want to be able to click on a day and have a input box open so you can add text to the calendar for that day. Basically like righting notes for each day to remind you of a event.
  Thanks
John

 

Calander Control Closes Vb Down
Hi all,

Seem to be having a bit of trouble with my Calander control.

I have it in my tools box, but when I put it onto my form a msgbox comes up with "VB has to close now, sorry for Blah Blah Blah"

Any ideas? All the other controls are fine just this one.
Thanks

Timer/calander Control Problem
Ok, I don't understand why this doesn't work. I know every single person on this forum will, but It's not clicking for me.

I'm going to post two scenarios here.. one that works, and one that doesn't. I don't see how they are different, except for the fact that I'm using the timer control in the one that doesn't work, and I must be using it wrong. But the timer is so simple, i don't understand how even I can screw it up...


Code:
Private Sub Form_Load()
Dim DtDate As Date
dtDate = Date

Calendar1 = Date

This shows the calendar control with the correct date, everything is wonderful.

Now, I throw a Timer into the mix to keep checking the date so if the user is using the application before and after midnight, it will change the calendar during runtime. Maybe that is where my problem is?? Maybe that control can't be changed during runtime? I can't find much information about the calendar control, so I don't know. Is there something wrong with my logic ?


Code:
Private Sub Form_Load()
Dim DtDate As Date

Timer1.Enabled = True

End Sub

Private Sub Timer1_Timer()

Timer1.Interval = 1
DtDate = Date
Calendar1 = dtDate

End Sub

Help Needed In Calander Control 9.0 In Userform.
Hi.
 guys. i am using calander control 9.0 in my userform on excel.

when i click a button it should popup, when i select the date and close the calander, the date value i,e 4/4/03 should be entered in the textbox.

Like select the date from the calander, that date should reflect in the text box.


If any of you know this, please help me.


Thanks,
 Chandra

Error To Use Calander Control In Window XP, Development In Using VB 5.0
My Development Environment is as Below
OS : WIN 95/ WIN 2000
Development Tool : VB 5.0
Application Setup Programme (For Installation) : Toolkit Setup given with VB 5.0

When I install my application in WIN 95 or Window 2000 it work ok but when install in Window XP, Application work properly in but when I try to use calander control graphically it will not show properly and some time generate error but same application work in other OS properly.
To Soleve above problem I do remove calander control Window XP and also Remove refrence from Registry then install my application Now it works fine with same calander control. (In XP system higher version control make problem for me)

Is there any way to solve this problem ?
Is there any way without remove higher version of calander control from window XP system ?

Error To Use Calander Control In Window XP, Development In Using VB 5.0 And 6.0
My Development Environment is as Below
OS : WIN 95/ WIN 2000
Development Tool : VB 5.0
Application Setup Programme (For Installation) : Toolkit Setup given with VB 5.0

When I install my application in WIN 95 or Window 2000 it work ok but when install in Window XP, Application work properly in but when I try to use calander control graphically it will not show properly and some time generate error but same application work in other OS properly.
To Soleve above problem I do remove calander control Window XP and also Remove refrence from Registry then install my application Now it works fine with same calander control. (In XP system higher version control make problem for me)

Is there any way to solve this problem ?
Is there any way without remove higher version of calander control from window XP system ?

HEH Calander
OK next question new thread..... im using the vb calander component ......... i have it now so that if a date is clicked it brings up frmdates.... on frmdates they are able to put there daily tasks or what ever they feel like is there a way to save that text to that day so that if they click on that day it comes up again with that text?

Weekly Calander
Well, I did a little searching around.... what I'm after is a weekly calander based on either Now or other user input.

So therefore, An array of 7 labels that will have from sunday to saturday with dates for either the current week (now) or any other date the user enters.

I have been looking at DateDiff and DateAdd etc... just wondered before I re-invent the wheel if I should be using some kind of control for this?


any ideas would be much appreciated.


Thanks


Max.

Import Into A Calander
I am a little rusty in VB 6.0 but I am getting back into it
and I am trying to create a calader project. I will not be
using VB's calander. I created my own calander with 31 labels
boxes in an array . What I am trying to do is, I am tring to
import a file, txt would be fine and the data will be populated
into each date. Each date will have 4-5 events
Example
8/1 John 8:30, Mary 10:30, Alice 10:30, etc
8/2 Mary 4:30, Bill 6:00, Larry 1:00, etc.

This list will continue for the entire month. Once the events
are added they will be printed on paper. Any ideas or help
will be greatly appreciated thank you

A Reminder Using A Calander
Hi
Can anyone help me with the syntext needed to use the calander.
i Want to write code for the following.
On the form I need the calander , button and inputbox.
I want to fill in a date and on that date a message box pops up to remind me of certain appointment. In effect a electronic diary.
Thanks in advance
Rob

Calander Program
<VB noob here

Im trying to make a calander-ish program

but i suck.


I need it to look like this.


[text box-month][text box-day][text box-year]
[command button]
[textbox-day of the week]

What I need it to do is you can enter any date(9-12-1988, 10-23-1623) and it will tell you what day of the week it is(wednesday, Tuesday, ect)


So if you put in 9 12 2004, it will say Sunday when you click the command button.




thanks

Calander Problems
I am having problems with the microsoft vb calander. I can add the component to the tool bar but when i try to add it to a form the program crashes with out any reason. I as well currently have a vb program that has a calander on it that i did at school(where it works fine) and i can open the form and even run it but as soon as i click on it, it crashes. Im not sure if their is a confilict with another program or maybe a reference that i need to make with in vb. Not sure....... Any Answers

Microsoft Standard Calander
I am in a class called EAST lab in school. I am doing a project that records journal entries for the day. I have a calander control and a rich text box. I need to know how to let the users click on the date and a command button and have the program save the entry with a file name that corresponds to their user name across the network and the date of the entry. Also I will need to access the files from a different program. I am very new at this so I probably sound stupid. If you can help or just want to call me stupid go ahead.

Month's Calander In Vb6 Code
month's calander in vb6 code ...?

Need To Create Form Look Like Outlook Calander
Hi,

I need to generate form look like outlook calander(attached image). i have the data(appointment timings) in my access database. is it possible to do in vb same like outlook calander?

Thanks
Balakumar

Need To Create Form Look Like Outlook Calander
Hi,

I need to generate form look like outlook calander(attached image). i have the data(appointment timings) in my access database. is it possible to do in vb same like outlook calander?

Thanks
Balakumar

Retrieving Calander Info From Exchange Server
I am interested in writing an app that will retrieve a user's information from the calander that lives on an exchange server.

App will know the following and be able to get all appointment and meeting data:
Exchange Server
Login
Password
Date to retrieve



Any Ideas?


Thanks,

Call A Control's Method From A Form Launched By The Control's Control? (???)
I've placed control A on an active x control. I have a command button that launches form B. From form B I want to call one of control A's methods. I'm gettting an error stating 'Object variable or With blokc not set'. Can anyone tell me how/if I can access this object from this point in the code? I looked at Friend but that didn't seem to solve my problem. Any help would be appreciated.

Script Control, Dynamic Control Creation, And Dynamic Control Events
Hey everyone.

I have been messing around with the Scripting Control and Dynamic Control Creation.. I think it's amazingly powerful to have a program that can be extended by an end user by using VB Scripting commands.  I'm actually developing a system that will allow scripts to be written, saved, and run on start-up of my program to create any additional forms or controls that end users have created so it is as if they have been there the whole time.

My problem is this:

I am creating controls as follows:

I Created a class ScriptingFunctions and added some functions to it, instantiate the class, and add the object to the ScriptControl so that i can have full control of the functions.

I run a function called AddObjectToForm(ByVal sFormName as string, byVal sObjectType as string, ByVal sObjectName as String).

It loops through vb.forms, finds the form with the name you sent, selects it, and does the following:


   frmForm.Controls.Add sObjectType, sObjectName


I then call, from script, a function already in the form called "GiveAccessTo" which adds the object with the form name as a prefix to the ScriptControl.. so if I just created a "Vb.CommandButton" with name "cmdNew", I can access it through the scripting control now using "frmFormcmdNew.Caption = "NewCaption""


My problem is, however....

How can I add code .. through the scripting control, for the events on the new control I just created?

I could see creating a new windowproc in the scripting control and doing a SetWindowLong w/ GWL_WNDPROC to subclass the window procedure, but I'm not sure what I would have to do with the function?  Should I have a MsScriptControlCTL.Module and add the function to that, and reference that function via AddressOf to get the pointer to that function?

Don't forget, I know when the program ends, all of this will go away, but Like I said, I plan to have the script saved so it will execute on startup.

I'd really appreciate any help anyone could give me on this.

Thanks a lot in advance! :)
--NipsMG

Turtle Rich Text Control: VbAccelerator's RichEdit Control Modified To Work In An OCX
Many of you may have noticed issues in using Steve's original VbAccelerator Rich Edit control to build an OCX. Basically, you might just as me not be able to build an UserControl using the original vbAccelerator's Rich Edit control.

I took the chance of debugging Steve's original excellent control as i wanted to be able to build OCXs using it. This resulted in minor code modifications and in the necessity of including the SsubTmr6 code (still from VbAccelerator) within the control itself due to hooking issues that often resulted into crashing.

The resulting 'Turtle Rich Edit Control' therefore has one less dependency (SsubTmr6.dll is not needed), however just as the original control OleGuids.TLB is needed when running in the IDE.

I have made a first release of this modified control and posted it in the CodeBank here, and as per the vbAccelerator original license included in the downloadable file I have retained the original copyright notice, changed the name to 'Turtle Rich Edit Control' to exclude the name 'vbAccelerator' and made no mistery that this is entirely based on Steve McMahon's code.

I am posting this into the Classic VB section because i want to draw your attention and hopefully get some feedback from testers, and also because I kind of promised to Devion here that i would release this control, so here it is

Cheers,

Roberto Ostinelli

Text In Masked Edit Control Temporarily Disappeared When The Control Lost The Focus
VB6: Text in Masked Edit Control temporarily disappeared when the control
lost the focus.



Hi,

I need some help. I am using Masked Edit Control and trying to set up a
format (to accept only numeric entry). I am using VB6

When I enter all numbers in the Masked Edit Control box, and move the focus
to another control,
the numbers in the Masked Edit Control that I typed temporarily dissappears
and the only format of the
Masked Edit Control shows. However, when I move my focus back to the
control, everything (numbers) is there.

Here I can reproduce my problem.
1) place a command control button on a form
2) place a Masked Edit Control on a form
3) place the following codes in the form under one of the command control
subroutines


Private Sub Command1_Click()

MaskEdBox1.Mask = "##-###"
MaskEdBox1.Format = "__-___"


End Sub

If you enter small numbers (i.e 01-002) in the Masked Edit Control box, and move your focus to another control, the text in the control will show "__-___", not the numbers just entered.
However, if you enter large numbers (i.e. 50-800) or incompleted data
(01-00_) , it would work OK.



Also, if I doubled click the button only one time,
the " - " text (an empty format shows) will show in the Masked Edit
Control box.
However, the real format (when the focus is moved to the control) is still
"__-___"

If I doubled click the button twice, the "__-___" text will show in the
Masked Edit Control box instead.


Thank you for any help and suggestions.


Cheers,

Difference Between Standard Control And Custom Control For Drop Down Width Adjustment
Hi,
I have an activex control which is a combination of a label and standard combo box. I need to re-size the comobox’s drop down list items’ width based upon the item with the largest width in the combo box list items, so that the items are visible completely, irrespective of them being greater than or less than the combo box width (or activex control in this case).

By the code below, I am able to achieve that with a standard combo, but I am unable to do the same with my activex control.

My Code in the Activex control:
---------------------------------------------

Public Sub SetDropDownWidth()

Dim RetVal As Long
Dim PixelWidth As Long
Dim MaxWidth As Long
Dim LoopCounter As Long
Dim lWidth As Long

For LoopCounter = 0 To cboDropDownCombo.ListCount - 1
lWidth = cboDropDownCombo.Parent.TextWidth(cboDropDownCombo.List(LoopCounter))
If lWidth > MaxWidth Then
MaxWidth = lWidth
End If
Next LoopCounter

MaxWidth = 2000

MaxWidth = MaxWidth + (23 * Screen.TwipsPerPixelX)
If MaxWidth > (cboDropDownCombo.Width * 2) Then
MaxWidth = (cboDropDownCombo.Width * 2)
ElseIf MaxWidth < cboDropDownCombo.Width Then
MaxWidth = cboDropDownCombo.Width
End If

PixelWidth = (MaxWidth Screen.TwipsPerPixelX)
RetVal = SendMessage(cboDropDownCombo.hWnd, CB_SETDROPPEDWIDTH, PixelWidth, 0)

End Sub


I am getting the following error at the bolded line (the line starting with lwidth and ending with ‘(loop counter))’:

Run-time error ‘382’:

‘CanGetFocus’ property cannot be set at runtime. The same code does not give this error when I am dealing with a standard combo box instead of my custom acitvex control. Please help me resolve the error.

Thanks in advance
Ourspt

Display A Form Control's Text/caption To A Data Report Control
Hi to all!!!

Any idea on how to display a form control's text property/caption to a data report control?

Say, I have a form(frmProcessCustomer) that accepts a customer name in a textbox.Then I would like to display the customer name from the textbox(.text property) to my data report using rpttextbox/rptlabel when I view the report...

Difference Between Standard Control And Custom Control For Drop Down Width Adjustment
Hi,
I have an activex control which is a combination of a label and standard combo box. I need to re-size the comobox’s drop down list items’ width based upon the item with the largest width in the combo box list items, so that the items are visible completely, irrespective of them being greater than or less than the combo box width (or activex control in this case).

By the code below, I am able to achieve that with a standard combo, but I am unable to do the same with my activex control.

My Code in the Activex control:
---------------------------------------------

Public Sub SetDropDownWidth()

Dim RetVal As Long
Dim PixelWidth As Long
Dim MaxWidth As Long
Dim LoopCounter As Long
Dim lWidth As Long

For LoopCounter = 0 To cboDropDownCombo.ListCount - 1
lWidth = cboDropDownCombo.Parent.TextWidth(cboDropDownCombo.List(LoopCounter))
If lWidth > MaxWidth Then
MaxWidth = lWidth
End If
Next LoopCounter

MaxWidth = 2000

MaxWidth = MaxWidth + (23 * Screen.TwipsPerPixelX)
If MaxWidth > (cboDropDownCombo.Width * 2) Then
MaxWidth = (cboDropDownCombo.Width * 2)
ElseIf MaxWidth < cboDropDownCombo.Width Then
MaxWidth = cboDropDownCombo.Width
End If

PixelWidth = (MaxWidth Screen.TwipsPerPixelX)
RetVal = SendMessage(cboDropDownCombo.hWnd, CB_SETDROPPEDWIDTH, PixelWidth, 0)

End Sub


I am getting the following error at the bolded line (the line starting with lwidth and ending with ‘(loop counter))’:

Run-time error ‘382’:

‘CanGetFocus’ property cannot be set at runtime. The same code does not give this error when I am dealing with a standard combo box instead of my custom acitvex control. Please help me resolve the error.

Thanks in advance
Ourspt

Adjusting Control Array Index Value At Run-Time Once The Control Is Loaded/ Created
Hi All

I am attempting to adjust the index value of one or more control array items. Basically whats happening is one of the controls within the array is being unloaded however the array numbers of items above this are remaining the same and therefore there is a gap within the numbering system. How do I get the index number of every item above the unloaded control reduced by one. I get a read only error however in MSDN it say it can be returned or set.

Thanks for any points on this.

Rusty



Edited by - Rusytness on 7/17/2002 11:44:23 AM

DHTML Edit Control: Problem In Loading The Html Content Into Control...
Hi all,
in my VB application i am using dhtml editing control and codemax editing control. mainly my application works with dhtml edit control. it has an option of showing a html content in the codemax edit control which is displayed as a popup window.

if the user makes any changes in the codemax edit control, i have to reflect those changes in the dhtml control. this i am doing in the unload event of the form containing the codemax control.

My problem arises when i am adding the codemax control text into dhtml control. for adding this i am using the following code:

Code:
DHTMLEdit1.DocumentHTML = CodeMax1.Text


when this statement is executed, the image tags in the dhtml editor r not showing the images.

i checked the content in the objects codemax1.text and dhtmledit1.DocumentHTML, they both r same.

please some help solve the purpose.

with regards
Rohan Reddy

Problem With Option Control Inside A Frame Control Using (XP-style)
This is an odd problem i've been having, whenever I put an option control inside a frame control, it goes all black...here's a pic

http://www.zollonet.com/pub_1/tcrl.gif

Create New Tabs In A SSTab Control, Then Copy A Web Browser Control
How can I do this?

I want to create a new tab in a SSTab control, then put a new web browser (a copy of it) in it.

Also, how can I find out which tab is currently open in the SSTab control programmatically?

And how can I, with a web browser control, do something when the mouse hovers a link (e.g. get its destination)

Thanks,
-Matt

How Can I Make A Control, A Control Array And Upon Request Revert It Back?
VB Version : 6
Hello!I am using the Web browser control in my application.Until now I have not set it an index (at design time) because only an instance of it was needed. Now that I want more instances of the same object I am planning to achieve it by dynamically making it a control array.The problem is that all the related subroutines are referred to the "brwWebBrowser" and not in the "brwWebBrowser(currentIndex)".
So now I cannot go to the design and set the index to wharever.While the Webbrowser control does not conform/apply to any kind of indexing,can I transform it at runtime to be a control array and revert it back to normal?
Something like:

Code:
If chekBox=1 then
'make it a control array
brwWebBrowser.index = 0
else
If chekBox=1 then
'revert to normal (forget all about control arrays)
brwWebBrowser.index=null
end if
end if
Is the below possible?If it is,can I move the last brwWebBrowser (e.g brwWebBrowser (7)) contents into the new one?
Thanks in advance!

Setting A Control's Container To A Member Of A Control Array At Runtime
Apologies for making two threads in the same day, but it's obviously just not my day. =

I'm trying to set the container of an ADODC to one of any number of frames in a control array. The array is named frmDataEntry, the ADODC is dbcShop. The code is as follows-
Code:
Set dbcShop.Container = frmDataEntry(0)
That's it. It will be used later with a variable for the index, but that's the essence of it. The problem I'm getting is that it's setting dbcShop.Container to frmDataEntry(0).Caption instead of just frmDataEntry(0) as a Frame. I tried making a bridge variable, doing
Code:
Dim frmContain as Frame
Set frmContain = frmDataEntry(0)
Set dbcShop.Container = frmContain
But I get the same problem. Any suggestions? From what I know I'm trying the right approach, but I may be overlooking something.

Is There A Way To Get Plain Text From Microsoft Internet Control Or Transfer Control
is there a way to get plain text from the Microsoft Internet Control or Microsoft Internet Transfer Control



For Example if u go to a page and hit Ctrl A and Then Ctrl C and then open notepad and hit Ctrl V u get plain next with no HTML in it. Can that be done with the Microsoft Internet Control or Microsoft Internet Transfer Control

Can I Create Dynamically At Run-time A Control RptTextBox On A Control DataReport?
Hi All,

I need to print a Recordset that has a lot of fields (a variable number), for that I need to use a variable number of controls RptTextBox. (Visual basic 6 enterprise)

Thanks in advance.

Finding The Size Of The Contents Of An Image Control Or A PictureBox Control
How does one find that? Once the user selects an Image to be displayed, I want to know the size of that image. Is it possible to detect the size of the image? It sure must be stored somewhere, right? Similar threads I have seen all point to BitBlt and other Bitmap API and they are way over my head!

To be precise, I want to copy an image to a byte array, but I am stumped when it comes to re-dimensioning the array. This is for a Winsock application. Currently I am writing the image to a temp disk file and reading it back into a Byte Array. I want to avoid that

Thanx for you help in advance

Selecting Non-contiguous Cells In MSFlexGrid Control Or Any Other Grid Control
Does anybody know how to enable selection of non-contiguous cells in MSFlexGrid control or what control should I use that has that capability. Please help.

Creating ActiveX Control- Embedding Combobox In Grid Control
Does anyone know how to embed a combobox into a grid control in any cell and have each cell have it's own data source?

I am trying touse a grid for product ordering with the products displayed in a drop down combobox.

Thanks

Adding An Intrinsic Control To A Control That Was Added Dynamically At Runtime
Hello,
     I need some expertise. I am creating an application in Visual Basic 6.0 Sp6 that creates an SSTab control dynamically at runtime based upon parameters in another form. All this works fine but the problem that I cannot solve is how to add a Label control to each Tab in the SSTab control after the SSTab control has been added with the appropriate number of tabs. I am not even sure this is possible or do you have another suggestion. I tried playing around with the container for the SSTab but had no luck. Thanks to anyone who can help and to whomever put this website together.

Here is the code to add the Active X control(I created) to the form but I am not sure how to add a label to each tab on the SSTab control.
-------------------------------------------------------------------------------------------------------

Public TabbedPane As Project1.Tabbed 'name of SSTab ActiveX control

Public Sub Form_Load()
Set TabbedPane = Controls.Add("Project1.Tabbed", "mytest", MBs_to_be_tested)
TabbedPane.Visible = True
TabbedPane.Tabs = Module1.Number_of_MBs
Dim Index As Integer
Index = 0

If Module1.Number_of_MBs > 5 Then
   TabbedPane.TabsPerRow = 5
Else
   TabbedPane.TabsPerRow = Module1.Number_of_MBs
End If

If TabbedPane.Tabs = 1 Then
   TabbedPane.TabMaxWidth = 16375
End If

TabbedPane.TabHeight = 250
TabbedPane.TabMaxWidth = MBs_to_be_tested.Width / 5
TabbedPane.Width = MBs_to_be_tested.Width

Do
   TabbedPane.TabCaption(Index) = Module1.PointType(Index)
   Index = Index + 1
   MsgBox "Index" & TabbedPane.TabIndex
Loop While Index <> Module1.Number_of_MBs

End Sub





Edited by - dave_zr2 on 2/21/2006 5:47:23 PM

Need To Control Access.mdb Location In Code, Not ADODC Control Properites.....Using VB6
I have a simple VB6 program which is working fine. I have a form with an ADODC control on it I call "AdoCalendar". One of the properties is the "Connectionstring". Amoung the items in the string is the location of my access .MDB file.

The Connectionstring is as follows: Provider=Microsoft.Jet.OLEDB.4.0;Data Source=\metisData TransferCSSEms Clinical DataSchedules.mdb;Persist Security Info=False

As I said, this is working fine. What I need to be able to do is set the database location in the code instead of the properties for the control. When the program is installed the path to the data will will be assigned and stored in a reg setting. It will not be know at design time.

I have tried the following code but it does not work. It tells me that it cannot find the path to the database etc.

I blank the "Connectionstring" property and put the following line in the beginning of the Form Load sub routine.

Dim DataDir

Dim DataConStrg

DataDir = "\metisData TransferCSSEms Clinical Data"

DataConStrg = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & DataDir & "Schedules.mdb;Persist Security Info=False"

AdoCalendar.Connectionstring = DataConStrng


'other code...

'sample line to find record...

AdoCalendar.Recordset.MoveFirst

FindString = "calName=" & "'" & LabCalTitle.Caption & "'"

AdoCalendar.Recordset.Find FindString


The Error I get when the form loads is......

AdoCalendar

[Microsoft][ODBC Driver Manager]Data Source name not found and no default driver specified


I then click "OK" and then get the following error, which after the previouse error I would expect....

Microsoft Visual Basic

Run-time error '91':

Object variable or With block variable not set

I click "Debug" and it takes me to the first use of the recordset...

AdoCalendar.Recordset.MoveFirst

So bottom line... I get NO errors when I program the connectionstring via the ADODC control properties box, but DO get errors if I try to set it via code at form load.

As I said the code works fine except for that one issue.

So, does anyone know a way, using minimal changes to existing code, for me to be able to use code to control the database location etc?

Thanks in advance,

Ralph Malph

How To Install File System Control And Grid Control On Pocket Pc
i have a problem that my project is run on emulator but cannot run on pocket pc because of the file system control and grid control cannot run. how to install these controls without installing the embedded visual tools?

Control+C To Copy From Textbox Doesn't Work As ActiveX Control In IE
Hello all,

I've got a wierd problem that I'm trying to figure out. I've created an activeX control using vb 6 sp5 for use in IE 5 and higher. The control contains a textbox and does some things that aren't important to this question like getting the linecount, etc...

When I run my control from vb, a control+C allows me to copy text, however, once I build the control into a cab and then view it on a web page, control+C won't copy text.

You can easily recreate this problem by simply creating an activeX control in VB with a multiline textbox with vertical scrollbars on it. Play it from vb and a control+C works fine, build a cab and look the web page the PDW creates and the control+C won't work.

Any ideas why this is happening and if there's anyway to make it work?

Thanks for the help!

Errant GUID: Custom Control Replaced With PictureBox Control
This is in reference to Mr. Chris Eastwood's reply to the post "A problem with GUID??!!" dated Nov. 12, 1999.

As enumerated in his recommended procedure to solve this problem, he stated in Step # 3 this: "go to Project-&gt;Components and uncheck the missing reference. Add in the new version of your component."

I couldn't find a MISSING message in the Project-&gt;Components dialog. But my OCX is listed although it is not selected (no check mark). I did the following steps:

1. Load the project group and ignore the error messages
2. Compile OCX project using NO COMPATIBILITY option
3. Save the OCX project and quit VB6 IDE.
4. Load VB6 and open the project group.
5. Highlight the main project (not the OCX project) from Project Explorer.
6. Go to Project-&gt;Components then check the OCX
7. Save the main project.
8. Quit VB6 IDE.

And behold! The next time I reloaded my project in the VB6 IDE, all the references were perfectly in place - no form loading errors appeared anymore. I got my senses back again.

But when I tried to compile the main project, the same problem came up. I keep on getting the same compilation error as before: "Method or data member not found". The error points at an instance of the custom control.

When I press SHIFT-F2 (go to definition) while the cursor was positioned in the wayward instance of the custom control, I get the following error message:

"Cannot jump to ctlXXX because it is hidden"

It was then when I noticed that all instances of the custom control in the form were dimmed (or grayed out). And horror of horrors! After thorough scrutiny I found out that the instance of my custom controls were all redefined as PictureBox. What a great miracle (or could it be Microsoft magic?).

Magic or no magic, that would sure make you scream. (I'm sure I didn't accidentally make the redefinition of the controls myself - not even during my fit of temporary insanity, LOL!).

Anyways, I did solve the problem in no time at all. I got the backup copy. What a brilliant solution, isn't it?

If I never had the backup, how can I put those unwanted PictureBox controls back to their original definitions (and glory)? Please, don't tell me that I have to create the form again.

Is there a way to get back the original control definitions?

Using A ComboBox Control To Edit Data In A ListView Control?
Hello everyone!

I am looking for a way to add a combobox inside a listview control
in order to let the user change data.

I have found the following code from google:
http://www.kbalertz.com/kb_Q320342.aspx

but I' m having problems converting it into VB6,
especially with the mouseup event of the listview.

Can anybody help?
I think it's a question of much interest to many of us.

Thanks in advance!

I Want To Invisibly Control Webbrowser Control Iwebbrowser2 In Form
My idea is to control IE instance by software
I want to solve my problems in two ways

First one is by controlling IE by mouse_event with cursorpos but not with sendmesage or postmessage API.
I want to invisibly control IE instance and click on it where I want to by sending mouse_event, but without user notice, is there any chance?

Is it possible to control IE for example in background while PC is idle and screensaver works?
Or perhaps when PC is idle detect it and show JPEG screenshot and work with mouse_event on background, so to call behind the scene?
Or perhaps in parallel user mode FAST USER SWITCH terminal service?

I don’t want to click by parsing html code body.outerhtml, tagname ("A").click
Any suggestions or any ideas with technical details?

IE Controller source code here http://fresh-news.info/update/iecontrol.rar

How Can We Change The Control Of Day's In A Month View/Calendar Control
hi,
how can we change the control of day's in a Month view/Calendar control.

example:first week should have red colour
second week should have green colour.

Got To Find Other Way To Check If Control In Control-array Is Exist
hello every one ive been asking this question tow days ago
thank you for helping me on the last time ...everyone suggest to trap
the error
it was fine and nice back then
now the trap is braking my code =
its 4 if's in a while
if ther is one control array missing its stops the while
and the function dosent work =
any suggestion to have other way to check if control array exists?

How To Determine If A Control Is Part Of A Control Array In A For Each Loop
When iterating thru the controls on a form using a For Each loop, is there a way I tell if the current control is part of a control array? For example:

vb Code:
Dim c As ControlFor Each c In Me.Controls    If "c is part of a control array" Then       Select Case c.Index            Case 1                c.Text = "A"            Case 2                c.Text = "B"              'etc.        End Select    Else         ' whatever    End IfNext

Need Help With Useing A Mask Color With A Pic Control Or Image Control
I need to be able to use a mask color... I have found some ocx controls but I dont want to have to include it with my setup program and stuff... is there a code way to do this or a open source control that I can compile into my program...

or how can I just set a transparent background useing photoshop or gimp... or even mspaint

Loading && Managing Control Positions On SSTab Control
ello guys

in SSTab control, each Tab works as a container.
during desing time , i placed a Control (array) in Tab1 of SSTab. (to be replicated later)
need to move that Control to Tab2. (as replicated Controls wont show in Tab2)

doable?

tnx in advance for ideas/info..

Connecting The Image List Control To The Toolbar Control
Hello
can you guys tell me how to connect the image list control to the toolbar control. In the book i am going through, it says i got to go to the toolbar Property Pages dialog box's ImageList option to assin images to each toolbar button.


but i can't seem to change the ImageList

Copyright © 2005-08 www.BigResource.com, All rights reserved