|
Two questions:
1. I want to allow a “user” to be able to change the text, backcolor, and forecolor of a ToolStripButton, ToolStripSplitButton. or a ToolStripTextbox. How do I allow the user to do this? The settings don’t persist when I close the application as they do when I drag a botton or textbox onto the form itself and then make changes to the control.
2. I want to use a property grid to display only the properties I have set up in Applications Settings for each control. How do I accomplish this? All the properties for the control show up on the property grid, not just the properties I’ve set up in the Application Settings.
I’m not a professional programmer. I do this for fun!! The examples I’ve seen don’t really explain much and some of them simply don’t work at all.
Thanks,
I’mRetired
kb4oxr@hotmail.com
Bruce
kb4zq@hotmail.com
|
|
|
|
|
You could always have some file to save the information, reload it when the user runs the form again...
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
i have a number of child forms within a parent mdi
now i want access current child form from the mdi form.
i have created one prototype for the child form and then declared an array of forms in mdi's Load event and loaded them in a mdi menu's click event
|
|
|
|
|
Hi,
Dim CurrentChild As Form = Me.ActiveMDIChild
hope this helps
|
|
|
|
|
Hi,
thanks for ur help
but i have one more problem
i have 2 forms, frmtools and frmpad
i have created 10 instances of frmpad and loaded them on mdi's load event
now i want to do the required operations only if the CurrentChild is any of the instances of frmpad. if the CurrentChild is frmtools then nothing should happen
for that i have set the tag property of frmpad to "yes" and the tag property of frmtools to "no" and written the following:
if Me.ActiveMDIChild.tag = "yes" then dim a as frmpad = me.ActiveMDIChild
it works also.
but, i don't know the use of tag property. will there be any problems due to the change of tag property or there any other way to achieve this.
|
|
|
|
|
if u take mdi form then for child control u can take a contextmenustrip in tooltip. then the form .then u write the name. and double click and write
dim frm as new formname
frm.showdialog
this is the only coding
|
|
|
|
|
i can't understand u. will u be more descriptive
and one important thing is i am new to vb.net
|
|
|
|
|
I got this exception while i was deploying my Visual Basic.Net
project which reads as follows:
1)Could not copy temporary files to output directory
2)The file(file Name)cannot be copied to the run directory. The process cannot access the file because it is being used by another process.\
How do i solve this problem
|
|
|
|
|
Is your app still running from a previous launch?? Check in the Task Manager for you .EXE's name.
|
|
|
|
|
I want to display data in DataGrid according to groups (for eg.: Project Code -> Item Code -> Parts Detail). First display Project Code and then display Item Code which are comes under that project code(from next line) and then Items details for those items belongs to that Item Code.
Praveen
|
|
|
|
|
can anybody help me with:
set cursor and get cursor routines in VB.net
single click and double click routines in VB.net
regards.
FARAH
|
|
|
|
|
There isn't anyone on this earth who can answer this "question". Routines to do WHAT??
Are you looking to change the look of the mouse pointer?? Move the mouse pointer from your code?? Are you trying to handle the single-click of a control in your app?? Are you trying to send a "Click" to a control is your app?? Another app?? ...?? ...?? ...?? ...?? ...?? ...??
If you ask a question in less than 150 words, I guarantee you've left out details critical to answering your question correctly.
|
|
|
|
|
Dave Kreskowiak wrote: There isn't anyone on this earth who can answer this "question". Routines to do WHAT??
Dave Kreskowiak wrote: If you ask a question in less than 150 words, I guarantee you've left out details critical to answering your question correctly.
Excellent pearl of wisdom there
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
Thank you! I'm thinking of making it part of my sig.
|
|
|
|
|
Why not? It sounds like a good one
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
If you right-click on a file in Windows Explorer, a menu pops out with functions like Copy To, Scan With etc.. How can i add my own option like Copy With <programname> and then, when the user clicks it, it opens my program with the name of the file in a variable. How can I accomplish this?
--Zaegra--
|
|
|
|
|
Search google or codeproject for Shell Extensions
Also you may use registry keys if you only want your program to handle some known types of files.
|
|
|
|
|
Hi everyone,
I was wondering how you all went about connecting to your databases from a security point of view. Some people say to use the SA password and embed security in your app with internal usernames/passwords, while others use Windows Security.
I think the SA password idea sounds simplier, and has the advantage of being able to limit what data the user gets to (eg: which clients information they can see) HOWEVER it doesn't stop someone using the password with MS Access to bypass your app and get the data.
So I was thinking the integrated security is best, and like any security, the use of groups would be best. My issue then becomes how to use those groups in SQL / VB.NET to enforce security, especially how would I enforce record level security (eg: which clients information they can see)
Thoughts everyone ??
|
|
|
|
|
Mark Cabbage wrote: Some people say to use the SA password
Did you beat these people about the face and neck for doing something so ridiculously stupid?? Really, why would you give an application GOD rights to the ENTIRE SQL Server??
Mark Cabbage wrote: I think the SA password idea sounds simplier,
And would get you fired, on the spot, in any real job. Who cares what the advantages are at that point...
Mark Cabbage wrote: the advantage of being able to limit what data the user gets to
You would normally create several different user accounts in the database that the application uses appropriately. These user accounts would then get various permissions assigned to them in SQL Security, depending on the role of that user. Say there was a user created that was used only look at the data in a couple of tables. This user would get permissions to execute SELECT queries on just those tables. Anything it tried to do would be denied by SQL Server.
Seriously, this is such a big topic, no one, or ten, forums posts is going to cover what your options are, and there is no one option that is best for every situation. Pick up a book on SQL Server and you'll find a couple of chapters on the subject. Pickup a book on SQL Server Security, and you'll find the entire book written on this very subject.
|
|
|
|
|
Hi Dave,
Thanks for your reply. Your response seemed to suggest on using limited SQL accounts if I read it correctly. Is there any reason you didn't mention Active Directory accounts and groups ??
I appreciate this topic is massive. I'd appreciate if you knew of any good resources (online or book based) that covered this topic well from all view points.
I need a balance between security and functionality. I really want to limit the customers a contractor can see to just them, and if I have numerous contractors it's too hard to use numerous hard coded accounts.
|
|
|
|
|
Mark Cabbage wrote: Is there any reason you didn't mention Active Directory accounts and groups
Possible, but a PITA to administer. Imagine a company with 10,000 users...
Mark Cabbage wrote: I really want to limit the customers a contractor can see to just them,
There's a couple of ways of doing this. Either your app checks a directory group for membership in some kind of "Contrator" group, or if SQL Windows Integrated security is turned on, SQL Server security can be setup to use that group instead of an SQL User Account.
Any of the SQL Server Security books would cover this. Just go to Amazon and search for "SQL Server Security". Believe it or not, the SQL Server Programming books don't get into this stuff very deep at all.
|
|
|
|
|
Dave Kreskowiak wrote: you didn't mention Active Directory accounts and groups
Possible, but a PITA to administer. Imagine a company with 10,000 users...
I sure wouldn't want to do that. 10,000+ users, yikes
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
I have! 30,000 desktops and 300,000+ users.
Imagine making just one little mistake where noone can login!
|
|
|
|
|
Dave Kreskowiak wrote: Imagine making just one little mistake where noone can login!
Yep. That'd be a big oops for the day :->
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
I know, from first hand experience. Whoops! :->
|
|
|
|