Warnings show you programming mistakes or unnecessary code not resulting in an error.
You may have a look at chapter 4.3.7.1 Compile Warnings in the B4A Beginner's Guide.
Thats normal!
What exactly do you expect when you dragg the button out of the panel?
If you want to reuse it, adjust the Top and Left properties.
Post your project as a zip file, or better a small project showing the problem, so we could have a look at it.