Click here to Skip to main content
15,880,503 members
Home / Discussions / C#
   

C#

 
AnswerRe: capture the screenshot of desktop using C# Pin
OriginalGriff29-Jul-19 23:26
mveOriginalGriff29-Jul-19 23:26 
AnswerRe: capture the screenshot of desktop using C# Pin
Afzaal Ahmad Zeeshan30-Jul-19 5:29
professionalAfzaal Ahmad Zeeshan30-Jul-19 5:29 
QuestionCreating a struct dynamically Pin
Member 1452625729-Jul-19 21:48
Member 1452625729-Jul-19 21:48 
AnswerRe: Creating a struct dynamically Pin
OriginalGriff29-Jul-19 22:06
mveOriginalGriff29-Jul-19 22:06 
AnswerRe: Creating a struct dynamically Pin
BillWoodruff31-Jul-19 14:28
professionalBillWoodruff31-Jul-19 14:28 
SuggestionRe: Creating a struct dynamically Pin
Richard Deeming1-Aug-19 1:40
mveRichard Deeming1-Aug-19 1:40 
GeneralRe: Creating a struct dynamically Pin
BillWoodruff1-Aug-19 8:47
professionalBillWoodruff1-Aug-19 8:47 
QuestionError when i try to add my control to form1 Pin
_Q12_29-Jul-19 8:30
_Q12_29-Jul-19 8:30 
- I get this error when i try to add my control (named 'tab') to the form1:
https://images-wixmp-ed30a86b8c4ca887773594c2.wixmp.com/f/281c49f0-e874-4b83-bff6-9bc6b8526d42/ddctbbc-1dc0bf33-d2a3-4c8c-b6f5-c88acb2bf200.jpg?token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJ1cm46YXBwOjdlMGQxODg5ODIyNjQzNzNhNWYwZDQxNWVhMGQyNmUwIiwiaXNzIjoidXJuOmFwcDo3ZTBkMTg4OTgyMjY0MzczYTVmMGQ0MTVlYTBkMjZlMCIsIm9iaiI6W1t7InBhdGgiOiJcL2ZcLzI4MWM0OWYwLWU4NzQtNGI4My1iZmY2LTliYzZiODUyNmQ0MlwvZGRjdGJiYy0xZGMwYmYzMy1kMmEzLTRjOGMtYjZmNS1jODhhY2IyYmYyMDAuanBnIn1dXSwiYXVkIjpbInVybjpzZXJ2aWNlOmZpbGUuZG93bmxvYWQiXX0.BbYanI4o_JGUrbacjktRwbF20pjWI8KkmdUKJ6zs0x8[^]

and my custom tab control code is here:
"
C#
public tab()
{
    InitializeComponent();
}


Image img = new Bitmap("google.png");
Rectangle rect = new Rectangle(5, 5, 22, 22);

private void tab_Paint(object sender, PaintEventArgs e)
{
    e.Graphics.DrawImage(img, rect);
}

"
the image "google.png" is in this folder:
D:\Programe\Info\Visual Studio 2010\Projects\Web\FFtabs\FFtabs\bin\Debug\
from the same folder where the executable is running!
Why is doing this? Please help me. I fight with this problem for years and I always had problems with loading images in VS.
I think is a root problem of some sort. Is there a rule that i missed it? I searched on all the internet (in time) for this problem but i never find a solution.
- My solution is NOT to load any image!!, and the code is running fine again, control is adding fine to form1,etc.
Thank you.
AnswerRe: Error when i try to add my control to form1 Pin
Richard Deeming29-Jul-19 9:10
mveRichard Deeming29-Jul-19 9:10 
GeneralRe: Error when i try to add my control to form1 Pin
_Q12_29-Jul-19 10:10
_Q12_29-Jul-19 10:10 
GeneralRe: Error when i try to add my control to form1 Pin
Richard Deeming30-Jul-19 1:52
mveRichard Deeming30-Jul-19 1:52 
GeneralRe: Error when i try to add my control to form1 Pin
_Q12_30-Jul-19 7:58
_Q12_30-Jul-19 7:58 
GeneralRe: Error when i try to add my control to form1 Pin
_Q12_29-Jul-19 10:34
_Q12_29-Jul-19 10:34 
GeneralRe: Error when i try to add my control to form1 Pin
_Q12_29-Jul-19 22:10
_Q12_29-Jul-19 22:10 
AnswerRe: Error when i try to add my control to form1 Pin
Dave Kreskowiak29-Jul-19 9:16
mveDave Kreskowiak29-Jul-19 9:16 
QuestionUnauthorizedAccessException Access to the remote share path Pin
Member 1158435626-Jul-19 0:09
Member 1158435626-Jul-19 0:09 
AnswerRe: UnauthorizedAccessException Access to the remote share path Pin
#realJSOP26-Jul-19 0:44
mve#realJSOP26-Jul-19 0:44 
Questionc# app design Pin
Member 1454172825-Jul-19 13:31
Member 1454172825-Jul-19 13:31 
AnswerRe: c# app design Pin
Gerry Schmitz25-Jul-19 14:42
mveGerry Schmitz25-Jul-19 14:42 
AnswerRe: c# app design Pin
Mycroft Holmes25-Jul-19 14:43
professionalMycroft Holmes25-Jul-19 14:43 
GeneralRe: c# app design Pin
#realJSOP26-Jul-19 0:47
mve#realJSOP26-Jul-19 0:47 
GeneralRe: c# app design Pin
Mycroft Holmes26-Jul-19 11:52
professionalMycroft Holmes26-Jul-19 11:52 
GeneralRe: c# app design Pin
MSBassSinger30-Jul-19 7:33
professionalMSBassSinger30-Jul-19 7:33 
AnswerRe: c# app design Pin
BillWoodruff25-Jul-19 15:10
professionalBillWoodruff25-Jul-19 15:10 
GeneralRe: c# app design Pin
Richard Andrew x6427-Jul-19 3:21
professionalRichard Andrew x6427-Jul-19 3:21 

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.