Click here to Skip to main content
15,845,785 members
Home / Discussions / C#
   

C#

 
QuestionMocking HttpContext Pin
SreeRama Govind31-Jul-22 18:26
SreeRama Govind31-Jul-22 18:26 
AnswerRe: Mocking HttpContext Pin
Pete O'Hanlon2-Aug-22 0:26
subeditorPete O'Hanlon2-Aug-22 0:26 
GeneralRe: Mocking HttpContext Pin
SreeRama Govind3-Aug-22 9:59
SreeRama Govind3-Aug-22 9:59 
QuestionControlDesigner issue Pin
mo149230-Jul-22 1:51
mo149230-Jul-22 1:51 
AnswerRe: ControlDesigner issue Pin
Gerry Schmitz30-Jul-22 6:04
mveGerry Schmitz30-Jul-22 6:04 
GeneralRe: ControlDesigner issue Pin
mo149230-Jul-22 8:35
mo149230-Jul-22 8:35 
GeneralRe: ControlDesigner issue Pin
Gerry Schmitz30-Jul-22 15:49
mveGerry Schmitz30-Jul-22 15:49 
GeneralRe: ControlDesigner issue Pin
mo149231-Jul-22 7:43
mo149231-Jul-22 7:43 
I'm sorry for the confusion. There are 2 files to a UserControl when created from the application:
In this case
UserControl1.cs
UserControl1.Designer.cs

The latter file contains the standard Dispose() code which I did not supply since it's just standard code.

For arguments sake, I started with the code you referenced 'as is'.. That means I copied and pasted the whole sample into a project file, built it, and tried it by loading it into a from from the toolbox; it did not function as described...

1. When the mouse moves into the control, the control does not show the highlight the border as the MouseEnter() method should do.
2. The property that is added in the designer "OutlineColor" does not show in the grid properties.

I've managed to get the debugger to work in DesignMode and set a break points in the MouseEnter() method and the OutLineColor.Set property and the OnPaintAdornments() method. None of the break points are hit when the control is loaded into the form.

thanks
Questionhow to save Image or Bitmap to svg file Pin
Le@rner29-Jul-22 2:51
Le@rner29-Jul-22 2:51 
AnswerRe: how to save Image or Bitmap to svg file Pin
OriginalGriff29-Jul-22 3:19
mveOriginalGriff29-Jul-22 3:19 
AnswerRe: how to save Image or Bitmap to svg file Pin
Gerry Schmitz29-Jul-22 9:38
mveGerry Schmitz29-Jul-22 9:38 
AnswerRe: how to save Image or Bitmap to svg file Pin
Calin Negru30-Jul-22 3:42
Calin Negru30-Jul-22 3:42 
QuestionCan you use sqlite in vs2022? CLOSED Pin
mo149228-Jul-22 14:18
mo149228-Jul-22 14:18 
AnswerRe: Can you use sqlite in vs2022? CLOSED Pin
OriginalGriff28-Jul-22 20:00
mveOriginalGriff28-Jul-22 20:00 
QuestionC# Set voice in Text to Speech Pin
Rockallica27-Jul-22 18:02
Rockallica27-Jul-22 18:02 
AnswerRe: C# Set voice in Text to Speech Pin
OriginalGriff27-Jul-22 21:16
mveOriginalGriff27-Jul-22 21:16 
GeneralRe: C# Set voice in Text to Speech Pin
Rockallica28-Jul-22 9:39
Rockallica28-Jul-22 9:39 
GeneralRe: C# Set voice in Text to Speech Pin
OriginalGriff28-Jul-22 9:52
mveOriginalGriff28-Jul-22 9:52 
QuestionIn C# can't introduce a formula in Excel Pin
Ismael_199927-Jul-22 13:37
Ismael_199927-Jul-22 13:37 
AnswerRe: In C# can't introduce a formula in Excel Pin
trønderen27-Jul-22 13:55
trønderen27-Jul-22 13:55 
AnswerRe: In C# can't introduce a formula in Excel Pin
Gerry Schmitz27-Jul-22 15:47
mveGerry Schmitz27-Jul-22 15:47 
GeneralRe: In C# can't introduce a formula in Excel Pin
Ismael_199928-Jul-22 8:53
Ismael_199928-Jul-22 8:53 
QuestionI having this error could anyone can help me :Unhandled Exception: System.NullReferenceException: Object reference not set to an instance of an object at ValidParenthese.Solution.IsValid (System.String s) [0x00000] in <89120c6f256647e6a05011f274f6a Pin
swethamaddi27-Jul-22 0:20
swethamaddi27-Jul-22 0:20 
AnswerRe: I having this error could anyone can help me :Unhandled Exception: System.NullReferenceException: Object reference not set to an instance of an object at ValidParenthese.Solution.IsValid (System.String s) [0x00000] in <89120c6f256647e6a05011f27 Pin
Richard MacCutchan27-Jul-22 0:51
mveRichard MacCutchan27-Jul-22 0:51 
AnswerRe: I having this error could anyone can help me :Unhandled Exception: System.NullReferenceException: Object reference not set to an instance of an object at ValidParenthese.Solution.IsValid (System.String s) [0x00000] in <89120c6f256647e6a05011f27 Pin
Dave Kreskowiak27-Jul-22 7:57
mveDave Kreskowiak27-Jul-22 7:57 

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.