|
please see this
http://wastuae.com/uae/adv.aspx?id=470299
|
|
|
|
|
Hi,
I have a form with TabControl object at which there are 5 tabpages
What I want to do is that when user click the tab, the new tabpage is showing on form, at this time I want to show some message use msgbox "".
Now I use TabControl1_Selected event, the message is always shown before the actually tabpage is displayed, I want the message is shown after tabpage is displayed.
How can I do it?
Thanks!
|
|
|
|
|
The Selected event may be the wrong one. IMO you should use the SelectedIndexChanged event, and wire it after the Form is completely ready, i.e. in its Shown handler.
|
|
|
|
|
Thanks! SelectedIndexChanged event works if the tabpage is not the first one.
If the tabpage is the first page (index = 0), the message still cannot be shown.
|
|
|
|
|
You might also try handling the TabPage.Enter event.
Henry Minute
Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”
|
|
|
|
|
Thanks for reply!
TabPage.Enter event doesn't work.
|
|
|
|
|
Hi all,
I am using a list view in my project to display some data.
The listview has over 5000 element to display.but
when i run my program through debug mode then it gives the following error
"The CLR has been unable to transition from COM context 0x1a1010 to COM context 0x1a1180 for 60 seconds. The thread that owns the destination context/apartment is most likely either doing a non pumping"
but when i run the exe then it is working fine.
can any body give me any clue,why it is happening ?
|
|
|
|
|
how are you loading the data?
As barmey as a sack of badgers
Dude, if I knew what I was doing in life, I'd be rich, retired, dating a supermodel and laughing at the rest of you from the sidelines.
|
|
|
|
|
souravghosh18 wrote: can any body give me any clue,why it is happening ?
Are you doing that processing on the UI-thread? Have you considered moving it to a backgroundworker?
I are Troll
|
|
|
|
|
Hi,
Can any one help me out in regards to Calling WebService from VB6 environment ?
Thanks in advanced !!
|
|
|
|
|
Documented thousands of times. All it takes is a small effort on your part to actually do some research. Here, let me help: Click Me[^].
|
|
|
|
|
Heya guys I work in a PC repair shop and we deal with a lot of customers that have alot of infections on their PC. I have been trying to create and application that will kill explorer but it doesnt not convince it to stay dead it will only restart, I understand microsoft made it this way to prevent any malicious activity dealt to the computer. My6 application normally scans a specified directory where most ransomware or desktop hijacks take place such as %USERPROFILE.\Local Settings\Application Data\<cryptic infection="" name="">, I know most of the time it will still execute even if explorer is not loaded 80% of the time it does not happen, But my Goal is to stop the explorer.exe from loading, I dont want to take the route of removing HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogo and changing its value, it is still a thought but not very professional IMO.
just from this snipper all i have is:
Imports System.Diagnostics.Process
Dim Proc() As Process = System.Diagnostics.Process.GetProcessesByName("explorer")
Dim ProcSeek As Process
For Each ProcSeek In Proc
ProcSeek.Kill()
Next
Any help to maybe would be appreciated. =)
|
|
|
|
|
Why do you need to keep explorer dead?
You should always perform really deep cleans while in safe mode. this prevents all the unnecessary apps and dlls from firing up, and helps to break the recursive loops that many malicious software uses. i.e. dll spawing clones and monitoring each other for being removed etc.
Dave
Find Me On: Web| Facebook| Twitter| LinkedIn
CPRepWatcher now available as Packaged Chrome Extension, visit my articles for link.
|
|
|
|
|
Screw stopping Explorer. Take off, nuke the machine from orbit. It's the only way to be sure.
Seriously, blow away the machine and rebuild from scratch. It's the only sure-fire way to get 'em all.
Then stay away from those "sites".
|
|
|
|
|
When I kill explorer.exe from task manager, it dosen't restart? The only time I have seen explorer.exe restart it's self is when it crashes
See if you can crack this: fb29a481781fe9b3fb8de57cda45fbef
The unofficial awesome history of Code Project's Bob!
"People demand freedom of speech to make up for the freedom of thought which they avoid."
|
|
|
|
|
explorer will not restart if killed from task manager, uts just how microsoft created it, but if killed from your ide's app it will restart. but I understand what your saying bout performing scans in safe mode, cause services that are required to keep windows stable without the unecessary programs are the best to run scans with windows at minimal resources. I was just hoping to create an app to avooid the delay when booting into safe mode. I am fmailair with explorer and I know people ask questions like "why on earth do you want to kill explorer?" I work in a repair shop I know what the outcome is heh, I just thought there was always a faster route, but sorry for the ruckus =)
|
|
|
|
|
I want to extract Red, Green and Blue values separately from value which return from Color.ToArgb function. How to do that.
|
|
|
|
|
Assuming VB.NET, the Color struct holds all that is required.
ToArgb() is the method that turns a Color into an Int32, that is quite the opposite of what you want. Have a look at the FromArgb(Int32) method and the R, G, B properties.
|
|
|
|
|
I think you don't undetstand what i meant. Consider following code.
1 Dim img As New Bitmap(PictureBox1.Image)
2 Dim col As Integer = d.GetPixel(x, y).ToArgb
Variable col will hold some value that return from GetPixel function. Now I want to extract R value, G value and B value separately from variable col. That's what i want.
|
|
|
|
|
See the Color[^] methods for extraction of individual parts.
Just say 'NO' to evaluated arguments for diadic functions! Ash
|
|
|
|
|
At the risk of repeating myself: Dim Red As Integer = Color.FromArgb(col).R
|
|
|
|
|
Just kidding.
|
|
|
|
|
To be absolutely sure, I also gave an alternative that does not rely on the features of the Color type. See below message.
|
|
|
|
|
Thank you so much. Now i can understand it
|
|
|
|
|
The mathematical alternative is:
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
showColorComponents(Color.LightYellow)
showColorComponents(Color.FromArgb(11, 22, 33, 44))
End Sub
Private Sub showColorComponents(ByVal col As Color)
log("col=" & col.ToString & " = " & col.A & "," & col.R & "," & col.G & "," & col.B)
Dim I As Int32 = col.ToArgb()
log("I=0x" & I.ToString("X8"))
Dim B As Int32 = I And 255
Dim G As Int32 = (I >> 8) And 255
Dim R As Int32 = (I >> 16) And 255
Dim A As Int32 = (I >> 24) And 255
log("ARGB=" & A & "," & R & "," & G & "," & B)
End Sub
|
|
|
|