|
Sorry but i didnt got you this time .
obarahmeh wrote: I need to read from a folder which is already known before and fill the contents of that folder in the ComboBox.
Thats what i have told you. Read the folder contents using the Files collection and populate the combo with file names.
If i havent got ur point still, please explain giving an example of from where to pick file names and what information will come from form ,etc....
"A good programmer is someone who looks both ways before crossing a one-way street." -- Doug Linder
Anant Y. Kulkarni
|
|
|
|
|
|
Please guide me in the following scenario
I am developing c#/VB application using Visual Studio 2005. I want that when the user executes my application then:
1- The window should create a new Virtual desktop using MSVD.
2- My application should run in the new desktop. Only my application should be allowed to run.
3- I should have the options to modify the start menu in the new virtual desktop
4- When user close application the virtual desktop should shutdown
How can I achieve this?
I will be very thankful.
-- modified at 1:56 Tuesday 8th August, 2006
|
|
|
|
|
Hi all,
Im doing a project in VB.Net and im drawing the lines and rectangle on mouse down event of a label or picture box. And im checking it for redraw..
My question is, Which is the the best way?
1. Loading the image(with cross lines with same text as before) at runtime after clicking the label control or picture box dynamically.
2. Drawing a cross lines on the label or picture box on mouse down..
Which performance will be better, I found that when the form get restored it took some time to load when i use drawing.
Please guide me as its very urgent.
Regards
Mukil
|
|
|
|
|
You need to ditch the picture box, handle the Paint event, and draw the lines direct onto the screen.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
Thank you very much for your reply.
|
|
|
|
|
Hi, in Ms. access I have one table call tblName which contain two fields: ID and Name. Then I design one form and now think about the control that could help me to produce a dynamic column based on the record in the table. For example, if my table have two record:
ID Name
001 Smith
002 Janny
Then when the form load the control will display
Smith Janny as the collumn header. Then tomrrow when user add 2 more record to:
ID Name
001 Smith
002 Janny
003 Vibol
004 Smey
Then when I load the form, the column should dynamic to create below:
Smith Janny Vibol Smey
Does any one know how to do that and which control that should I used in Ms access form.
|
|
|
|
|
Hi, in my access database I already one table name tblCustomer which store the customer name and other information. Now I have design a form and place a combo box on the form. My purpose it when user type any character in the combobox, the relate query name from table display as the drop down list of combobox. As real example, i prefer the way that its list like the "To:" box in yahoo or gmail message.
|
|
|
|
|
Hi, I used Microsoft Access XP to store my data. Now I have create a user account in my database and assign the password for it. When I access to the database it always prompt me to type user name and password. I have successfull logon to my database in Ms access and now I need to write the code in VBA to get the current user logon name to display on a label on the form. Does any people know how to get the current login name in access database using VBA code?
|
|
|
|
|
Who wants to compile a small program for me in VB 6.0 (or earlier version).
In VB2005 you cannot compile to Win32.
==========
dim loCertCryptCOM as New ccomcryptlib.ccrypt
dim lstrhash as string
dim lstrcert as string
dim lstrerr as string
open "hash.txt" for input as #1
input #1, txttext
close #1
open "key.txt" for input as #1
input #1, txtcert
close #1
locertcryptcom.createhash txttext, txtcert, lstrhash, lstrcert, lstrerr
open "sign.txt" for output as #1
print #1, lstrhash
close #1
open "cert.txt" for output as #1
print #1, lstrcert
close #1
close()
|
|
|
|
|
Good luck with this. I haven't used VB6 in about 6 years now. Also, without that library your referencing in the first line, noone can compile the app anyway.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
Dave Kreskowiak wrote: Also, without that library your referencing in the first line, noone can compile the app anyway.
I can send the library.
|
|
|
|
|
So? I can't compile it because I haven't used VB6 in 6 years now...
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
If you do the follwing in VB6
<br />
Dim myVar as Boolean<br />
myVar = True<br />
<br />
Debug.Print myVar<br />
you'll see a 'True' in the debug window, but only on an english system, the string is actualy language dependent.
My problem now is that I need to read a text file that was written with VB6 with C++.
Therefore I need a list of the languages VB6 was shipped and the used strings to represent the value of a Boolean.
Thanks
|
|
|
|
|
VB6 was probably shipped in about 15 different languages, give or take. I don't know what those were and there is no longer a compiled list since VB6 support came to an end.
You're best bet on finding out what those words were would probably be asking the user in an Options dialog you create for your app. You could probably get away with supplying a default set of values for True, translated into various languages by hand.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
I think this is actually a combination programming/hardware question but I'm trying to set up a normal SPST type switch to execute a keypress combination (ie, CTRL+BREAK, ALT+F4, etc.). Having come into programming "later in the game" I don't have any experience with serial programming which I believe would be the best option for this. Basically I need to know which pins to solder to the switch and if any input voltage is necessary, and how I am to use Mscomm (I suppose) to perform what I want. Thanks for all your help in advance.
-- modified at 15:19 Monday 7th August, 2006
I apologize I meant to be more specific on the part of wanting to use the D-type 9 pin connection as I know serial is actually a general term.
|
|
|
|
|
The usual port being used for stuff like this is the parallel port, not the serial port. There are many example using the parallel port on the 'Net. All you have to do is Google for "parallel port LED Switch" for examples.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
|
I said the "usual" port to use is the parallel port. I didn't say it couldn't be done with the serial port. I said this because, given the low number of pins in the serial port that you can actually control and use for this, the parallel port gives you much more scalability and flexibility.
-- modified at 20:17 Tuesday 8th August, 2006
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
Hi, I am creating a GUI to a database, I would like to know when I click a button to open a new database, all open MDI children relating to the old database that are open are closed without closing the parent form.
I stored the name of the parent form into a module and tried this, but it only closes one, if there are more than one it does not work.
ParentName.mdif.ActiveMdiChild.Close()
Any suggestions are greatfully appreciated.
John
|
|
|
|
|
I managed to get it done, I pasted the code underneath incase someone else has a similar problem.
John
Dim form As System.Windows.Forms.Form
For Each form In Me.MdiChildren
form.Close()
Next form
|
|
|
|
|
Hello,
i have a Windows Form that displays a DataSet created at run-time whitin an object i derived from DataGrid.
The user can modify datagrid's cells.
When the user clicks on a "Save" button an INSERT SQL query is created by iterating the rows of the associated DataSet.
The problem is that i cannot keep the DataSet updated with user's changes.
I've thought that databinding DataGrid's derived control with his DataSet property could have worked but i'm confused about how to do it.
Any hints?
Do i have to use a CurrencyManager or something like
"Me.DataBindings.Add("SetDati", Me.SetDati.DefaultViewManager, tabName)"?
Why does BindingContext is associated with Form?
Note that i want to use the control in two ways:
1. Create dataset -> Display dataset -> Get user changes -> Save changes to database
2. Load query into dataset -> Display dataset -> Get user changes -> Save changes to database
Here is the control code:
Public Class SQLDB_Viewer
Inherits System.Windows.Forms.DataGrid
Private odbConn As OleDbConnection
Private odbAdapter As OleDbDataAdapter
Private dsSetdati As DataSet
Private tabName As String
Private selCom As String
Private dbPath As String
Private connString As String
ReadOnly Property SetDati() As DataSet
Get
Return dsSetdati
End Get
End Property
Public Sub New(ByVal db_path As String, ByVal selCommand As String, ByVal table_name As String)
MyBase.New()
connString = "Provider=Microsoft.Jet.OLEDB.4.0;" & "Data Source=" & db_path
selCom = selCommand
dbPath = db_path
tabName = table_name
odbConn = New OleDbConnection(connString)
odbConn.Open()
odbAdapter = New OleDbDataAdapter(selCom, odbConn)
odbAdapter.TableMappings.Add("Table", tabName)
dsSetdati = New DataSet
odbAdapter.Fill(dsSetdati, tabName)
dsSetdati.Tables(tabName).DefaultView.AllowDelete = False
dsSetdati.Tables(tabName).DefaultView.AllowNew = False
dsSetdati.Tables(tabName).DefaultView.AllowEdit = True
Me.DataSource = Me.SetDati.Tables(tabName).DefaultView
odbConn.Close()
End Sub
...
End Class
Thanks a lot
|
|
|
|
|
OK, the keyword was "parameters" to use in a custom insert query.
Bye
|
|
|
|
|
Hi, I am not really sure how to implement this, but I need to do it, and it has to be performant.
What is the most performant way to access the cache from a classlibrary ?
Can you give me some links ?
I have to do it for monday and I have not a clear idea on how to make it
Anyway, thanks in advance!
PS: I don't know if it might help, but it's a class library that receives calls and sessions from a web app and has to manage them and do things with the cache.
|
|
|
|
|
Hi, everything I've read seems to tell me the following code should work.. even the MSDN example seems to suggest this. I'm new to .NET and I've been trying to get this working for several days, does anyone have any idea why this doesn't work? I'm getting "Cross-thread operation not valid: Control 'Form1' accessed from a thread other than the thread it was created on." at ' Me.Text = "TEST" '
---------------------------------------------------
Imports System.Threading
Public Class Form1
Delegate Sub TEST()
Private TESTING As TEST
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim ThreadBAH As New Thread(AddressOf DoCallBack)
Me.TESTING = New TEST(AddressOf Me.TakeArgs)
ThreadBAH.Start()
End Sub
Private Sub DoCallBack()
Me.TESTING()
End Sub
Private Sub TakeArgs()
Me.Text = "TEST"
End Sub
End Class
---------------------------------------------
All help appreciated.
---
Assimilating Knowledge
|
|
|
|