Click here to Skip to main content
15,122,559 members
Home / Discussions / C#
   

C#

 
QuestionUsing SharpSphinx or PocketSphinx with C# Pin
Member 228177115-Jun-19 4:14
MemberMember 228177115-Jun-19 4:14 
QuestionDrag and Drop Ms-Word,Excel Pin
Member 1370632014-Jun-19 20:45
MemberMember 1370632014-Jun-19 20:45 
AnswerRe: Drag and Drop Ms-Word,Excel and PowerPoint Pin
OriginalGriff14-Jun-19 20:58
mveOriginalGriff14-Jun-19 20:58 
GeneralRe: Drag and Drop Ms-Word,Excel and PowerPoint Pin
Member 1370632014-Jun-19 22:37
MemberMember 1370632014-Jun-19 22:37 
AnswerRe: Drag and Drop Ms-Word,Excel and PowerPoint Pin
OriginalGriff14-Jun-19 22:42
mveOriginalGriff14-Jun-19 22:42 
GeneralRe: Drag and Drop Ms-Word,Excel and PowerPoint Pin
Member 1370632014-Jun-19 23:07
MemberMember 1370632014-Jun-19 23:07 
AnswerRe: Drag and Drop Ms-Word,Excel and PowerPoint Pin
OriginalGriff14-Jun-19 23:22
mveOriginalGriff14-Jun-19 23:22 
GeneralRe: Drag and Drop Ms-Word,Excel and PowerPoint Pin
Member 1370632018-Jun-19 19:30
MemberMember 1370632018-Jun-19 19:30 
Go to ParentI am using Windows application Web browser control

1. in my winforms i have 9 webbrowser control each web browser control load all files
eg: image, pdf, word excel

2. now in my winforms webbrowser control loading image when i drag and drop image in webbrowser1 the image size is not expand to webbrowser control window. i write this code for image expand to webbrowser control.
private void webbrowser1_DocumentCompleted(object sender,WebbrowserDocumentCompletedEventArgs e) 
{
var img = webBrowser1.Document.GetElementsByTagName("img").Cast<htmlelement>().FirstOrDefault();
var w = img.ClientRectangle.Width;
var h = img.ClientRectangle.Height;
img.Style = string.Format("{0}: 100%", w > h ? "Width" : "Height");
}

after this code is expanding image in webbrowser1 control and preview full screen.
now i am trying to load pdf in Webbrowser1 show error
Object reference not set to an instance of an object.
GeneralRe: Drag and Drop Ms-Word,Excel and PowerPoint Pin
OriginalGriff18-Jun-19 21:08
mveOriginalGriff18-Jun-19 21:08 
AnswerRe: Drag and Drop Ms-Word,Excel and PowerPoint Pin
Eddy Vluggen15-Jun-19 2:00
professionalEddy Vluggen15-Jun-19 2:00 
GeneralRe: Drag and Drop Ms-Word,Excel and PowerPoint Pin
Member 1370632015-Jun-19 2:35
MemberMember 1370632015-Jun-19 2:35 
GeneralRe: Drag and Drop Ms-Word,Excel and PowerPoint Pin
Dave Kreskowiak15-Jun-19 6:51
mveDave Kreskowiak15-Jun-19 6:51 
GeneralRe: Drag and Drop Ms-Word,Excel and PowerPoint Pin
Member 1370632018-Jun-19 6:46
MemberMember 1370632018-Jun-19 6:46 
GeneralRe: Drag and Drop Ms-Word,Excel and PowerPoint Pin
Dave Kreskowiak18-Jun-19 10:24
mveDave Kreskowiak18-Jun-19 10:24 
GeneralRe: Drag and Drop Ms-Word,Excel and PowerPoint Pin
Member 1370632018-Jun-19 19:17
MemberMember 1370632018-Jun-19 19:17 
GeneralRe: Drag and Drop Ms-Word,Excel and PowerPoint Pin
Dave Kreskowiak19-Jun-19 3:59
mveDave Kreskowiak19-Jun-19 3:59 
AnswerRe: Drag and Drop Ms-Word,Excel and PowerPoint Pin
Eddy Vluggen15-Jun-19 2:32
professionalEddy Vluggen15-Jun-19 2:32 
GeneralRe: Drag and Drop Ms-Word,Excel and PowerPoint Pin
Member 1370632015-Jun-19 3:33
MemberMember 1370632015-Jun-19 3:33 
GeneralRe: Drag and Drop Ms-Word,Excel and PowerPoint Pin
Eddy Vluggen15-Jun-19 3:48
professionalEddy Vluggen15-Jun-19 3:48 
GeneralRe: Drag and Drop Ms-Word,Excel and PowerPoint Pin
Member 1370632015-Jun-19 4:20
MemberMember 1370632015-Jun-19 4:20 
QuestionCatching exceptions in fire&forget tasks Pin
Bernhard Hiller14-Jun-19 3:58
MemberBernhard Hiller14-Jun-19 3:58 
AnswerRe: Catching exceptions in fire&forget tasks Pin
BillWoodruff14-Jun-19 12:58
mveBillWoodruff14-Jun-19 12:58 
AnswerRe: Catching exceptions in fire&forget tasks Pin
Eddy Vluggen14-Jun-19 14:37
professionalEddy Vluggen14-Jun-19 14:37 
GeneralRe: Catching exceptions in fire&forget tasks Pin
Bernhard Hiller16-Jun-19 21:49
MemberBernhard Hiller16-Jun-19 21:49 
QuestionRe: Catching exceptions in fire&forget tasks Pin
Eddy Vluggen16-Jun-19 23:45
professionalEddy Vluggen16-Jun-19 23:45 

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.