|
Who owns the web pages you are attempting to send information to? If it's not you, how can you be sure what the actual field names for the User ID and Password are? Why are you using VB6?
--------------------------------------------------------
Knowledge is knowing that the tomato is a fruit.
Wisdom is not putting it in fruit salad!!
|
|
|
|
|
Brice Craig wrote: need of a solution in VB6
VB6 has been long dead. Suggest you use VB.NET if you are going to do any VB programming. Why support something that is no longer supported?
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
Hi all,
i like to create a user control (or custom control). By Clicking on the control i like to display a dropdownfield similar to a combobox or the calender in the date-time picker.
The hosting application should not become inactive (window title should keep the blue color), but moving the hosting application, or clicking in any menu, or activating any other control (moving the focus to any other control), the drop down field should close.
On the drop down field i like to receive mouse and keyboard events.
Pls. can anybody provide the general way to do this using vb2005 ?
regards,
bauer
|
|
|
|
|
Hi Bauer,
Please take a look at This[^] article and see if this can help you to move on your project.
Hope this helps .
Regards,
John Adams
ComponentOne LLC
|
|
|
|
|
Hi John,
thank you for your reply.
I have to check, if this coding helps.
What i have to do is: Place some logic on the drop down area similar for example to the date-time picker. If the user clicks on the drop down area (or clicks controls on the drop down area) something should happen .....
I'm not sure, whether it's good practice to inherit from ComboBox.
My be, a better way exists.
But if i create a borderless window as drop down area, the problem is, that the hosting main form becomes inactiv, the title bar isn't blue colored any more.
Any other comments ?
regards,
bauer
|
|
|
|
|
Hi,
When I tried to assign AxImageList to AxListView, I am getting "Invalid Object" error. Could any one of you please let me know how to do this.
My code:
Private WithEvents mLV As AxMSComctlLib.AxListView
Public WithEvents imlLVSortIcons As AxMSComctlLib.AxImageList
mLV.ColumnHeaderIcons = frmMain.DefInstance.imlLVSortIcons
Actually this code is converted from VB6 to VB.NET.
Thanks in Advance,
AR Reddy
|
|
|
|
|
Private WithEvents mLV As ??? AxMSComctlLib.AxListView
mLV.ColumnHeaderIcons = frmMain.DefInstance.imlLVSortIcons
In the first line, you never create a new instance of mLV that's why you can't assign anything to one of it's properties.
Replace ??? with New
'Never argue with an idiot; they'll drag you down to their level and beat you with experience.' ~ anonymous
'Life's real failure is when you do not realize how close you were to success when you gave up.' ~ anonymous
|
|
|
|
|
Hi,
Thanks for the reply,
I have tried with New, but I am getting the same error "Invalid Object".
AR Reddy
|
|
|
|
|
Ok let's look at the code you gave
Private WithEvents mLV As AxMSComctlLib.AxListView
Public WithEvents imlLVSortIcons As AxMSComctlLib.AxImageList
mLV.ColumnHeaderIcons = frmMain.DefInstance.imlLVSortIcons
1) the new is required for mLV so put that back in.
2) You aren't using imlLVsortIcons is that your intention?
3) which form are you in because you mention a form frmmain?
4) is definstance of frmmain created?
'Never argue with an idiot; they'll drag you down to their level and beat you with experience.' ~ anonymous
'Life's real failure is when you do not realize how close you were to success when you gave up.' ~ anonymous
|
|
|
|
|
Hi nlarson, Many thanks for the replies,
Here is my actual code,
Private WithEvents mLV As AxMSComctlLib.AxListView
Public Sub Constructor(ByRef LV As AxMSComctlLib.AxListView, Optional ByRef LVWrapper As cListViewWrapper = Nothing)
mLV = LV
......
mLV.ColumnHeaderIcons = frmMain.DefInstance.imlLVSortIcons
......
......
End Sub
1) i can put back the New for mLV
2) Yes, im not using imlVVSortIcons in this form, i want to use mLV
3) frmMain is the main form which contains the imlLVSortIcons image list. And the above code is in different form.
4) Yes, I have created the definstance in frmMain.
Thanks,
AR Reddy
|
|
|
|
|
is typeof(columnheadericons) = imllvsorticons?
if your getting somekind of object not set then you'll need to check each one
If lv is nothing then msgbox("it's lv")
If frmmain is nothing then msgbox("it's frmmain")
If frmmain.definstance is nothing then msgbox("it's frmmain.definstance")
otherwise ????????????
'Never argue with an idiot; they'll drag you down to their level and beat you with experience.' ~ anonymous
'Life's real failure is when you do not realize how close you were to success when you gave up.' ~ anonymous
|
|
|
|
|
I am using Visual Basic Express 2005
I have a main form wich captures several images and saves them to a folder.
Then a secondary form is opened and the user can select in a listbox the image for viewing in a picturebox of the secondary form.
The problem is when secondary form is closed, the image file viewed in the picturebox remains locked (remember secondary form is closed and theorically picturebox is disposed) and only is unlocked when main form is closed.
I have tried explicitly disposing picturebox in when secondary form closed event, with no success.
Thank you
modified on Wednesday, August 6, 2008 9:00 AM
|
|
|
|
|
Besides disposing the picturebox, dispose the image as well
oPic.Image.Dispose
'Never argue with an idiot; they'll drag you down to their level and beat you with experience.' ~ anonymous
'Life's real failure is when you do not realize how close you were to success when you gave up.' ~ anonymous
|
|
|
|
|
It works now. Thank you very much
|
|
|
|
|
i have 35600 records in the database , How should i display the records , so that the screen may not turn white(due to complete CPU usage).
|
|
|
|
|
1) as far as the display listbox1.suspendlayout / fill / listbox1.resumelayout may help you.
2) consider your design. what is the user going to do with 35600 records? is a "search" feature a better idea the overloading the user with a huge amount of records that most likely they won't need 90% of them at one time?
'Never argue with an idiot; they'll drag you down to their level and beat you with experience.' ~ anonymous
'Life's real failure is when you do not realize how close you were to success when you gave up.' ~ anonymous
|
|
|
|
|
Nilish wrote: How should i display the records , so that the screen may not turn white
Lower the number of records you display. Seriously, no one is going to want to scroll through 35,600 records. As in the other reply you got, implement some kind of search functionality.
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
Or implement some paging functionality. On the first population run
SELECT TOP 50 *
FROM tTable
ORDER BY UniqueKey ASC
on each "NextPage" command run
SELECT TOP 50 *
FROM tTable
WHERE UniqueKey > (last result set's MAX(UniqueKey))
ORDER BY UniqueKey ASC
Try not to do this as it is painful for the DB
SELECT TOP 50 *
FROM tTable
WHERE UniqueKey NOT IN (SELECT TOP [PageCount*50] *
FROM tTable
ORDER BY UniqueKey ASC
)
ORDER BY UniqueKey ASC
|
|
|
|
|
Yep. Maybe the OP will take your suggestions, which are very good
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
I have created a startup service project in vb.net..When i log off the computer the form comes..when i Close the form..The exe is Killing but again comes in the task manager..I cant kill the exe..Again it comes..
pla any one give solution
|
|
|
|
|
Is the project a Windows service or just a regular Windows Forms program? Are you trying to kill the process in code or by using the Task Manager?
|
|
|
|
|
Iam Usingwindows project and it is startup windows Prject.
I registered in registry key of the program and set the value to set the program to come in start up..
..Iam using code to kill the project but it is coming again in task manager..
Thro task manager also i killed ,it is coming again
|
|
|
|
|
If you added it to the registry to run, it's going to run.
|
|
|
|
|
Thank u for ur Reply..Is ther any way to kill the process..yes i have registred in startup in local machine..
|
|
|
|
|
Hi,
please i need to create conectors between two items just like the one in
the SQL Server diagram. I am using Vb.Net 2008 thanks
Mohammad Al Hoss
|
|
|
|