15,898,708 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by Zachary.shupp (Top 71 by date)
Zachary.shupp
10-Nov-13 10:58am
View
Okay so I fixed that error by modifying the code a little. the issue Im having now is the way its writing the category, it puts selected attribute before the Name attribute. Is there something im doing wrong in the code.
Dim xmlSettings As New XmlDocument
xmlSettings.Load(sPath)
Dim root As XmlNode = xmlSettings.SelectSingleNode("/AdminLaunch/Categories")
Dim xNode As XmlNode = xmlSettings.CreateElement("Category")
Dim xName As XmlAttribute = xmlSettings.CreateAttribute("Name")
Dim xSelected As XmlAttribute = xmlSettings.CreateAttribute("Selected")
xName.Value = "Scripts"
xSelected.Value = "True"
xNode.Attributes.Append(xName)
xNode.Attributes.Append(xSelected)
root.AppendChild(xNode)
xmlSettings.Save(sPath)
Zachary.shupp
10-Nov-13 9:41am
View
When I run it I get "Expression must evaluate to a node-set".
Zachary.shupp
9-Nov-13 23:34pm
View
I have been looking through System.Xml.XmlDocument and I see that I have to load it to memory and then modify it then save it back to the file. below is the function Im trying to get working and I still need a little help.
Dim nLine As String = Environment.NewLine
Dim newTool As String = I cant get my string to save in this comment
Try
' Load the XmlDocument.
Dim xd As New XmlDocument()
xd.Load(sPath)
Dim docFrag As XmlDocumentFragment = xd.CreateDocumentFragment()
docFrag.InnerXml = newTool
Dim root As XmlNode = xd.SelectSingleNode("/AdminLaunch/Categories/")
root.AppendChild(docFrag)
xd.Save(sPath)
Return True
Catch ex As Exception
MsgBox(ex.Message)
End Try
Zachary.shupp
29-Jul-13 15:36pm
View
What information is in $objAusgabe?
Zachary.shupp
29-Jul-13 7:53am
View
I am using system.windows.forms to create the GUI interface.
Zachary.shupp
27-Jul-12 18:02pm
View
I have tried that area because we do have some there too. My biggest issue is that im looking in the registry n its not diplaying information on all the folders that are under the uninstall registry section.
Zachary.shupp
27-Jul-12 17:52pm
View
Yes all the programs are listed ivn the registry and are displayed in add remove programs for some odd reason i cant get them to show up
Zachary.shupp
25-Jul-12 21:10pm
View
Could u give me an example
Zachary.shupp
25-Jul-12 20:22pm
View
This file change frequently and we check it on different machines. I just need to find someway to pass multipe items throgu the progresschanged event. I have tried creating a list but it dosent like that.
Zachary.shupp
23-Jul-12 18:31pm
View
I have been reading through the link and im a little lost. Is there anyway to modify that string? Could you provide an example.
Zachary.shupp
20-Jul-12 14:15pm
View
This works but it still lets me seperate the 2 forms. I want them to stay together unles you click the red x on the form.
Zachary.shupp
13-Jul-12 13:57pm
View
I did tray RemoveAll and it does remove all but not the APP /APP. Any more Ideas?
Zachary.shupp
13-Jul-12 12:19pm
View
Thank you so much i did make the change it didnt work like i thought it would. Instead of deleting the whole group it deleted just the name from that group. How can i get it to delete the wholegroup for test1?
Zachary.shupp
8-Jun-12 14:48pm
View
added the tag for winforms sorry.
Zachary.shupp
25-May-12 9:19am
View
loading one by one. i tried using and if statement to change them but it didnt work.
Zachary.shupp
24-May-12 21:03pm
View
i read through what you have posted and it all refreces wpf and this is a winforms application. if you think it will work with winforms could you provide an example
Zachary.shupp
15-May-12 18:32pm
View
could you provide an example. I have been reading the cellmousedown link you have an they dont really explain what to use. Help you would be great.
Zachary.shupp
10-Apr-12 19:33pm
View
I just got it working and all i had to do was change the OpenbaseKey to OpenRemoteBasekey and add the machine name. Thank you so much for the help.
Dim value As String
Dim strComputer As String = "Zack-PC"
Dim localKey = RegistryKey.OpenRemoteBaseKey(RegistryHive.LocalMachine, strComputer, RegistryView.Registry64)
localKey = localKey.OpenSubKey("SOFTWARE\Microsoft\Windows\CurrentVersion\Authentication\LogonUI")
Dim value64 = localKey.GetValue("LastLoggedOnUser")
Dim localKey32 = RegistryKey.OpenRemoteBaseKey(RegistryHive.LocalMachine, strComputer, RegistryView.Registry32)
localKey32 = localKey32.OpenSubKey("SOFTWARE\Microsoft\Windows\CurrentVersion\Authentication\LogonUI")
Dim value32 = localKey32.GetValue("LastLoggedOnUser")
If value64 = Nothing Then
value = value32
Else
value = value64
End If
MsgBox(value.ToString)
Zachary.shupp
10-Apr-12 19:17pm
View
Deleted
okay so i looked at the article and it looks very simple but when i try to have it check the loop back address to see if it works i get an error stating network path can not be found. please help. all that i needed to change from their page was the OpenRemoteBaseKey and add the machine name to the list which i did with strComputer.
Dim value As String
Dim strComputer As String = "127.0.0.1"
Dim localKey = RegistryKey.OpenRemoteBaseKey(Microsoft.Win32.RegistryHive.LocalMachine, strComputer, RegistryView.Registry64)
localKey = localKey.OpenSubKey("SOFTWARE\Microsoft\Windows\CurrentVersion\Authentication\LogonUI")
Dim value64 = localKey.GetValue("LastLoggedOnUser")
Dim localKey32 = RegistryKey.OpenRemoteBaseKey(Microsoft.Win32.RegistryHive.LocalMachine, strComputer, RegistryView.Registry32)
localKey32 = localKey32.OpenSubKey("SOFTWARE\Microsoft\Windows\CurrentVersion\Authentication\LogonUI")
Dim value32 = localKey32.GetValue("LastLoggedOnUser")
If value64 = Nothing Then
value = value32
Else
value = value64
End If
MsgBox(value.ToString())
Zachary.shupp
10-Apr-12 12:28pm
View
this works great for the local machine but i need to be able to read a remote machine how would i add that ability to what you have?
Zachary.shupp
10-Apr-12 5:59am
View
common access card. it holds a certificate to authenticate.
Zachary.shupp
9-Apr-12 20:55pm
View
I was just trying that but one part that i didnt think about is that some people at work have cac cards that they would use to provide credentisals and i think the run as would work the best because it looks at both. do you think the processstartinfo class could work with cac cards?
Zachary.shupp
5-Apr-12 21:23pm
View
Im just not understanding how to get those 4 from it. could your provide and example?
Zachary.shupp
21-Mar-12 8:34am
View
could you provide an example i m having a hard time understanding what you mean with the count to 0 doing i
Zachary.shupp
12-Mar-12 17:12pm
View
i understand on how to read the registry and i am using admin rights but this key is causeing issue. i have serached the web and others are having the same issue reading it.
Zachary.shupp
12-Mar-12 17:11pm
View
WinForms, sorry i updated the question to reflect winforms.
Zachary.shupp
9-Mar-12 7:05am
View
i still cant get this to work. What should the <object> be called becasue i though DEL_List was the object. Seconf var X i also dont know what i would put there. if its easy for you to code in c # tahts fine i have been learning how to work with that the last 2 months.
Zachary.shupp
8-Mar-12 14:34pm
View
if you work with c# thats fine
Zachary.shupp
8-Mar-12 14:17pm
View
i have referenced the linq. Could you give me an example of the foreach loop and how i would add it to the del list.
Zachary.shupp
8-Mar-12 13:26pm
View
when i try to ise this item i get the following error:'List' is not a member of 'System.Windows.Forms.ListView.SelectedListViewItemCollection'. could you give me an example of how i would ad this to my code that i can test?
Zachary.shupp
6-Mar-12 19:37pm
View
i did have it up for the background worker but i found if i just hide it till its finished i dont have the listview flickering. Now the reason i want to use a progres bar is to show how many its loaded. sometimes this can take 5 seconds to load and sometimes it takes it 2 minutes. I just need to find someway to let the user know that its running so they dont think its boken.
In all the other code i have use ive just called the progress bar to show at a specific percentage but when i do it her it doesn't work because of how manythings that have to load. So any ideas would be great.
Zachary.shupp
6-Mar-12 15:26pm
View
i see how this works but i m a little lost with how i would convert what i have to do it for all the files in the folder. If you could provide an example that would be great.
Zachary.shupp
5-Mar-12 21:57pm
View
I have tried having using the whole code in a background worker and it didn't work and then I used background worker do work with just the values and got it to show the first entry and that was it. At what point would I use begin update.?
Would it be right before cae_listview.items.add(item ) and then place the end update after.
I would like to have the whole list view load all at the same time. Would this method do that or do I need to go another route to have it load all at once?
Zachary.shupp
4-Mar-12 17:49pm
View
That sounds like a good idea. Would you have any information on that for vb.net
Zachary.shupp
3-Mar-12 7:07am
View
sorry i have gotten thrown into this project because they just let go of our programmer and its all new to me. I see what your saying i think. but if you could post an example with using the .lastwritetime i would really appreciate it
Zachary.shupp
2-Mar-12 21:15pm
View
how would i do that for the 20 - 50 files i have in that folder without hard coding it? i understand what your saying and i am trying to correct my coding if you could give me an example of how it should look to compare the files and copy that would help alot. Thanks for talking your time to help me.
Zachary.shupp
2-Mar-12 19:35pm
View
im trying (public void RunWorkerAsync(strcomputer);) but its not working coud you give me an example of what it would look like for the background worker to get the machine name from the textbox.
Zachary.shupp
2-Mar-12 16:19pm
View
I tried using suspendlayout at the begining nad resumelayout at the end of the code and it still loaded the sameway.
Zachary.shupp
2-Mar-12 16:11pm
View
could you give me an example of how to suspendlayout and resumelayout?
Zachary.shupp
1-Mar-12 20:18pm
View
how do i do that? i tried looking up the dispose option and dont really understand it. if you could provide an example that would be great...
Zachary.shupp
29-Feb-12 13:13pm
View
i see where the issue is and its were using different versions. In 2010 we dont have that layout.
Zachary.shupp
29-Feb-12 11:06am
View
i can not find step 4. i can get to the main manifest under properties>application>view windows settings. I m using visual studio 2010 ultimate if that makes a different.
Zachary.shupp
29-Feb-12 10:01am
View
I like this method and i will try it out but will this work with using the click once install method?
Zachary.shupp
28-Feb-12 9:07am
View
Ryan add the site to the solution and i will give you credit
Zachary.shupp
28-Feb-12 8:53am
View
I was looking at that too.
Zachary.shupp
28-Feb-12 8:44am
View
I tried it at a location without a space and i have the same issue.
Zachary.shupp
24-Feb-12 11:39am
View
yes i did
Zachary.shupp
24-Feb-12 10:35am
View
this looks great i just tested and it has issue but it showed me that there was a function for the item and i updated the question with the function.
When i run it i get in the function a activexx error
Zachary.shupp
24-Feb-12 10:33am
View
Deleted
this looks so much better. I tested it and i get errors but it showed me that he was using a function for "isprocessrunning" here that is
Function IsProcessRunning(ByVal strServer, ByVal strProcess)
Dim Process, strObject
IsProcessRunning = False
strObject = "winmgmts://" & strServer
For Each Process In GetObject(strObject).InstancesOf("win32_process")
If UCase(Process.name) = UCase(strProcess) Then
IsProcessRunning = True
Exit Function
End If
Next
End Function
Zachary.shupp
13-Feb-12 19:30pm
View
ok i set the break point and i didnt see anything stand out. I do know i need to chenge my naming but i m just trying to get this to work. I m not a big programmer the guy from work just quit and now i m having to fill in till we get a new person in so help would be great.
Zachary.shupp
11-Feb-12 15:01pm
View
yes the novadigm namespace is apart of the hp client automation that we use. I do have admn rights to the machine. Ii will try with the // and see what happens.
Zachary.shupp
10-Feb-12 13:35pm
View
is still get:
The file '\\ADNRFZ900016\C$\Progra~2\Hewlett-Packard\HPCA\Agent\Lib\SYSTEM\RADIA\SOFTSRVC\ASERVICE.EDM' already exists.
Zachary.shupp
10-Feb-12 13:31pm
View
so it would look like this ?
Dim FileToCopy As String = "\\" & strComputer & "\C$\Progra~2\Hewlett-Packard\HPCA\Agent\Lib\SYSTEM\RADIA\SOFTSRVC\ASERVICE.EDM"
File.Copy("C:\Temp\ASERVICE.EDM", FileToCopy, True)
Zachary.shupp
9-Feb-12 14:14pm
View
i dont understand what your saying. i know i m lisintg a few things but sometimes there can be 100 or is someone deletes something in the middle and i refresh it i want there to be no gaps in the numbers.
Zachary.shupp
9-Feb-12 13:52pm
View
i thought the same thing but the file that it puls from will change from time to time so i need something that will cover that.
Zachary.shupp
4-Feb-12 22:09pm
View
Deleted
<html><head><title>DCAT</title>
<hta:application id="DCAT" applicationname="DCAT" singleinstance="no" windowstate="normal">
Zachary.shupp
4-Feb-12 22:08pm
View
This is just one of them. I didn't write these but we have a few applications that the network still uses that we want to include in our application. Is there something specific i should look for or make sure these are set to?
hta:application id="DCAT" applicationname="DCAT" singleinstance="no" windowstate="normal" xmlns:hta="#unknown">
Zachary.shupp
3-Feb-12 22:25pm
View
okay i see what your saying but if you can show me that would be great. i tried
ListView1.Items.Add(F.Name, GetFileNameWithoutExtension ,ImgIndex).Tag = F
and it didnt work.
Zachary.shupp
3-Feb-12 20:14pm
View
I understand that google is a good method but i m new to vb and sometimes it just nice to see how to use some of the code. I have looked at what you listed and i dont know how to include it towhat i have. my main goal is to have the icon with the text which i have gotten but getting the ,lnk to drop off is harder then i thought.
Zachary.shupp
22-Jan-12 20:50pm
View
I read both articals and i still need some help i dont get either one. I tried both but neither worked.
Zachary.shupp
9-Jan-12 10:24am
View
yes it does. so the 10 will actually show 10 percent on the progress bar. Thank you.
Zachary.shupp
9-Jan-12 10:04am
View
I have looked through that article and i dont understand how i tell it to show the progress change. could you give an example?
Zachary.shupp
7-Dec-11 14:41pm
View
Yes the application will be running with admin rights.
Zachary.shupp
30-Nov-11 15:17pm
View
my issue is when i use this code and hit the search button the coding has issues with ostextbox = mos.get("OsName"). I need help pulling the information i think im coding the wmi wrong.
Zachary.shupp
21-Nov-11 13:34pm
View
the application i m working on is to pull wmi information on a remote computer. So the machine name text box is where i want the other user controls to get the name of the remote computer so when you click on the search button all 4 user controls pull the machien name so they can get the information they are supose to.
Zachary.shupp
21-Nov-11 11:48am
View
I dont want it to go to another text box i just want the coding to see it in other usercontrols if that makes any sense.
Zachary.shupp
21-Nov-11 8:27am
View
sorry for such a late response but i have tried that and i m still having issues. I have the text box called comphost, and the usercontrol it sits in is call uctrl_header. I dont understand how i tell the code above how to pull the text from the text for the comphost. Forgive me i am new to visual basic. thanks for the help
Zachary.shupp
17-Nov-11 10:19am
View
could you give me an example of what it should look like for declaring that text box as a vairable called comphost
Zachary.shupp
17-Nov-11 8:29am
View
all i want it to do is use the machine name that goes in the text box so the other user controls can use it as well. I have one user control that pulls hard drive info and another that pulls networking infor and all they need is the machine name. If you can help that would be great.
Zachary.shupp
13-Nov-11 19:11pm
View
i tried the above with differnt names and got errors
Dim red_left As New red_left
'...
dock_left.Children.Add(red_left)
DockPanel.SetDock(red_left, Dock.Bottom)
im getting 2 errors:
Error 2 Value of type 'WpfApplication1.red_left' cannot be converted to 'System.Windows.UIElement'. C:\Users\Zack\documents\visual studio 2010\Projects\WpfApplication usercontrol test\WpfApplication usercontrol test\MainWindow.xaml.vb 11 27 WpfApplication usercontrol test
any suggestions on how to fix this?
Zachary.shupp
13-Nov-11 14:03pm
View
I was over looking the step and got it to work but the other issue i have is getting it to work in a wpf application with vb. Would you know how to call the usercontrol to a dock panel or should i use something other than a dock panel. I realize that in wpf they have detailed panels unlink winform. Thanks for the help.
Show More