|
|
|
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.
|
|
|
|
|
I was part of a project that ran for four years, which involved multiple users accessing documents in a database. In that time, no-one on that team was able to suggest any way of automatically locking records on a database, we didn't bother doing it ourselves, but we discussed the problem from time to time.
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 seems standard practice is to include Modified field in your tables that holds last timestamp of the last modification of that record. When you go to get data from the database, you also make sure you grab the Modified field for your records. During the UPDATE, your SQL statement must match the recordID AND Modified time that you fetched. If the modified time doesn't match, the record has been modified by someone else while you were looking. The update will, of course, fail. This will mean that there is a concurrency violation and you'll have to handle this condition as you see fit.
|
|
|
|
|
Optimistic locking[^] would ensure that users cannot overwrite changes made by other users.
SQL-Server supports "Pessimistic locking" by allowing you to specify a "holdlock" hint on the select statement - within a transaction that spans the user's edit session. Only one person can hold the record-level lock at a time. However this approach can hurt database performance because (unless you use the fancy new snapshot isolation levels under SQL-Server 2005) any users selecting on the table will be blocked.
|
|
|
|