|
Sorry if this is a silly question and I may just be being thick, but I can't seem to get a startup project going as I don't want to use a one-click setup, in the MS instructions it says, you go file ==> add ==> New Project, and select startup project from there, I just don't have this option at all, I'm using VB.net 2005 express edition.
many thanks..
|
|
|
|
|
I think you're referring to the Setup project, not Startup.
And no, the Express Editions don't come with one. They're relegated to ClickOnce deployment.
Dave Kreskowiak
Microsoft MVP
Visual Developer - Visual Basic 2006, 2007
|
|
|
|
|
yup, setup project and b****r I had an idea that might be the case...
|
|
|
|
|
|
The Express Editions don't come with the Setup projects you use in your article. Express only uses ClickOnce Deployment.
Dave Kreskowiak
Microsoft MVP
Visual Developer - Visual Basic 2006, 2007
|
|
|
|
|
I guess it shows that I don't use Express Edition of VS.
Thanks,
Ben
|
|
|
|
|
Neither do I...
Dave Kreskowiak
Microsoft MVP
Visual Developer - Visual Basic 2006, 2007
|
|
|
|
|
But you know more about its limitations then I do.
Ben
|
|
|
|
|
The results of a quick visit to the Visual Studio Developer Center on MSDN. Look for the Product edition comparison in the navigation tree on the left.
Dave Kreskowiak
Microsoft MVP
Visual Developer - Visual Basic 2006, 2007
|
|
|
|
|
You know it is sort of funny they don't include it. It is not like you don't need to deploy your apps. I guess they just want everyone to start using clickonce.
Ben
|
|
|
|
|
kubben wrote: You know it is sort of funny they don't include it. It is not like you don't need to deploy your apps.
The Express Editions weren't meant to build production apps. They're meant to plaay around with so you can get an introduction to the languages they support and the .NET Framework. Those Editions don't even have project templates for Windows Services, Web Services, ..., just Windows Forms.
Dave Kreskowiak
Microsoft MVP
Visual Developer - Visual Basic 2006, 2007
|
|
|
|
|
Just because they weren't ment to build production apps, doesn't mean it isn't happening. My article is on the windows setup project. I never did one on the web setup. So from my perspective it still make sense since all you have is a windows project. You probably want a way to deploy it. I can understand the windows services not being there. Anyway, I guess it doesn't have to make sense. I am sure somewhere somebody said, "hey look if we leave the windows setup project out of the express version it will save us like half a cent somehow and that adds up you know?" I am sure that nobody is going to buy the full version of VS just so they can get windows setup projects.
Ben
|
|
|
|
|
on that note if I write my own setup project template anyone any objections if I post it up on here...
|
|
|
|
|
You can put one together, but it doesn't mean that it'll work. The designer support for Setup projects isn't in the Express Editions.
Dave Kreskowiak
Microsoft MVP
Visual Developer - Visual Basic 2006, 2007
|
|
|
|
|
hmm, should be able to get something running I would think, I suppose I could just use clickonce for the purpose of the program, it'll work well enough, just means I'll have to rebuild all my datasources, as I'm not a fan of having MDF files in a roaming profile, heh, suppose if I'd set up the SQL properly at the start it'd actually work better as click once...
|
|
|
|
|
kubben wrote: Just because they weren't ment to build production apps, doesn't mean it isn't happening.
If you use the tool for something that's it's not intended for, is that the tool manufacturers fault?
Dave Kreskowiak
Microsoft MVP
Visual Developer - Visual Basic 2006, 2007
|
|
|
|
|
True, I guess their logic doesn't match my logic in this issue. I guess I tend to try and look at the big picture and do what will help people out in the long run. But I am not so sure that is Microsoft's objective. I am pretty sure they are in the business of making money anyway they can, but that is in part why they are so successful.
Ben
|
|
|
|
|
THe error message is:
"Index and length must refer to a location within the string.
Parameter name: length"
Source: mscorlib
The lines causing the error are:
Dim row() As String = {rowBuild(0), rowBuild(1), rowBuild(2), rowBuild(3), rowBuild(4), rowBuild(5), rowBuild(6), rowBuild(7), rowBuild(8), rowBuild(9), rowBuild(10), rowBuild(11), rowBuild(12), rowBuild(13), rowBuild(14), rowBuild(15)}
Me.dgvData.Rows.Add(row)
This is loading data into an unbound DataGridView. The declaration for rowBuild is
Dim rowBuild(15) As String
Each rowBuild element has data in it, so I can't see what is wrong.
Any ideas????????
David Loring
!! Keep Music Live !!
|
|
|
|
|
Using the code you've supplied, I can't duplicate the problem. I actually can't BREAK it in any way unless I fail to define the columns in the DGV before I add the rows.
With DGV1.Columns
.Clear()
.Add("Col1", "Column Header 1")
.Add("Col2", "Column Header 2")
.Add("Col3", "Column Header 3")
End With
Dim row() As String = {"Data 1", "Data 2", "Data 3"}
DGV1.Rows.Add(row)
Works perfectly. If you don't create the columns first, it'll bomb out with an InvalidOperationException - "No row can be added to a DataGridView control that does not have columns. Columns must be added first."
I'm using .NET 2.0... There's got to be something else about the DGV setup or about the data that we haven't seen.
Dave Kreskowiak
Microsoft MVP
Visual Developer - Visual Basic 2006, 2007
|
|
|
|
|
Hi Dave, I don't have a problem with the column headers, but just so you can see, the columns are created thus:
dgvData.Columns.Clear()<br />
dStartDay = mv_dCurrentAnomDate.AddDays(-2)<br />
iStartDayNumber = Weekday(dStartDay)<br />
dgvData.Columns.Add("Unit", "UNIT")<br />
For iLoopVar = 1 To 15<br />
dgvData.Columns.Add("D" & Format(iLoopVar, "00"), Format(dStartDay, "dd-mm-yyyy") & Chr(10) & Format(dStartDay, "ddd"))<br />
dgvData.Columns(iLoopVar).DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleCenter<br />
dStartDay = dStartDay.AddDays(1)<br />
Next<br />
dgvData.ColumnHeadersHeight = 45
THe only error message I get is this "Index and length must refer to a location within the string.
Parameter name: length"
Source: mscorlib
To be honest I don't actually understand what the error message is trying to tell me!
David Loring
!! Keep Music Live !!
|
|
|
|
|
Hi Dave,
My face is seriously and completely covered in egg!! I apologise for wasting your time as it transpires that the error is actually occuring in the Cell_Enter event and I never saw this because I was stepping over the .add(row)
A sad case of not being able to see the wood for the trees! Too many late nights, cigarettes and much too much coffee.
Thanks again and apologies again.
David Loring
!! Keep Music Live !!
|
|
|
|
|
No problem! It happens to the best of us!
Dave Kreskowiak
Microsoft MVP
Visual Developer - Visual Basic 2006, 2007
|
|
|
|
|
I would appreciate any strategy that would allow me to locate a string within an rtf document and identify what printed page it would be on.
I am trying to programmatically fill in page numbers for a Table Of Contents within the document.
Thank you,
Brad
|
|
|
|
|
That depends on alot of things -
The font used for the text, the dpi of the printing context, the printable area of the printing context, the line height of the text.. there's no straightforward way to do it.
The best way I've found to do it is to actually execute a print on the document and count how many times OnPrintPage is called and the character indices at which the print boundaries get determined.
|
|
|
|
|
Hi! does anyone know the easiest way to send email using :-Dvisual basic 2005 (I searched the web and found many vb .net codings but it does not seem to work), and I don't know what is a localhost that much and if I have to use it can I use yahoo or Google as a localhost?
ps.
pls don't give me links to other web sites because I have already been through a million.
~thanks in advance~
|
|
|
|