|
hi all,
as per my projects needs i am using checklistbox. now the requirement is to multiselect the items of checklistbox with shift or control key pressed, which is not possible with this control.
now i try to use the datagridview control as checklistbox.
- i hide the column header and row header
- the first column is datagridviewcheckboxcolumn
- the second column is datagridviewtextboxcolumn
for MOUSE handling
- i write my code on datagridview_cellclick event (that works perfectly as per need)
for KEYBOARED handling
- i write the same code on datagridview_cellvaluechanged event ( their the problem is )
when i check the checkbox, i need to change the other controls value accordingly. but the event fires when selection changed.
- i also try datagridview_selectionchange event but in that case i have to change the selection to get the values get change
does some one have any kind of idea to solve that problem.
thanks in advance
help everyone
|
|
|
|
|
I have been creating a custom control the base of which is an Panel and consists of a collection of Buttons.
The problem I am experiencing is when I try to add a button to the Button Collection, of the control, in the Form designer, an "Error creating window handle" error is generated.
If I add the button in code in the form Load event the button is added with no errors.
The offending code, which is appart of my Button class, is as follows :-
Protected Overrides Sub WndProc(ByRef m As Message)<br />
MyBase.WndProc(m)<br />
End Sub
On investigation the values of m are :-
LParam : 0
Msg : 133
Result : 0
WParam : 1
Steve Jowett
-------------------------
Sometimes a man who deserves to be looked down upon because he is a fool, is only despised only because he is an 'I.T. Consultant'
|
|
|
|
|
Strange one this, but I have resolved the problem. I say I resolved it; what I have done is Restarted my PC and hay-presto it's working as expected.
Steve Jowett
-------------------------
Sometimes a man who deserves to be looked down upon because he is a fool, is only despised only because he is an 'I.T. Consultant'
|
|
|
|
|
Hello,
my problem is: in my environment several EXCEL applications are running. I have to pick one specific application ( I have to check the application if it is the correct one).
EApp = Ctype(Marshal.GetActiveObject("Excel.Application"), Excel.Application)
returns only the first registered process with the correct name (and of course "my" application is usually not the first one). I need something like
"
Dim P() as Process = Process.GetProcessByName("Excel")
For i as integer = 0 To P.GetUpperBound(0)
EApp = Ctype(Marshal.GetActiveObject(P.ID), Excel.Application)
' application check here
Next
"
to find the second, third etc. application also.
Is there any idea?
Thank you
Carsten
|
|
|
|
|
Hi
I am having some issues with installation / deployment of a vb.net project, which are because of some OCM & Activex components
- I had originally made most of the application in vb6
- Then we converted the codes to vb.2005 express
- Then some more development was done
- Now the issue is that when we try to install the application on a client’s machine (which dose not have VB6 installed), the application dose not work
- After investing some time we found out that the issue is due to non availability of vb6 COM & Activex components
How do we add the reference of these COM component to the setup and export the DLL’s with it
Regards
Nishkarsh
-- modified at 6:09 Tuesday 13th November, 2007
|
|
|
|
|
Just add assembly in your setup project and register it on relative path. Hope this works
Regards
Pankaj Joshi
|
|
|
|
|
How can I access the registry location 'HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrnetVersion\App Paths'. I have a application loaded and the exe name is 'mspview.exe'. I want to find out the location of the exe where it has been loaded. so I need to access the registry path -'HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrnetVersion\App Paths\mspview.exe'. If this key exists then that means the application has been loaded in the system. And if the application has been loaded then I want to find the subkey 'Path' from which I can get the location where it has been loaded. Please Help
Thanks in advance.
Sekhar
|
|
|
|
|
It always makes me laugh when the first google hit is an article on code project
http://www.google.com.au/search?sourceid=navclient&ie=UTF-8&rlz=1T4ADBS_enAU225AU226&q=vb%2enet+registry[^]
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
How can I speed up the drop down of a combo box inside a datagridview column. when I click on the drop down button to open up the list in the combobox type column of the datagridview, it takes 2-3 seconds to drop down. Can anybody suggest what might be the problem ?
Thanks in Advance.
Sekhar
|
|
|
|
|
Too many items ?
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
I have a datagridview control in which i have got a column of type DataGridViewComboBoxColumn. I populate this column's combo when I load the form. But while running if i click on the column's drop down button, so that I can view the list of data in the combobox of the column, it takes 2-3 seconds to show me the list. How can I speed up this drop down of the list so that I can make the application faster.
Thanks in Advance.
Sekhar
|
|
|
|
|
Hi all
Now a can read text file line by line its come like this
in text box
2000121212 John 1980-02-01
but i want to insert them in table in three column
col1 =customerid , col2 = name , col3 = berth date
-- modified at 6:00 Tuesday 13th November, 2007
|
|
|
|
|
If it comes like that, odds are you want to read it as XML. Odd that the XML is not better formed. Looks like you want to use the string.Split method and either split on tab, or if that's lots of spaces, just get the items in the array that are not blank.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Dear:Christian Graus
that file its come in text file like report that contents introduction about report then line of column name then data like this
1Report : SIBP5000 date 2007/11/10
-------------------------------------------------------------------------
iduser Name Created Exp Dte
-------------------------------------------------------------------------
2111001100 john 2007/08/08 2008/08/08
2111000000 scot 2007/08/08 2008/08/08
2555555500 jany 2007/08/08 2008/08/08
2113333100 john 2007/05/08 2008/05/08
i want to do a programm by using VB.net that let me read this report and store
them in table content thats data only >>>>
so i use readstream mouthed to read this data line by line
Q: how to split that line so i can but data in table?
Q2:how to insert them in table?
|
|
|
|
|
1 - the split method on the string class
2 - depends, what sort of table ? The web abounds with examples on how to connect to the various databases that exist.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Can you give me examples about split method in this line
200041511 john 1899/02/02
how to split 9 digit for idno then after 9 digit split 15 digit for name then after 9+15=24 split 10 digit for berth date ?
|
|
|
|
|
I have written a Windows Service in VB.NET 2005 for the purpose of logging data from a nursecall system. The data is written to a SQL database. It is important to know when logging has started and stopped and this is done by writing an entry to the database each time one of these events occurs. This is happening now when the service starts automatically on system startup. The 'stop' entry is even written in the event that the service is stopped manual (not something that would normally be done).
However, if the system is closed down, the OnStop sub is not being executed.
It looks like I need to detect a System Shutting Down event from within my code and then execute Me.Stop, forcing the OnStop sub to execute.
Can anyone help in suggesting how to detect that a system has commenced shutting down?
|
|
|
|
|
|
How to Write Text in currently opened cmd window?
I am using writeConsole function. What Handle i have to give as a parameter.....
Jothi Murugeswaran.S
|
|
|
|
|
i have the following string that i have passed to notepad
Private Sub PrintNotepad()
Dim MySecurity As New MajiDll.Security
Dim strCode As String
Dim myNum As Integer
strCode = strCode & " NYERI WATER AND SEWERAGE COMPANY LIMITED {ENTER}"
strCode = strCode & " P.O Box 1520 {ENTER}"
strCode = strCode & " TEL 2034548,2034617,2034623{ENTER 2}"
strCode = strCode & " DATE : " & Format(Date, "dd-mm-yy") & "{ENTER}"
strCode = strCode & " TIME : " & Format(Time, "hh:mm:ss") & "{ENTER}"
strCode = strCode & " NAME: " & lblname.Text & "{ENTER}"
strCode = strCode & " ACCOUNT NUMBER: " & txtAccNo & "{ENTER}"
strCode = strCode & " PAYMENT FOR : " & cboFundType & "{ENTER}"
strCode = strCode & " AMOUNT RECEIVED : " & txtAmntReceived & "{ENTER}"
strCode = strCode & " AMOUNT CHARGED : " & txtAmountApply & "{ENTER}"
strCode = strCode & " CHANGE : " & lblbal & "{ENTER}"
strCode = strCode & " The Sum of Kshs: " & MySecurity.numConverter(txtAmountApply, "Shillings") & ""
Shell "Notepad.exe", vbNormalFocus
SendKeys strCode, True
End Sub
Could some one out there help me in printing it directly to a printer as it first opens the notepad then u have to click print for it to print
briogene
|
|
|
|
|
Email me on
code {at} osdirect dot com dot au
and I will send you over a class that will help with the printing...
Cam
|
|
|
|
|
briogene wrote: SendKeys strCode, True
After this can't you send the Ctrl and P keys to execute the print command.
hope it help !
AliAmjad(MCP)
First make it Run THEN make it Run Fast!
|
|
|
|
|
Hi,
I want to change language of the system thru VB code?can any one give me some idea how to do this?
thanx in advance.....
birajendu
CyberG India
Delhi
India
|
|
|
|
|
How can i create a vpn connection using code of vb.net??????????
What changes should be done in settings of computer?
Any idea would be appreciated
|
|
|
|
|
Hi all,
Please give me some guidance to solve this problem
Thanks with anticipation
|
|
|
|