|
Thanks to both of you. I tried out the logic and it worked!
Thanks again
Lost in the vast sea of .NET
|
|
|
|
|
Im using a grid box that has a date and time format in one of the Columns
Im trying to archive a populate
Using vb.net
I placed a grid box on the form
Then I placed 2 textboxes 1 combo box 2 date pickers
I did a data bind so that when I click on a row the combo box shows the record number (pk) Item no of that row clicked
Below that are the
Name (Text box)
Description (text box)
Start date (date pickers)
End Date (date(picker)
How do I populate the name , desc, stdate , endate fields by just using the Item.index of the combo box then just changing the field to update (Which I Know how to do)
Please assist me wilt the population I really think it is difficult because of the date time picker
|
|
|
|
|
Hi all
anyone can help me Please
i have some problem to transfer data from vb application to excel file
textbox value into excel cell. i open excel file by using shell command but after open file how to add data from vb application to excell without delete or replace previouse data.
here is shell coding.
Dim Book1 As String
Dim Directory As String
Dim Program As String
Directory = Book1
Program = "C:\Program Files\Microsoft Office\Office11\Excel.exe "
Book1 = (Directory & "\Export")
Shell (Program & Book1)
Thanks for advance
___________
Khan786
-- modified at 6:56 Thursday 21st June, 2007
|
|
|
|
|
The shell command is useless. You need to use the visual studio tools for office to control Excel from yuor code.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
|
|
Thanx Vinod
i hope that it will solved
|
|
|
|
|
Hi folks,
How do I change my application settings so that they are displayed properly as per the resolution. For example, I design an application with a 1024 x 768 resolution and then port my application to a system having 1280 x 1024 resolution. My application occupies the top left corner of the screen without getting maximized as per the current resolution.
You get the picture and now give me your resolution
Vinod
|
|
|
|
|
|
thanx. But by your answer it implies that I would not be able to do it in .NET 1.1. I thought there was some code snippet which could have given me some idea. Anyway Thanks once again.
|
|
|
|
|
You can do it in 1.1, it's just some of the controls I metioned arn't avalible (specificly the layout controls). You can still use Anchor, Dock and SplitContainer.
|
|
|
|
|
1.1 also has the anchor and dock properties.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
It also has the Split Container
|
|
|
|
|
I use this to set the form size to a % of the screen size. It does not resize the objects but if you design your form with dock, anchor etc it works fine
Public Shared Sub SetFormSize(ByVal oForm As Form, ByVal nFactor As Decimal)
Try
Dim r As Rectangle = Screen.GetWorkingArea(oForm.Location)
oForm.Top = r.Height * nFactor
oForm.Left = r.Width * nFactor
oForm.Height = r.Height - (r.Height * (nFactor * 2))
oForm.Width = r.Width - (r.Width * (nFactor * 2))
Catch Exc As Exception
Throw Exc
End Try
End Sub
called by
clsUIUtils.SetFormSize(Me, 0.01)
Mark
Coding for the mobile goal posts
|
|
|
|
|
What i have to do to be able to sell my applications? i make an application an sell to example (Bank) is that illegal? Please answer...
|
|
|
|
|
Nobody is stopping you. You can certainly create an application in VB.Net and sell it.
|
|
|
|
|
Why would anyone stop you ? Even if you use the free versions, your code is your intellectual property and you can sell it if you like.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
1) You have to develop the software yourself .
2) All Components and Design must be your creativity .
3) All third party components used must have enough permission from the owner.
that's it for you, hope you make a good selling out of it.
Develop2Program & Program2Develop
|
|
|
|
|
|
i need help on how to set up a timetable and the free time a on a day the teacher have referring to the timetable. can i do this using VB.NET. pls help
|
|
|
|
|
You're doing a bad job of describing your homework. I hope you do a better job of doing it, or you will fail. We offer advice to people stuck with specific tasks, we don't do people's projects for them.
It's not even clear what sort of app you want to write. Of course it's possible with VB.NET.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
|
My question is based on database record locking .
Like , can i lock the record after clicking the edit button.
This requirement occured due to the reason when more then one user to trying to modify the same record.
|
|
|
|
|
You can store in the database that a record is locked, using your own table design. There's nothing built in AFAIK.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
That means , if I am having 10 client users , then I need to keep track on all the user names , and to note down , which one has opened the record for editing purpose ??? Is there any other way out?
I think it will become very complicated.
|
|
|
|