Creating And Removing Desktopicons And Removing A Map From Taskbar
How to create a desktop icon and remove it again and how to delete a folder from the taskbar within programs??
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Removing Window From Taskbar
Ok here's the Problem
i have a list of windows enumerated for me by a function. This means i have the Hwnd of each window, allowing be to get caption etc.
What i need to do is Remove the desired window from the Taskbar so that it seems that its no longer their but without closing/hiding the window.
I believe this is possible, but cant seem to figure out how..
Any help Appreciated!
Removing Other Program From Taskbar
Hey,
I have a lot of programs open on my computer, so my taskbar is filled well. How can I remove the program from my taskbar( and restore) withouth closing the program?
WP
Removing The Taskbar In An Application
I'm developing a simple VB application where I would not want my users to edit the date using the date controls on the taskbar. is there a way to hide the taskbar while my programming is running? How do i code that?
Removing A Taskbar Button's Icon
is it possible to remove a program's icon from the taskbar without changing the borderstyle? and is there another (free) solution to using the microsoft webbrowser control, i'm especially looking for an api module to this, but a usercontrol would also do.
Removing Windows Taskbar On The Display
Hi guys,
Sorry I am a new comer on visual basic, I was making a database program for small shop, but unfortunately I had a problem to removing the windows taskbar to prevent any body going to explore all files inside the hard disk before they closing the database program that password protected. Could any body help me to give any code to removing/hiding windows taskbar? Your kindly help will be much appreciated. Thanks
Removing Your Program From The Taskbar At Runtime
Winamp is able to remove it's tab from the taskbar at runtime. I wanted to do this so I researched a little and made this code:
VB Code:
Public Declare Function GetWindowLong Lib "user32" Alias "GetWindowLongA" (ByVal hwnd As Long, ByVal nIndex As Long) As LongPublic Declare Function SetWindowLong Lib "user32" Alias "SetWindowLongA" (ByVal hwnd As Long, ByVal nIndex As Long, ByVal dwNewLong As Long) As LongPublic Const GWL_EXSTYLE = (-20)Public Const WS_EX_APPWINDOW = &H40000 Private Sub chkTaskbar_Click() Debug.Print SetWindowLong(hwnd, GWL_EXSTYLE, GetWindowLong(hwnd, GWL_EXSTYLE) Xor WS_EX_APPWINDOW)End Sub
------
I'm sorry, pressed Post by accident here
see the complete post here http://www.vbforums.com/showthread.p...hreadid=221225
*RESOLVED* Removing Your Program From The Taskbar At Runtime
Winamp is able to remove it's tab on the taskbar at runtime. We can't set the 'ShowInTaskbar' property at runtime but I want to do the same thing. So I did some research and created the following code:
VB Code:
Public Declare Function GetWindowLong Lib "user32" Alias "GetWindowLongA" (ByVal hwnd As Long, ByVal nIndex As Long) As LongPublic Declare Function SetWindowLong Lib "user32" Alias "SetWindowLongA" (ByVal hwnd As Long, ByVal nIndex As Long, ByVal dwNewLong As Long) As LongPublic Const GWL_EXSTYLE = (-20)Public Const WS_EX_APPWINDOW = &H40000 Private Sub chkTaskbar_Click() Debug.Print SetWindowLong(hwnd, GWL_EXSTYLE, GetWindowLong(hwnd, GWL_EXSTYLE) Xor WS_EX_APPWINDOW)End Sub
While this seems to have some effect, it doens't remove the program from the taskbar. But when I end the explorer.exe process and restart it, it's gone. Now I can restart explorer.exe in vbcode, but that's not really the way it should be done :P, so any suggestions on how to refresh it?
Creating & Removing Several Duplicate Controls On A Form
I need to take one WebBrowser control on a form and create a new instance of the same control, in order to obtain functionality like that of Mozilla, with its tabbed browsing. It is possible to do this using a fixed number of WebBrowser controls, however that method is resource-hungry and I prefer not to impose such limits in my program.
Is it possible to do this?
*Resolved* Removing Taskbar Icon In Run-time (NOT System Tray Icon)
I wrote my own mp3 player ('cause Winamp sucks ), and one of the features is a very small, unobtrusive window:
I need to remove the taskbar icon, 'cause it looks dumb with a blank icon among the others.
Anyone have any ideas? All searches keep pointing to system tray icons
___________________________
Dave Applegate
Microsoft VB MVP, ACE [FAQs]
My friend has a trophy wife, but apparently she wasn't in first place.
Edited by - Metallisoft on 3/15/2004 1:39:05 PM
Removing Top Bar
what is the vb code to remove the top bar with the X and _ (maximise minimise) is there any way i can remove this completely?
and create my own X with a graphic
Removing Dll
how can i remove a dll, once it has been used....i have tried uninstalling the dll using 'regsvr32 /u' but still i can't remove it. how can i remove it or modify it, current'y i have to restart my pc to do it?
waqas
Removing Everything To The Right
Can someone tell me if there is a way to remove everything to the right of a letter.......for example.....i have a textbox with an email address and would like to remove everything after the @ and then place that string onto another textbox........ Is it possible?........Thanks in Advance
Removing The Use Of...
I'd like to remove the use of the Ctrl, Alt, and the Windows key from a program I am making. When in the program, I do not want the user to have access to those button's functions.
Thx for any help!
Removing OLE Bar
is there a way to remove the bar that comes under the avi file in an OLE object. This is the play, stop, pause bar I am talking about.
Removing A Box??
This is my code and everything works well however there are little boxes after most lines and guess this is where someone hit the space bar after entering it on the online form??
How can I remove it??
VB Code:
ssource = Inet1.OpenURL("http://www.mysite.com/application/get_news.php?id=" & Form1.Text2.Text)lStart = 1lEnd = 1sFindStart = "##"sFindEnd = "/##"lStart = InStr(lStart, ssource, sFindStart, vbTextCompare)If lStart ThenlStart = lStart + Len(sFindStart)lEnd = InStr(lStart, ssource, sFindEnd, vbTextCompare)If lEnd > lStart ThenBody = Mid$(ssource, lStart, lEnd - lStart)NewBody = Replace(Body, "<p>", vbCrLf)NewBody2 = Replace(NewBody, "</p>", vbCrLf)NewBody3 = Replace(NewBody2, "</br>", vbCrLf)NewBody4 = Replace(NewBody3, "<br>", vbCrLf)Text5.Text = NewBody4'Text5.Text = Mid$(ssource, lStart, lEnd - lStart)ElseDebug.Print "End text not found."End IfElseDebug.Print "Text not found."End If
Removing The Bar.
Hi,
Is there a way to remove the bar thats on top of the form , that holds the form name (caption), the "minimize", "maximize", "exit".
I know how to disable the controlbox, i want to remove the bar.
if its possible, let me know.
The purpose is just because it looks nice
Help Removing
how do you remove those annoying square boxes without messing up the format of my textbox? you know those square boxes that represents vbLf
my textbox has double spacing and stuff but sometimes the square boxes shows up. I tried doing replace with vbLf as a parameter, but it would mess up the. Here's a screenshot (look in the red area):
REmoving From Lst
Here's my code, I want to be able to remove a name fom the list but I keep having a runtime error '13' Type Mismatch
Dim NoOfLoops As Integer
Dim StudentName As String
Dim Average As Variant
Dim RemoveName As String
Dim RemoveGpa As Variant
Dim UserInput As String
Private Sub cmdRemove_Click()
RemoveName = InputBox("Which Student would you like to remove?")
RemoveGpa = InputBox("Which GPA would you like to remove?")
lstStudent.RemoveItem (RemoveName)
lstGPA.RemoveItem (RemoveGpa)
End Sub
Private Sub cmdStudent_Click()
NoOfLoops = InputBox("How many students would you like to add to database?")
For i = 1 To NoOfLoops
StudentName = InputBox("Type Student Name")
Average = InputBox("Type Students GPA")
lstStudent.AddItem (StudentName)
lstGPA.AddItem (Average)
Next i
End Sub
Removing
How do you remove a selected item in a listbox from the list with a command button?
I tried:
Code:
Private Sub delete_Click()
Dim remove As Integer
remove = keywordbox.Selected
keywordbox.RemoveItem remove
End Sub
but it doesnt like that.
thanks.
Removing The
Hello all
I have saved the contents of a text box and label but when I look in the text file the contents of the textbox and label have "" around them how do I stop this from happening
This is the code I use to save with
Open info For Output As #1
Write #1, Label5.Caption
Write #1, "hello"
Close #1
cheers
Removing Quotations
Im pulling data out of a comma delimited text file and some of the text in there is wrapped in quotations. I thought about using the replace function but then I thought how am I gonna tell it to pull out a " if thats whats used to define the string its looking for. Im sure its simple and I overlooked it during class but if anyone knows I would appreciate the help. Thanks
Removing A Certain Char
i'm just wondering if there is a way to an efficent way remove a certain char in all instances in a text file, without going through it iteratively.
i'm wondering if you could accomplish this with bitshifts.
Removing Path
How can i remove the path from the filename of any file,(the path is unknown)
say if i have
C:folderfolder1file1.txt
how can i just have "file1.txt"
ty
Removing Title Bar
I have removed my title bar in my form, and because my program runs in systray, I have added a 'menu'. Even though it is not 'visible' my title bar is now appeared.
Does anyone know3 how to remove it ?
Thanks !
Need Help Removing Spaces
I am writing a program that creates a text file based on info from 125 text boxes. I have managed to get most of it to work but once i read the text in the output file some of my info that I try to concatenate together has a space in between.
For example I have Name as an input and need to add _first to get
Person : Name_first
what Im getting now is Person : Name _first
And I cant seem to get rid of that space between Name and _first
Heres the Print line im using that gives me that unwanted space
Print #1, "Person : " + Name; "_first"
Can someone help me get rid of that space that keeps showing up.
Removing Transparent Blt
ok in my game i transparent blt the characters on the screen, how would you remove them when they die is there a method for transparent blt that does this?
Removing Com Port
How can i remove a com port thrue code?
Normaly you would go to
system -> Device Manager -> ports and then undo installation
The reason i want to do this is:
I have 1 com port and sometimes im connecting a printer to it and sometimes a pda. but when im switching from printer to pda or from pda to printer i have to uninstall the com port and reinstall them for the pda or printer to work :S
Thanks.
Removing References
Hi guys,
I have noticed that when you produce a document having used a vb form, it saves a reference to that original form in the resulting document in the project info in vb. How can I remove this reference?
Right clicking on it does not allow me to delete, and help is completely useless.
I really need to remove this reference as it is interfering with some things (too difficult to explain!! - easier to just remove the reference!!).
Cheers
Removing Duplicates?
Is there a way to remove duplicate records in access w/o manually pasting with the "structure only" option ?
I need to automatically detect and remove duplicate records everytime a report is opened.
Thank you all in advance. =]
Removing Zero When Seraching
hey..
im coming in with all these questions and no help to anyone else sorry... just started learning VB and like 10 other languages so gimme some time and ill be able to help others :P
i have an input box where my company will use a barcode scanner to search our inventory.... in my inventory the barcode list has no zero's infront of the numbers because excel deleted them. possible to retreive them? im pretty sure you can but i dont need that, what i need is when the user scans an item into the input box that VB will auto remove the zero infront of the number (e.g. 09999 = 9999). i did this sneaky little code to do that:
Code:
scanned = InputBox("Scan Sold Item Now", "YF")
Range("E2").Select
ActiveCell = scanned
scanned = ActiveCell
so basically it puts whatever is scanned into a cell and since excel without specific formatting deletes that front zero i then take whatever is in that cell and its without the zero!
my simple question is there a "proper" way to do this? since i know so little code i constantly have to resort to doing these thing in "tricky" ways....
OpenText Removing 0
Hi
I'm Opening a text file in a workboox and then saving it. The problem is that telephone numbers i.e 01509345632 store in the Excel sheet as 1509345632. Later this data is applied to a database and then reports are required.
Is there any way I can maintain telephone number as it is without losing the leading 0?
Code:
Sub BillExcel(ByVal strFileName As String, ByVal strProvider As String)
Dim strSheetName, strPhoneNumber, strExcelNo As String
Dim boolFoundNumber As Boolean
Dim blIgnorePrompt As Boolean
Set objExcel = New Excel.Application
blIgnorePrompt = False
'open the text comma seperated file
objExcel.Workbooks.OpenText FileName:=strFileName, StartRow:=1, DataType:=xlDelimited, Comma:=True
Set objWb = objExcel.ActiveWorkbook
'excel sheets
Set objWs = objWb.Worksheets(1)
Removing The Decimal Value
Dear VB people,
Thinking to something very easy:
We have a value 4.9999 and we want to remove the decimals
dim N as long
N = 4.9999
msgbox int(N) 'gives 5 instead of 4
With which function we get the value 4?
Functions Abs / Format gives the same result!
Nice regards,
Michelle.
Removing A Scrollbar
Hey everyone. I was wondering is there a way that you can remove the scroll bar from a list box? If so how? Thanks in advance
Removing Zero's In Barcode
hi everyone.. just new here.. i have this project.. a barcode scan thing.. anyway, my question is how can u remove the zero's in a barcode.. for example: 00000123456789 --> all i need is the "123456789".. can anyone help me how to omit the zero... pls.. Ü
Removing Scrollbars
I have the following sub
Code:
Private Sub WebBrowser1_DocumentComplete( _
ByVal pDisp As Object, _
ByRef URL As Variant _
)
WebBrowser1.Document.body.Scroll = "no"
End Sub
When I use:
WebBrowser1.Navigate "www.someurl.com"
everything is great and the scroll bars are removed
When I do:
WebBrowser1.Refresh
Scroll bars are not removed
Any ideas to get the refresh to work with the sub to remove scrollbars. Clearly I am missing something
Thanks
RObert
Removing The Quotationmarks
I'm trying to make a KML-file (Google Earth). I used POIedit to make some examples.
When done with the strings I have this;
Code:
<?xml version="1.0" encoding="ISO-8859-1"?><kml xmlns="http://earth.google.com/kml/2.0"><Folder> etc
when I write (write #) this to a file it is converted to;
Code:
"<?xml version=""1.0"" encoding=""ISO-8859-1""?><kml xmlns=""http://earth.google.com/kml/2.0""><Folder> etc"
all quotationmarks get doubled and because its a string I've got the q-marks at front and end which messes up the file (probably the reason why I've got doubles as well)
Is there any way to write a string without the quotationmarks ?????
Peet
Removing Tab From SStab
I'm just trying to remove a tab from a SStab control but can't seem to find an easy way to do it. Decrementing the tab count provokes an error. Any ideas?
Removing Spaces
Hi
Is there a way of automating the removal of spaces between numbers e.g. I have 12 990 and it needs to be changed to 12990, the thing is I want to avoid using search and replace as this will take me hours.
The data is all in one colum and looks like:
12 180
12 190
12 200
12 210
12 220
12 230
Any one got any ideas
Thanks
Removing Fomatting
I have an 'automatted' report that has a lot of formatting on it.
The reports saves at 7 MB, but with the formatting removed from the detail tabs, it saved at 4 MB.
I accomplished this by inserting a blank worksheet, then I created a loop that copied the formatting from the blank workseet and pasted it over the detail worksheets.
Then, when it opens, it does the revers, it copies the formatting from a template and the npastes it onto the detail tabs.
IS there a quicker way to just 'turn off' the formatting on a sheet?
Removing Rows
Hello everyone!
I was wondering how I could remove every 2nd row (i.e. every odd numbered row) from a spreadsheet without having to actually physically select each row (that'd be tedious in the spreadsheets i use)
Thanks in advance
Removing Files
I'm a newbie with no experience to VB and I'm really struggling. I've scoured the internet trying to look for my answer.
I own an Internet Security website and I want to develop some removal tools for Spyware and Viruses. I'd like all the malicious files to be removed to the Recycle Bin. I have a list of all the file locations but some files may not be there, so the removal tool should be able to detect whether the file is there and if it exists then move it to the Recycle Bin.
How would I do this in VB, I want the process to start when the User clicks a Next Button. Thanks for any help.
Removing A Usercontrol
does anybody know how to remove a usercontrol because im downloading something using async read and it wont close the ports it opened and i saw this only happens when i unload the form with it
Removing From Listbox
hey to all (first post). hope you can explain.
i have a listbox with items in it and some will be the same, somebody told me to check if its in the list before i added it to the listbox which i understand but why does this not work all the time.
For i = 0 To List1.ListCount - 1
If List1.List(i) = "some stuff" Then
List1.RemoveItem i
End If
Next i
thank you very much.
Removing Certain Text
i built an IP banning system into my program. the user will right click on the selected IP in a listbox and click "Ban this IP" (on a popupmenu) and it will add that IP to a rich textbox. then on the winsock connection request it checks if the remotehostIP is in that textbox. if not then it allows the file to be sent if it is then it brings that user to a banned page. now I want to make an Unban This IP feature. In the IP log listbox click event I have
Code:
If InStr(rtfBannedIPs.Text, Winsock1.RemoteHostIP) <> 0 Then
mnuBan.Caption = "Unban This IP"
End If
and in the mnuBan click event I have
Code:
If mnuBan.Caption = "Unban this IP" Then
RemoteIP = InStr(rtfBannedIPs.Text, lstLog.List(lstLog.ListIndex))
rtfBannedIPs.Text = rtfBannedIPs.Text - RemoteIP
End If
the rtfBannedIPs.Text - RemoteIP was just a guess because I couldn't think of any other way on how to do it. so any ideas?
Removing Last Character
Is there a quick and easy way to remove the last character of a string? I've got a string that ends in a backslash, and I need to remove the backslash. Or am I stuck breaking this thing into a character array and then rebuilding another character array, minus the last element of the first array? Seems like way too many steps for such a simple task....
Removing A File
Hi,
I been ading some options to my program, and sorting out whether the program will startup with windows
I found some code to add a shortcut to the start up folder of windows.
But, becuase i am a nice person, i want to allow the user to disable this buy removing the shortcut that i created.
How do i go by doing this?
heres the code i got for adding a shortcut
Code:
Dim oShell As IWshShell_Class
Dim oSCut As IWshShortcut_Class
Dim sPath As String
Set oShell = New IWshShell_Class
sPath = oShell.SpecialFolders("Startup")
Set oSCut = oShell.CreateShortcut(sPath & "Wallpaper Changer.lnk")
oSCut.TargetPath = App.Path + "" + App.EXEName
oSCut.Save
Thanks in advance
Removing A Hyperlink
I would like to insert some VB code that removes a hyperlink without having to physically right-click on the mouse.
I know I can move the cursor to the field, now I need the code that will delete the existing hyperlink.
I tried the following:
DoCmd.RunCommand acCmdEditHyperlink
but I receive the run error 2046 indicating the command or action 'Edithyperlink' is not available right now.
Any ideas?
XL & Removing A Node........
Hi,
I am trying to remove a record from an XML file that I have created.
I need to be able to find a record by using the VLID Node and then remove the whole record, for example the XML file looks like this.....
- <ViewLog>
- <LogRecord>
<VLID>1</VLID>
<LogDate>16/03/2002</LogDate>
<ViewBy>Guy_Brigden</ViewBy>
<ViewDT>22/11/2002</ViewDT>
</LogRecord>
- <LogRecord>
<VLID>2</VLID>
<LogDate>17/03/2002</LogDate>
<ViewBy>Guy_Brigden</ViewBy>
<ViewDT>22/11/2002</ViewDT>
</LogRecord>
</ViewLog>
I now need to remove the record with a VLID = 2.
How?
Any help would be grateful.....
Newbie
|