VBA: Make a frame draggable (when userform is running!)












-1














Hi I'm making a small concept operating system in VBA.



I want it so that the frame control is moveable/draggable when the userform is running.



I've looked for properties for the frame and nothing appears to be there, and a Google search came up inconclusive.



I don't know any way to currently do this, and whether it is at all possible but I'm sure people with enough experience in VBA can guide me :)



All code/comments are welcome :)



Josh



PS: Please not that I'm a beginner and I'm still learning VBA!










share|improve this question






















  • Any particular source suggestions, and thanks!
    – jj1064
    Nov 20 at 19:21






  • 2




    "I'm making a small concept operating system" doesn't quite add up with "I'm a beginner and I'm still learning VBA" in my mind. I've written VBA for over 15 years and I've no idea how I'd go about this. Heck I'd have to research doing this with current tech. I doubt you'll get anything meaningful without diving head-first into Win32 API and COM - stuff that's possibly well above your head right now. How about learning with a simpler project, like, some calculator app?
    – Mathieu Guindon
    Nov 20 at 19:25










  • You're going to need to look at how the OLE containers work. UserForms are composited at run-time, so anything "positional" relative to the form is handled via an interface extension. I'd start researching how fm20.dll works, then start reading up on object embedding.
    – Comintern
    Nov 20 at 19:35










  • Mathieu Guindon - It's only frame controls, text controls, image controls with icons, it's nothing that bad. I've programmed in VBA for 3 years, but I say I'm a begginer because i find it makes my life easier when understanding stuff. And, well this OS contains a calculator so.... I've done other languages and I know about Win32, API and COM.
    – jj1064
    Nov 20 at 19:39










  • What I mean is, you'll learn much faster and much more useful things if you start with something simpler, like studying a Battleship game for example, or making your own BrainFuck interpreter and putting it up on Code Review - whatever. In any case this "question" can't quite be answered as it stands.
    – Mathieu Guindon
    Nov 20 at 19:39


















-1














Hi I'm making a small concept operating system in VBA.



I want it so that the frame control is moveable/draggable when the userform is running.



I've looked for properties for the frame and nothing appears to be there, and a Google search came up inconclusive.



I don't know any way to currently do this, and whether it is at all possible but I'm sure people with enough experience in VBA can guide me :)



All code/comments are welcome :)



Josh



PS: Please not that I'm a beginner and I'm still learning VBA!










share|improve this question






















  • Any particular source suggestions, and thanks!
    – jj1064
    Nov 20 at 19:21






  • 2




    "I'm making a small concept operating system" doesn't quite add up with "I'm a beginner and I'm still learning VBA" in my mind. I've written VBA for over 15 years and I've no idea how I'd go about this. Heck I'd have to research doing this with current tech. I doubt you'll get anything meaningful without diving head-first into Win32 API and COM - stuff that's possibly well above your head right now. How about learning with a simpler project, like, some calculator app?
    – Mathieu Guindon
    Nov 20 at 19:25










  • You're going to need to look at how the OLE containers work. UserForms are composited at run-time, so anything "positional" relative to the form is handled via an interface extension. I'd start researching how fm20.dll works, then start reading up on object embedding.
    – Comintern
    Nov 20 at 19:35










  • Mathieu Guindon - It's only frame controls, text controls, image controls with icons, it's nothing that bad. I've programmed in VBA for 3 years, but I say I'm a begginer because i find it makes my life easier when understanding stuff. And, well this OS contains a calculator so.... I've done other languages and I know about Win32, API and COM.
    – jj1064
    Nov 20 at 19:39










  • What I mean is, you'll learn much faster and much more useful things if you start with something simpler, like studying a Battleship game for example, or making your own BrainFuck interpreter and putting it up on Code Review - whatever. In any case this "question" can't quite be answered as it stands.
    – Mathieu Guindon
    Nov 20 at 19:39
















-1












-1








-1







Hi I'm making a small concept operating system in VBA.



I want it so that the frame control is moveable/draggable when the userform is running.



I've looked for properties for the frame and nothing appears to be there, and a Google search came up inconclusive.



I don't know any way to currently do this, and whether it is at all possible but I'm sure people with enough experience in VBA can guide me :)



All code/comments are welcome :)



Josh



PS: Please not that I'm a beginner and I'm still learning VBA!










share|improve this question













Hi I'm making a small concept operating system in VBA.



I want it so that the frame control is moveable/draggable when the userform is running.



I've looked for properties for the frame and nothing appears to be there, and a Google search came up inconclusive.



I don't know any way to currently do this, and whether it is at all possible but I'm sure people with enough experience in VBA can guide me :)



All code/comments are welcome :)



Josh



PS: Please not that I'm a beginner and I'm still learning VBA!







vba frame






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Nov 20 at 19:04









jj1064

13




