Click here to Skip to main content
16,008,490 members
Home / Discussions / C#
   

C#

 
AnswerRe: Help Parsing HTML/String Pin
Guffa7-Oct-06 12:16
Guffa7-Oct-06 12:16 
QuestionInheriting from the tabcontrol Pin
thepersonof7-Oct-06 3:01
thepersonof7-Oct-06 3:01 
AnswerRe: Inheriting from the tabcontrol Pin
Captain See Sharp7-Oct-06 4:12
Captain See Sharp7-Oct-06 4:12 
GeneralRe: Inheriting from the tabcontrol Pin
thepersonof13-Oct-06 10:48
thepersonof13-Oct-06 10:48 
QuestionFiles in folder Pin
Mohammed Elkholy7-Oct-06 2:48
Mohammed Elkholy7-Oct-06 2:48 
AnswerRe: Files in folder Pin
DownBySpj7-Oct-06 3:06
DownBySpj7-Oct-06 3:06 
QuestionRaising events in C# Pin
Mahhouraaaaaa7-Oct-06 1:44
Mahhouraaaaaa7-Oct-06 1:44 
AnswerRe: Raising events in C# Pin
Captain See Sharp7-Oct-06 4:02
Captain See Sharp7-Oct-06 4:02 
Mahhouraaaaaa wrote:
how can i raise an event explicitly using coding for exemple i want to simulate the clicking in a tabpage of the tabcotrol so that it will be showed to the user


To explicitly raise an event in C# you just call the event as it were a method. You first must check to see if it is null. If it were null then there are no registered methods to that event and an exception will be thrown.

if(Clicked != null)
 Clicked(); //calls all the registered methods "fires the event"


Your deal with the tab page control is more difficult. If I understood you correctly you want to fire an event of a control from the outside. You will have to send it the ?WM_MOUSECLICK? event, to do that you will need to inject that event into the message queue of Windows itself. You will need to use the native Windows API to do that. There may be other ways, but I am currently unaware of them.


█▒▒▒▒▒██▒█▒██
█▒█████▒▒▒▒▒█
█▒██████▒█▒██
█▒█████▒▒▒▒▒█
█▒▒▒▒▒██▒█▒██

QuestionGet time Pin
mehrdadc487-Oct-06 1:39
mehrdadc487-Oct-06 1:39 
Questiongetting error code Pin
DownBySpj7-Oct-06 1:28
DownBySpj7-Oct-06 1:28 
AnswerRe: getting error code Pin
Guffa7-Oct-06 1:55
Guffa7-Oct-06 1:55 
QuestionHow to Convert This Code to C# ? Pin
hdv2127-Oct-06 1:00
hdv2127-Oct-06 1:00 
AnswerRe: How to Convert This Code to C# ? Pin
Aashutoshkumar7-Oct-06 1:12
Aashutoshkumar7-Oct-06 1:12 
Questionsend mail Pin
vivek.s.vivek6-Oct-06 23:24
vivek.s.vivek6-Oct-06 23:24 
AnswerRe: send mail Pin
Rajesh_K_Sharma7-Oct-06 9:12
Rajesh_K_Sharma7-Oct-06 9:12 
QuestionFormBoardStyle Pin
ShadowRayz6-Oct-06 19:27
ShadowRayz6-Oct-06 19:27 
AnswerRe: FormBoardStyle Pin
Amar Chaudhary6-Oct-06 19:53
Amar Chaudhary6-Oct-06 19:53 
GeneralRe: FormBoardStyle Pin
leppie6-Oct-06 23:31
leppie6-Oct-06 23:31 
QuestionIterate over cells in DataGridViewColumn Pin
drinkingbird6-Oct-06 17:42
drinkingbird6-Oct-06 17:42 
QuestionCrystal Report Problem Pin
Saleh Mahmoud6-Oct-06 15:10
Saleh Mahmoud6-Oct-06 15:10 
QuestionModule oriented Windows Application... Pin
Kasic Slobodan6-Oct-06 14:21
Kasic Slobodan6-Oct-06 14:21 
AnswerRe: Module oriented Windows Application... Pin
Christian Graus6-Oct-06 23:33
protectorChristian Graus6-Oct-06 23:33 
GeneralRe: Module oriented Windows Application... Pin
Kasic Slobodan7-Oct-06 9:40
Kasic Slobodan7-Oct-06 9:40 
GeneralRe: Module oriented Windows Application... Pin
S. Senthil Kumar8-Oct-06 2:46
S. Senthil Kumar8-Oct-06 2:46 
GeneralRe: Module oriented Windows Application... Pin
Kasic Slobodan8-Oct-06 6:50
Kasic Slobodan8-Oct-06 6:50 

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.