I want to mousedown picturebox1(PB1), mouseup picturebox2(PB2) to swap the background colors, Drag and Drop(DND).
Mousedown PB1 returns PB1-blue, mouseup PB2 returns PB1-blue. Form_Mouseup event, groubox_mouseup(PB1,PB2 container) event have no affect.
With that I am having an issue with...
Hope this is not a repost, I can do this from DOS with a batch file 'Start "C:\...\iexplore.exe", "some http link"'
And it works fine, I want to add this to the Right Click context menu when I click on a file of type n from windows explorer/folder view.
I have looked through the registry trying...
I run a bat file to open up frenquetly used drives. They all show up in my Taskbar in a nice little group starting with external then local then mapped drives. Each displaying The assigned drive letter C, D, F etc. Is there any way I can cause windows to NOT change the drive letter displayed? I...
When I add more than forty four columns, NewDB.Tables.Append(NewDB) throws an error "Record is to Large"
Otherwise it to work perfectly.
Private Sub CreateGPSMastertbl()
Dim NewDB As New ADOX.Catalog()
NewDB.Create(strConn + vFolder + "GPS" + DateTime.Now.ToString("yyyyMMdd") +...
After the first loop I get an error on command.executereader(), OleDbException occured, IErrorInfo.GerDescription failed with E)FAIL(0x80004005), error code -2147467259
Private Sub RefreshQuery(ByVal StrList As String)
Dim Tempconn As New...
I just hope this is not a repost of someone elses question, probably is. What I am thinking is how do I best use the datagridview to update an Access database. As if I was clicking on the save button in Access. Or should I create a dataset of the datagridview, delete the old/existing table, then...
Is there a reason why one sql statement works and not the other?
Public Sub ReadMyData(ByVal myString As String)
'This first statement is returned from the cbo_click and works fine
'SELECT * FROM tblA_Files ORDER BY File;
'This statement is returned by the bthSearch_Click and does not work...
I have a VB app that looks at autocad to determine if a dwg file is open. I have run into a problem if the user has more than one instance of Autocad running or if the dwg file that is open still has an active command running such as Pan or Zoom. This throws up a message(Abort, Retry, Ignore)...
I have a VB app that looks at autocad to determine if a dwg is open. I have run into a problem if the user has more than one instance of Autocad running or if the dwg that is open still has an open command running such as Pan. This throws up a message and has an adverse affect on my app. With...
In the example below I want to clear the image in the PictureBox so I can rename it. PB1.image = Nothing does not work, dispose does not work. I get the exception "file in use by another program" when I try to rename it.
Private Sub btnRename_Click(sender As System.Object, e As...
This sets the Description property for a field in Access using VB6.
Set prpfield = OutTD.Fields("Line")
Set prop = prpfield.CreateProperty("Description", dbText, "Application-Pipeline, EED field-line_id")
prpfield.Properties.Append prop
What would the equivalent be using VB.Net? Here I am...
With OutTD
.Fields.Append .CreateField("Line", dbText, 5)
.Fields.Append .CreateField("Designation", dbText, 100)
.Fields.Append .CreateField("GORD", dbDouble)
.Fields.Append .CreateField("ReBegPlus", dbDouble)
These are a few of the fields I create in the table. When I open the...
I am combining multiple databases into one. I need to read the properties of source field and duplicate them in the new database. I am having troubles reading the properties.
This with error at Set prpDP because apparently DecimalPlaces is not a property. Type will get set to 7.
I am looking...
How do I resize a picturebox using the mouse wheel?
AKA zooming in and out using the wheel.
I can adjust the image to fit the screen if it is taller or wider than its bounding area.
PB1.height = pb1.height * 0.1 for mouse wheel back
PB1.height = pb1.height * 1.1 for mouse wheel forward
I can't...
I have imported our custom menu from previous versions into AutoCad 2010 and for the most part everything seems to be working. Some toolbar buttons though show a cloud with a "?". OK, it cannot find the image, the image is in the "Support" folder along with all the others which appear on the...
I wasn't sure where to post this. This has been going on for quite some time but In Access and Excel 2003 something is causing the Scroll to switch from Vertical to Horizontal. I did not have this issue in VB6 but since I have installed VS2008 it started doing it in '08 as well. Actually the...
This is my VB6 code and it works fine.
If Image2.Height > Screen.Height Then
VScroll1.Visible = True
VScroll1.Value = 0
' Vscroll1.setfocus
Else
VScroll1.Visible = False
End If
This is my 2008 code that is breaking out when it reaches the VScroll1.Value = 0 statement.
If...
Excuse me for asking this again but I am confused on one thing. If I open an Excel spreadsheet ("Myfile.xls") it opens up using the Excel application. This is also for the most part considered a "Workbook", for me anyway being a VB(A) kinda person. In that "Workbook" there are multiple...
Dir("\\comp1\d$\*") is what is failing. I have a list of boxes on the network. If any 2 of the boxes in the list are OFF, not booted up, the second box in the list will fail with error 52.
comp1(off), comp2(off), comp3(off)-fails on comp2
comp1(on), comp2(off), comp3(off)-fails on comp3...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.