13












  • Any particular source suggestions, and thanks!
    – jj1064
    Nov 20 at 19:21






  • 2




    "I'm making a small concept operating system" doesn't quite add up with "I'm a beginner and I'm still learning VBA" in my mind. I've written VBA for over 15 years and I've no idea how I'd go about this. Heck I'd have to research doing this with current tech. I doubt you'll get anything meaningful without diving head-first into Win32 API and COM - stuff that's possibly well above your head right now. How about learning with a simpler project, like, some calculator app?
    – Mathieu Guindon
    Nov 20 at 19:25










  • You're going to need to look at how the OLE containers work. UserForms are composited at run-time, so anything "positional" relative to the form is handled via an interface extension. I'd start researching how fm20.dll works, then start reading up on object embedding.
    – Comintern
    Nov 20 at 19:35










  • Mathieu Guindon - It's only frame controls, text controls, image controls with icons, it's nothing that bad. I've programmed in VBA for 3 years, but I say I'm a begginer because i find it makes my life easier when understanding stuff. And, well this OS contains a calculator so.... I've done other languages and I know about Win32, API and COM.
    – jj1064
    Nov 20 at 19:39










  • What I mean is, you'll learn much faster and much more useful things if you start with something simpler, like studying a Battleship game for example, or making your own BrainFuck interpreter and putting it up on Code Review - whatever. In any case this "question" can't quite be answered as it stands.
    – Mathieu Guindon
    Nov 20 at 19:39




















  • Any particular source suggestions, and thanks!
    – jj1064
    Nov 20 at 19:21






  • 2




    "I'm making a small concept operating system" doesn't quite add up with "I'm a beginner and I'm still learning VBA" in my mind. I've written VBA for over 15 years and I've no idea how I'd go about this. Heck I'd have to research doing this with current tech. I doubt you'll get anything meaningful without diving head-first into Win32 API and COM - stuff that's possibly well above your head right now. How about learning with a simpler project, like, some calculator app?
    – Mathieu Guindon
    Nov 20 at 19:25










  • You're going to need to look at how the OLE containers work. UserForms are composited at run-time, so anything "positional" relative to the form is handled via an interface extension. I'd start researching how fm20.dll works, then start reading up on object embedding.
    – Comintern
    Nov 20 at 19:35










  • Mathieu Guindon - It's only frame controls, text controls, image controls with icons, it's nothing that bad. I've programmed in VBA for 3 years, but I say I'm a begginer because i find it makes my life easier when understanding stuff. And, well this OS contains a calculator so.... I've done other languages and I know about Win32, API and COM.
    – jj1064
    Nov 20 at 19:39










  • What I mean is, you'll learn much faster and much more useful things if you start with something simpler, like studying a Battleship game for example, or making your own BrainFuck interpreter and putting it up on Code Review - whatever. In any case this "question" can't quite be answered as it stands.
    – Mathieu Guindon
    Nov 20 at 19:39


















Any particular source suggestions, and thanks!
– jj1064
Nov 20 at 19:21




Any particular source suggestions, and thanks!
– jj1064
Nov 20 at 19:21




2




2




"I'm making a small concept operating system" doesn't quite add up with "I'm a beginner and I'm still learning VBA" in my mind. I've written VBA for over 15 years and I've no idea how I'd go about this. Heck I'd have to research doing this with current tech. I doubt you'll get anything meaningful without diving head-first into Win32 API and COM - stuff that's possibly well above your head right now. How about learning with a simpler project, like, some calculator app?
– Mathieu Guindon
Nov 20 at 19:25




"I'm making a small concept operating system" doesn't quite add up with "I'm a beginner and I'm still learning VBA" in my mind. I've written VBA for over 15 years and I've no idea how I'd go about this. Heck I'd have to research doing this with current tech. I doubt you'll get anything meaningful without diving head-first into Win32 API and COM - stuff that's possibly well above your head right now. How about learning with a simpler project, like, some calculator app?
– Mathieu Guindon
Nov 20 at 19:25












You're going to need to look at how the OLE containers work. UserForms are composited at run-time, so anything "positional" relative to the form is handled via an interface extension. I'd start researching how fm20.dll works, then start reading up on object embedding.
– Comintern
Nov 20 at 19:35




You're going to need to look at how the OLE containers work. UserForms are composited at run-time, so anything "positional" relative to the form is handled via an interface extension. I'd start researching how fm20.dll works, then start reading up on object embedding.
– Comintern
Nov 20 at 19:35












Mathieu Guindon - It's only frame controls, text controls, image controls with icons, it's nothing that bad. I've programmed in VBA for 3 years, but I say I'm a begginer because i find it makes my life easier when understanding stuff. And, well this OS contains a calculator so.... I've done other languages and I know about Win32, API and COM.
– jj1064
Nov 20 at 19:39




Mathieu Guindon - It's only frame controls, text controls, image controls with icons, it's nothing that bad. I've programmed in VBA for 3 years, but I say I'm a begginer because i find it makes my life easier when understanding stuff. And, well this OS contains a calculator so.... I've done other languages and I know about Win32, API and COM.
– jj1064
Nov 20 at 19:39












What I mean is, you'll learn much faster and much more useful things if you start with something simpler, like studying a Battleship game for example, or making your own BrainFuck interpreter and putting it up on Code Review - whatever. In any case this "question" can't quite be answered as it stands.
– Mathieu Guindon
Nov 20 at 19:39






What I mean is, you'll learn much faster and much more useful things if you start with something simpler, like studying a Battleship game for example, or making your own BrainFuck interpreter and putting it up on Code Review - whatever. In any case this "question" can't quite be answered as it stands.
– Mathieu Guindon
Nov 20 at 19:39



















active

oldest

votes











Your Answer






StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53399851%2fvba-make-a-frame-draggable-when-userform-is-running%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown






























active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes
















draft saved

draft discarded




















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.





Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


Please pay close attention to the following guidance:


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53399851%2fvba-make-a-frame-draggable-when-userform-is-running%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Feedback on college project

Futebolista

Albești (Vaslui)