Click here to Skip to main content
15,914,642 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Windows CRC Programming Requested Pin
Member 9170837-Apr-04 3:59
Member 9170837-Apr-04 3:59 
GeneralRe: Windows CRC Programming Requested Pin
Dave Kreskowiak7-Apr-04 5:26
mveDave Kreskowiak7-Apr-04 5:26 
GeneralRemoving program Pin
LeprosyLM6-Apr-04 4:52
LeprosyLM6-Apr-04 4:52 
GeneralRe: Removing program Pin
Dave Kreskowiak6-Apr-04 6:10
mveDave Kreskowiak6-Apr-04 6:10 
GeneralMultilingual in VB6 Pin
adarsh_sebiz6-Apr-04 3:47
adarsh_sebiz6-Apr-04 3:47 
GeneralFinding focus on windows forms Pin
David O6-Apr-04 0:47
David O6-Apr-04 0:47 
GeneralRe: Finding focus on windows forms Pin
Member 10089689-Apr-04 4:55
Member 10089689-Apr-04 4:55 
GeneralRe: Finding focus on windows forms Pin
David O11-Apr-04 23:29
David O11-Apr-04 23:29 
Thanks for that. However if you have a lot of fields, this will result in a huge overhead in code. Or alternatively, I could place this in a class and inherit, but that still has issues. From this and other forums where I posted the question, it seems like VB.NET doesn't have what I was looking for. However another source provided a lead which resulted in the code below:

    Private Function ClipboardCopy()<br />
<br />
        Clipboard.SetDataObject(GetActiveControl(Me).Text)<br />
<br />
    End Function<br />
<br />
    Private Function GetActiveControl(ByVal container As IContainerControl) As Control<br />
        Dim control As control<br />
<br />
        control = container.ActiveControl<br />
        If TypeOf control Is IContainerControl Then<br />
            Return GetActiveControl(CType(control, IContainerControl))<br />
        End If<br />
        Return control<br />
<br />
    End Function


This gives the result I was looking for.

Regards
David
QuestionHow to add popup menu item in Windows Explorer popup menu Pin
Mayank Kumar5-Apr-04 21:31
Mayank Kumar5-Apr-04 21:31 
AnswerRe: How to add popup menu item in Windows Explorer popup menu Pin
Hesham Amin5-Apr-04 22:15
Hesham Amin5-Apr-04 22:15 
GeneralWindows Service for Internet time logging Pin
DHARMA.R5-Apr-04 19:37
DHARMA.R5-Apr-04 19:37 
GeneralRe: Windows Service for Internet time logging Pin
Milton Karimbekallil5-Apr-04 20:43
Milton Karimbekallil5-Apr-04 20:43 
GeneralRe: Windows Service for Internet time logging Pin
Dave Kreskowiak6-Apr-04 0:51
mveDave Kreskowiak6-Apr-04 0:51 
GeneralRe: Windows Service for Internet time logging Pin
DHARMA.R6-Apr-04 4:00
DHARMA.R6-Apr-04 4:00 
GeneralRe: Windows Service for Internet time logging Pin
Dave Kreskowiak6-Apr-04 5:51
mveDave Kreskowiak6-Apr-04 5:51 
GeneralRe: Windows Service for Internet time logging Pin
DHARMA.R6-Apr-04 20:25
DHARMA.R6-Apr-04 20:25 
GeneralRe: Windows Service for Internet time logging Pin
Dave Kreskowiak7-Apr-04 1:19
mveDave Kreskowiak7-Apr-04 1:19 
GeneralRe: Windows Service for Internet time logging Pin
DHARMA.R7-Apr-04 18:00
DHARMA.R7-Apr-04 18:00 
GeneralDataset to Textboxes Pin
trg50305-Apr-04 19:07
trg50305-Apr-04 19:07 
GeneralRe: Dataset to Textboxes Pin
Alberto Venditti5-Apr-04 20:57
Alberto Venditti5-Apr-04 20:57 
GeneralRe: Dataset to Textboxes Pin
trg50306-Apr-04 13:12
trg50306-Apr-04 13:12 
GeneralRe: Dataset to Textboxes Pin
trg50306-Apr-04 18:53
trg50306-Apr-04 18:53 
QuestionHow to get target path of Shorcut (lnk) files in VB 6 Pin
EmanAli5-Apr-04 19:06
EmanAli5-Apr-04 19:06 
AnswerRe: How to get target path of Shorcut (lnk) files in VB 6 Pin
Milton Karimbekallil5-Apr-04 22:54
Milton Karimbekallil5-Apr-04 22:54 
GeneralRe: How to get target path of Shorcut (lnk) files in VB 6 Pin
EmanAli6-Apr-04 20:11
EmanAli6-Apr-04 20:11 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.