|
objWord.visible = False ' This line of code fixes the error
Oops this should not be there, ignore it, I've now removed it from the code.
If the temp doc is saved in rtf then all is ok, but if I save it as a word doc then it is saved but loses all it's formating
I'm thinking of just saving docs as rtf or plain text I think it's quicker.
Or maybe saving in my own format *.qwt can this be done?
|
|
|
|
|
Hi,
I'm using VB.NET 2005 Express, and I want to create a price break DataGrid having three columns, with an unknown number of rows.
In column 0, I want "From"
In column 1, I want "To"
In column 2, I want "Price"
That bit is easy enough.
The complicated bit, for me, is applying a min and max to the "From" and "To" cells. So, for example, if the user has entered ...
From|To|Price
1|9|5.00
... on the first row, when the user comes to add the next row, I want the "From" cell on the new row to only accept a value greater than 9, so the table may look like ...
From|To|Price
1|9|5.00
10|20|4.50
Any help would be greatly appreciated.
|
|
|
|
|
You can use the DataGridView1_CellValidated method to validate your numbers.
In this method use code such as the following to accomplish the validating:
If Me.DataGridView1.Rows(Me.DataGridView1.CurrentRow.Index).Cells(0).Value < 9 Then
'handle error
End If
-- modified at 11:04 Wednesday 17th January, 2007
|
|
|
|
|
I package my program, installed it and now when i am running it,
I is giving me this error: File or assembly name Interop.SQLMO, or one of its dependencies was not found.
The file SQLDMO is a dll file i had to add to my project. i also try adding the file to the application folder before a went a head a build the project...but still it is having a problem finding it..
have any of you guys came across an error of this sort, if so, what was the solution.. i realise that i am having this problem with all the dll files that i had added to my project...please help
I am behind time with this project, my boss needs it like last week...but i can't package for them to use...
thanks in advance...
Nab
|
|
|
|
|
|
Have you created a Setup project for you application? When I use the Setup wizard it scans the application project for dependencies and adds them to the setup project. When running the setup.exe it installs all the files needed to run your application.
|
|
|
|
|
Yes i have created a setup project for my application but not with the wizard, i am going to try using the wizard and see if it helps out better, because i am also using a twain device and it is missing that file also.. Question?.. when i use the wizard..how does it know which application to package?
Nab
|
|
|
|
|
When the solution is open click File | Add | New Project and select the Setup wizard. In the wizard I normally select Primary Ouput File. When the wizard finishes you can look in the Solution Explorer to verify it added you dependencies.
|
|
|
|
|
Ok thanks..i am going to try it now.. will let you know if i got through...on more thing..have u seen my post on Twain problem...I need help with finding a Twain software which is free or any other suggestions as to how to capture images from a scanner or a digital camera and save that picture to a file as well as a database..
Nab
|
|
|
|
|
Why not use an off-the-shelf program to accomplish this?
|
|
|
|
|
if i could i would...but this is a custom in house system for doing company business...which meams only data specify by the company i can use..but thanks anyway..
Nab
|
|
|
|
|
i have changed the menu on my main screen but it has not changed when i run the program still has old menu in the run main screen.
|
|
|
|
|
try changing the text for the main menu in the property field..if not..try rename the file itself..
Nab
|
|
|
|
|
How can I programmatically set focus to a cell in a DataGridView?
|
|
|
|
|
i have drawn a circle,
i want to have control on that circle?event?do action
anyhelp for that?
Regards
Ramy
|
|
|
|
|
charchabil03 wrote: want to have control on that circle
What do you mena by "control"? Do you want to convert that circle TO a control?? What are you looking to do with this?
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
What i want is that :
i have drawn a circle,after clicking on that cirle do action (ex:open an other form..)
Regards
Ramy
|
|
|
|
|
About all I can tell you at this poiont is to handle the click event of the control that you're painting the circle on. Anything other than that and you'll have to supply a lot more detail.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
i am trying to change the name of text boxes in vb.net as they are not in proper sequence 180 of them but it wont let me change name as invalid property textbox21 needs to be textbox40 and textbox40 needs to be textbox21 and so on any ideas
|
|
|
|
|
If I understand your question correctly, you are trying to change the name of a textbox to a name already in use.
If that is the case, change your naming convention: instead of naming them 'textbox1' through 'textbox180', use something like 'txtbox1' through 'txtbox180'.
Since these objects should not already exist, you won't have a problem.
Tim
|
|
|
|
|
kendo17 wrote: 180 of them
Well, your basic problem is that your UI sucks. Use a grid if you want a grid. Don't use 180 text boxes if they don't represent a grid.
The other problem is that your naming convention sucks, and that if you want to set the names of your controls, you should do it in the designer, or if you're dynamically creating them, you should put them where you want them in the first place.
Christian Graus - C++ MVP
'Why don't we jump on a fad that hasn't already been widely discredited ?' - Dilbert
|
|
|
|
|
I would bet you would be better off doing something like using an image of the seating chart as the background of the Form and handling the click event of the form. Get the mouse corrodinates to deterime which seat was clicked. You would have to do some math so you know how big the x and y range is for each seat but I bet you could figure if each seat is 10 X 10 points, for example, and your mouse click was at x y you could find which seat was clicked. I have never done this but that would be the first thing I look at.
|
|
|
|
|
how to beep an alert sound in vb.net?
i mean if an error occured beep a sound??
Regards
Ramy
|
|
|
|
|
Use the 'Beep' function.
Code sample from Help.
Dim I As Integer<br />
For I = 1 To 100 ' Loop 100 times.<br />
Beep ' Sound a tone.<br />
Next I<br />
|
|
|
|
|
thx...
and to change the Beep sound?
i should go to control pannel and modify the sound?
Regards
Ramy
|
|
|
|