Hey, Cheers for the reply. But i am afraid the link is for creating a wizard for adding an item to an already created project and not creating a wizard for a custom project. What i am trying to do is when you create a ASP.NET Web Application from the 'File > New Project' menu, a folder for that project is created and has the default files of WebForm1.aspx, style.css, etc.. in it. I am trying to create a template so that when the project is created, in the Solution Explorer there is now an extra directory with my files in. Hope this helps, I will try to help u on the other issue also. Regards Chris
cwayman
Posts
-
Creating Custom Project Wizards -
Creating Custom Project WizardsHey, I am trying to create a custom ASP.NET Web Application wizard. The only the difference between the default wizard and the one i wish to create is that i add a small directory of files to the "C:\Program Files\Microsoft Visual Studio .NET 2003\Vb7\VBWizards\MyCustomWizard\Templates\1033" folder. I have tried the tutorial here here[^] but am unable to adapt it to my needs of a web application project rather than a class library project. Does anyone knoew how to create a custom web application project or know of any tutorials where it is possible. Thanks for your time Chris
-
Urgent - ThreadPoolHey, I really need to be able to make a button that stops my ThreadPool but i am really stuck on how to do it. Any help would be greatly appreciated as this is really urgent Chris
-
Urgent: Killing ThreadsHey, I have a dialog appear while a thread is running. But on this dialog i want to place a cancel button that cancels the thread when it is clicked. Is there anyway that VB.Net knows which threads are running in the app so it can kill them? Thanks for your help, this is really important Chris
-
Is this Possible - Getting a Application NameCheers tom a dream it does indeed Take care Chris
-
Is this Possible - Getting a Application NameHey, I have a full file path e.g. C:\Test\File.doc Obviously this is a MS Word document. But is there a way from this file name to get the Application that is used, in this case winword.exe? Thanks for your help, this is very urgent chris
-
combo box item values - Possible?I am now using a datatable cmboConnections.DataSource = connectionTable cmboConnections.DisplayMember = "name" cmboConnections.ValueMember = "ID" Which populates my combobox but i have no way of retrieving the Valuemember from the selectedIndexchanged event. Does anyone no how to get the ValueMember from a selected item? I have tried using the SelectedIndexChanged Event but the combobox.SelectedValue is a datarow and cannot be converted to string apparently? Any suggestions this is quite urgent Thanks for your help Chris
-
combo box item values - Possible?hey, i am trying to assign values to my combo box items. I thought that as you add an item to a combo box you could also just add a value. I am having great trouble doing this. i have a datatable with a 'name' and 'id' column. i want the combo box to display the name but when it is selected to get the id. i currently have the following code
cmboConnections.DisplayMember = "name"
For i = 0 To connectionTable.Rows.Count - 1 If Not connectionTable.Rows(i).Item("name") Is Nothing Then cmboConnections.Items.Add(connectionTable.Rows(i).Item("name")) cmboConnections.ValueMember = connectionTable.Rows(i).Item("ID") End If Next
I am unable to find any property wher you can just combobox.SelectedItem.Value or combobox.Item(X).Value. Is there any way to set a value of a item in a combo box? Thanks for your help Chris
-
Convert to DateHey this should do it
Dim JulDate As Long Dim TempDate As String Dim FinalDate As Date JulDate = 100015 'Your Julian Date TempDate = "01/01/" If JulDate > 99999 Then TempDate = TempDate + Mid(LTrim(Str(JulDate)), 2, 2) Else TempDate = TempDate + Mid(LTrim(Str(JulDate)), 2) End If FinalDate = DateAdd("d", Val(Mid(Str(JulDate) - 1, 3)), TempDate)
then use
Debug.WriteLine(FinalDate, Format(FinalDate, "mm/dd/yyyy"))
or
MsgBox(FinalDate)
to output it to screen so...
Private Sub Button1\_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim JulDate As Long Dim TempDate As String Dim FinalDate As Date JulDate = 100015 'Your Julian Date TempDate = "01/01/" If JulDate > 99999 Then TempDate = TempDate + Mid(LTrim(Str(JulDate)), 2, 2) Else TempDate = TempDate + Mid(LTrim(Str(JulDate)), 2) End If FinalDate = DateAdd("d", Val(Mid(Str(JulDate) - 1, 3)), TempDate) MsgBox(FinalDate) End Sub
should do it for you. Hope this helps Chris
-
Registry KeysHey all thanks for the help, are those examples in C++ ? cant really understand them for my lack of knowledge of C++. Thansk again Chris
-
highlighting after datagrid sort in vb.netHey you could use the
Private Sub DataGrid1_ItemDataBound(ByVal sender As Object, ByVal e As DataGridItemEventArgs)
End Sub
event as it is called for ever record in the datagrid during the databind. Hope this helps let me know how u get on Chris
-
ProcessesHey, Is there a way to check if an application is running in the Task Manager? and if it is kill it before starting my own custom process? I have the following function which sends a file to a printer but it opens up the application (e.g. MS Word) and sends the print command before closing it again.
Private Sub SendFileToPrinter()
Dim startinfo As New ProcessStartInfo startinfo.FileName = strFullFilePath startinfo.Verb = "print" startinfo.WindowStyle = ProcessWindowStyle.Hidden Process.Start(startinfo) End Sub
The problem is that sometimes it doesnt exit the application fully and it is still running in the background. Is the a way to get the location of the application .exe file that is running from the MIME type of the file, and then close it? thanks for your help Chris
-
easy in VB6 not in .Net -
Registry KeysHey dave, Thanks for the help, i am currently using that said method to set the default printer but some applications mainly MS Word and MS Excel do not recognise the new printer as default and use the previous one. I was wondering if any other registry keys where set on making a printer default as i think there must be a location that these applications are still looking to use the printer that they are. Any suggestions? Thanks again chris
-
Registry KeysHey, I was wondering what registry keys are set when you right click on a printer and say 'Set as default printer' Thanks for your help Chris
-
Creating a Help FileHey, I am developing a VB.NET application and am required to write a help guide to go with it. I am using Microsofts HTML Help Workshop which is proving a vague program to use. Is there any suggestions that you have for creating a help file and incorporating it into the applciation? How do you create help files? What software do you use? Thanks for your help Chris
-
Specifying PrinterHey, I am using a PDF printer. I am setting the "HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\Windows" Device key to my PDF printer to set it as the default printer so that it is automatically selected when a application prints. But some applications succesfully recognise the newly set key as the new default printer and others do not, and only see the previous default printer. Is there another value that i need to check or set for all applications to use the newly set default printer? Thanks for your help Chris
-
Last Event To FireThanks Chris
-
Last Event To FireHey, I was wondering when the 'X' is clicked in the top of the application window to exit the application what is the event that fires? As i need to set values back to defaults etc. Any help would be appreciated chris
-
Printing FilesHey thanks for the feedback. I have an installed PDF printer that i want to send my documents (MS Office Documents) too and also a 'print' command. The printer will do the rest. Does this make it harder or easier to print the files or is the situation still the same? Thanks Chris