|
Tanks for a lot of help
Thanks & Regards
Form :-
Vikash Yadav
|
|
|
|
|
well,
in my winform i have some datagrids and one these must have no scrollbars, i've to remove the scrollbars that automatically apeears...
how can i do this????
here the code
Dim hhh As Integer
For hhh = 0 To DataGridX.Controls.Count - 1
If DataGridX.Controls(hhh).GetType Is GetType(VScrollBar) Then
DataGridX.Controls(hhh).Visible = False
DataGridX.Controls(hhh).Width = 0
End If
If DataGridX.Controls(hhh).GetType Is GetType(HScrollBar) Then
DataGridX.Controls(hhh).Visible = False
DataGridX.Controls(hhh).Width = 0
End If
Next
where is my error????
thenk's a lot
|
|
|
|
|
i have a project in which i have added references to excel,system.web and vbide.
the project works fine,but when i copy the exe to desktop and run it from there,it does not work..it gives file not found exception..
y does this happen?
-- modified at 2:43 Wednesday 24th January, 2007
p.s.:this is the exact error i get:
An unhandled exception of type 'System.IO.FileNotFoundException' occurred in EM_MACSCAN.exe
Additional information: File or assembly name Interop.VBIDE, or one of its dependencies, was not found.
ik pair past mein,te dooja pair future mein.tabhi to aaj pe moot rahe hain.
|
|
|
|
|
never mind..i figured it out
ik pair past mein,te dooja pair future mein.tabhi to aaj pe moot rahe hain.
|
|
|
|
|
how to code a scrolling marque? using vb.net2005...
web links.. is also higly appreciated thank you...
start a new beginning in every ending; thats what life for......
|
|
|
|
|
Write your own control. Derive it from label. Use a timer, and every time it fires, increment the index of the first character you paint.
Christian Graus - C++ MVP
'Why don't we jump on a fad that hasn't already been widely discredited ?' - Dilbert
|
|
|
|
|
Hi,
I have two forms as form1 and form2.
I want to call form2 from form1 multiple time with different arguments. My question is if i supposed to call the form1 with already given argument, it should not open up as new form, it should activate the old form itself.
to be clear, form1 click to open form2 with arg value 1, and another click open form2 with arg value 2. now if i click form2 with argument value 1, then it should active the already opened form2 with argument value 1, not to open as new one.
Any help.
Regards
Rams.
Be simple and Be sample.
|
|
|
|
|
Hold the each form in collection with argument value and indentity.
when your open new form first u check in collection if exist then activate otherwiese create new form instance and show it with new argument.
Parwej Back...............DON of Developer.......
Parwej Ahamad
g_parwez@rediffmail.com
|
|
|
|
|
Respected Sir/Madam,
i have datagridview in my vb.net(winforms) application.
1st cell of each row contains button named as DELETE, I wnt to Delete that row whose delete button is clicked ....So will you pliz tell me how to delete specific row in my datagridview.
Thnanx
priya
|
|
|
|
|
yesss....i got it
dgvTaskList.Rows.Remove(dgvTaskList.Rows(e.RowIndex))
priya
|
|
|
|
|
In What event have you placed that code?
|
|
|
|
|
priya_p233 wrote: dgvTaskList.Rows.Remove(dgvTaskList.Rows(e.RowIndex))
What kind of event argumnent is e?
|
|
|
|
|
I need to logoff a systme by running the script. As per my Knowledge the user32.dll library should be included in the Script and it funciton exitwindow sholud be called with unflag value set to zero.But i saw similar code in Visual Basic code from the site VBnet.com . Please help me out to do same thing with vbscript.
Praveen
|
|
|
|
|
VBScript cannot do this like the code you've seen. It has no facility to make calls into the Win32 API like in your example.
It can, however, use WMI to do the same this using the Win32_OperatingSystem[^] class.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
Hi.
I've created my own print preview using PrintPreview Control . I do have a print dialog being called but now need to know how to allow the printdocument to print Page FROM [] to [] etc. bascially all the options in the PRINT RANGE section of the print dialog etc. i have managed to creat a select case to detect what options are set by user ..but i dont know what comes next to make sure the PRINTPAGE event prints the selected pages , Selection or all etc. at the moment even if i select page FROM & TO its still prints all pages out.
Thankyou.
Robbo
|
|
|
|
|
Private Declare Function SystemParametersInfo _
Lib "user32" Alias "SystemParametersInfoA" _
(ByVal uiAction As Integer, _
ByVal uiParam As Integer, _
ByRef pvParam As String, _
ByVal fWInIni As Integer) As Integer
Private Const SPI_GETSCREENSAVERRUNNING As Integer = &H72
Private Const DESKTOP_READOBJECTS As Integer = &H1
Private Const DESKTOP_CREATEWINDOW As Integer = &H2
Private Const DESKTOP_CREATEMENU As Integer = &H4
Private Const DESKTOP_HOOKCONTROL As Integer = &H8
Private Const DESKTOP_JOURNALRECORD As Integer = &H10
Private Const DESKTOP_JOURNALPLAYBACK As Integer = &H20
Private Const DESKTOP_ENUMERATE As Integer = &H40
Private Const DESKTOP_WRITEOBJECTS As Integer = &H80
Private Const DESKTOP_SWITCHDESKTOP As Integer = &H100
p_lngRtn = SystemParametersInfo(uiAction:=SPI_GETSCREENSAVERRUNNING, _
uiParam:=0&, _
pvParam:=p_lngScreenSaver, _
fWInIni:=0&)
Last 2 weeks back i posted one question, that is "To Determine whether Workstation is locked or not",Mr. Dave gave this code to me.This is perfectly shows the Workstation locked status. I changed Integer instead of Long.
The Above Code is Working fine in VB6.0 and in VB.NET is partially Working, because when the screen saver comes it throws an "Object reference is not set to an instance of an object" error . Plz guide me.
Thanks & Regards
Kumaran
|
|
|
|
|
It doesn't tell you if the workstation is locked. It'll tell you if the screen saver is running though. Those are two very different states. A workstation can be locked, but the screen saver is not running.
You've got the declaration for the function wrong. It should be:
Private Declare Function SystemParametersInfo Lib "user32" _
Alias "SystemParametersInfoA" _
(ByVal uiAction As Integer, _
ByVal uiParam As Integer, _
ByRef pvParam As Integer, _
ByVal fWInIni As Integer) As Integer
.
.
.
Dim rc As Integer
Dim scrnSaverStatus As Integer
rc = SystemParametersInfo(SPI_GETSCREENSAVERRUNNING, 0, scrnSaverStatus, 0)
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
hi.
where is it best to store temporary variables such as last submitted invoice number which i can read and then increment for next invoice number etc.
is it ok to store in xml or should it be in a Database ???. thanks.
Robbo
|
|
|
|
|
What do you mean by temporary ? If you mean stuff that needs to persist between sessions, I'd use the properties support, or a config file. I'd never use a database.
Christian Graus - C++ MVP
'Why don't we jump on a fad that hasn't already been widely discredited ?' - Dilbert
|
|
|
|
|
I tend to use the database since it just prevents so many problems.
|
|
|
|
|
Really ? What problems does it prevent ? You have a table which contains one row, each column representing a temporary variable ? Or, you have a table with 2 columns, and each row stores a name and value ? Or something else ?
Christian Graus - C++ MVP
'Why don't we jump on a fad that hasn't already been widely discredited ?' - Dilbert
|
|
|
|
|
Hi guys. thanks for replying.
basically all i want to do is like i said which is store the last submitted invoice NUMBER USED. somewhere which i can read for the next invoice NUMBER and increment it. at the moment i have it working using registry. my app does use xml files for app config settings etc and was looking to do it a better way either by XML or Database. perhaps you can tell me what is best in terms of proper practise for an APP i guess.
Thanks
Robbo
|
|
|
|
|
It depends entirely. If you already have a database, and you don't have any other config file, then I guess you could consider it. But, overall, a database is for storing data. This is not data, it's config information.
If the invoice number is just a number that increments, you could get it from the DB by doing a select MAX(invoicenumber). But, otherwise, a config file or the registry is the way to go IMO
Christian Graus - C++ MVP
'Why don't we jump on a fad that hasn't already been widely discredited ?' - Dilbert
|
|
|
|
|
Chris. Your an abosolute champion.
i think after reading what you said i don't neccessarily need to store such information if i can get my app to read last invnum field in INVOICE table using the select MAX you said right. im guessing i can just add a query in my invoice table to read that right ? is this the way most invoice apps would do it.. your suggestive way i mean.
Robbo
|
|
|
|
|
I can't speak for 'all' apps, but that's how I would do it.
Christian Graus - C++ MVP
'Why don't we jump on a fad that hasn't already been widely discredited ?' - Dilbert
|
|
|
|