User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
DaniWeb is a massive community of 391,674 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,113 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Showing results 1 to 40 of 120
Search took 0.02 seconds.
Posts Made By: jwshepherd
Forum: Visual Basic 4 / 5 / 6 Oct 3rd, 2005
Replies: 1
Views: 2,615
Posted By jwshepherd
Re: How to set user rights in ms.access from vb6

I believe there is limited security in msaccess for what you are wanting. I don't believe it is with ado or dao though I think it is ADOX (Microsoft ADO Ext 2.8 For DDL and Security ). YOu would do...
Forum: Visual Basic 4 / 5 / 6 Oct 3rd, 2005
Replies: 6
hi
Views: 1,447
Posted By jwshepherd
Re: hi

Text1.Text = MonthName(Month(DateAdd("m", -1, Date)))
Forum: Visual Basic 4 / 5 / 6 Sep 24th, 2005
Replies: 10
Views: 2,750
Posted By jwshepherd
Re: date problem

the dtpicker seems to work best for most of my applications.
Forum: Visual Basic 4 / 5 / 6 Sep 22nd, 2005
Replies: 6
hi
Views: 1,447
Posted By jwshepherd
Re: hi

It looks like in the CopyMemory function the ByVal is the length of the data passed from destination to source or vice versa. Check this value debug.print byVal in the function to see what it...
Forum: Visual Basic 4 / 5 / 6 Sep 22nd, 2005
Replies: 2
Views: 975
Posted By jwshepherd
Re: Another problem.

use instr.

if instr(text1.text, "little") Then variable = yes
Forum: Visual Basic 4 / 5 / 6 Sep 22nd, 2005
Replies: 2
Views: 5,039
Posted By jwshepherd
Re: Command Prompt and Visual Basic

shell "cmd.exe /c"

will get you to the comamnd prompt. Shellexecute will give you more options and handling and return values, but if you just need the prompt, there you go.
Forum: Visual Basic 4 / 5 / 6 Sep 22nd, 2005
Replies: 10
Views: 3,336
Posted By jwshepherd
Re: Adding pictures

mediaplayer1.filename="intro.mpg
should be changed to
mediaplayer1.filename=app.path & "\" & "intro.mpg"

I ctually tried it. It might be my version of windows media player, but this did not work....
Forum: Visual Basic 4 / 5 / 6 Sep 20th, 2005
Replies: 5
Views: 1,965
Posted By jwshepherd
Re: send keys

it will go whereever the cursor is located. If you want someone to push a button and have "COLOR" input in a text box, you must first change the focus.

Private Sub Command1_Click()
text1.setfocus '...
Forum: Visual Basic 4 / 5 / 6 Sep 20th, 2005
Replies: 6
hi
Views: 1,447
Posted By jwshepherd
Re: hi

What object are you using for the ip information. There should be a method there to calculate the bytes used.
Forum: Visual Basic 4 / 5 / 6 Sep 18th, 2005
Replies: 3
Views: 1,931
Posted By jwshepherd
Re: How can be a commond button's caption changed

Option Explicit

Public Sub Command1_Click()
If Command1.Caption = "SAVE" Then
Command1.Caption = "ADD"
'Put Save commands here
Else
Command1.Caption = "SAVE"
'put ADD COMMOND BUTTON Commands...
Forum: Visual Basic 4 / 5 / 6 Sep 15th, 2005
Replies: 3
Views: 1,931
Posted By jwshepherd
Re: How can be a commond button's caption changed

Public Sub Command1_Click()
if command1.caption = "SAVE" Then
command1.caption = "ADD COMMOND BUTTON"
'Put Save commands here
else
Command1.caption ="SAVE"
'put ADD COMMOND BUTTON Commands here
end...
Forum: Visual Basic 4 / 5 / 6 Sep 15th, 2005
Replies: 3
Views: 1,978
Posted By jwshepherd
Re: Code for Find First ...

Dim Conn As ADODB.Connection
Dim rs As ADODB.Recordset
Set Conn = New ADODB.Connection
Set rs = New ADODB.Recordset
conn.open {Connection String}
rs.Open "Select * FROM TABLE;", Conn, 3, 3, 1

use...
Forum: Visual Basic 4 / 5 / 6 Sep 14th, 2005
Replies: 4
Views: 2,374
Posted By jwshepherd
Re: Print Screen

public sub command1_Click()
Me.PrintForm
End Sub
Forum: Visual Basic 4 / 5 / 6 Sep 13th, 2005
Replies: 1
Views: 5,257
Posted By jwshepherd
Re: Crystal REport 9.0

Create a new colum for the revisions part numbers. I would also add a last modified date colum as well. Then the sql query will allow use to differentiate the two types of numbers.

Or you could...
Forum: Visual Basic 4 / 5 / 6 Sep 13th, 2005
Replies: 4
Views: 2,374
Posted By jwshepherd
Re: Print Screen

Put either a command button, image, or make it a hot key and teh use Me.PrintForm to print the form.
Forum: Visual Basic 4 / 5 / 6 Sep 12th, 2005
Replies: 10
Views: 3,336
Posted By jwshepherd
Re: Adding pictures

for just pictures, you can add textbox or variable values to the picture object to load a new picture if you use the correct format.

image1.picture =loadpicture("c:\vbrox.bmp")
image1.picture...
Forum: Visual Basic 4 / 5 / 6 Sep 9th, 2005
Replies: 2
Views: 1,260
Posted By jwshepherd
Re: Picture Size problem

make sure the stretch property is set correctly
Forum: Visual Basic 4 / 5 / 6 Sep 9th, 2005
Replies: 3
Views: 3,063
Posted By jwshepherd
Re: Text Width

Debug.Print TextWidth("XXXXX"), TextWidth("iiiii")
Forum: Visual Basic 4 / 5 / 6 Sep 6th, 2005
Replies: 2
Views: 1,492
Posted By jwshepherd
Re: Pointers?

it would help to have the function name.
basically you would use the function name and pass the variables to it.

{FunctionName} lptr,iwrite
Forum: Visual Basic 4 / 5 / 6 Aug 31st, 2005
Replies: 1
Views: 1,507
Posted By jwshepherd
Re: Trying to Exit Progam Cleanly

public Sub Die()
dim f as form
for f in forms
unload f
next
end
end sub
Forum: Visual Basic 4 / 5 / 6 Aug 31st, 2005
Replies: 7
Views: 4,356
Posted By jwshepherd
Re: VBA source code

the languages are very similar witha few differences. Try planet-source-code.com
Forum: Visual Basic 4 / 5 / 6 Aug 24th, 2005
Replies: 3
Views: 7,412
Posted By jwshepherd
Re: AutoClicker

What program are you wanting it to "click" on?
What operating system?
Will you feed it the co-ords for the clicks or will it be prerecorded?

While moving the mouse to a particular location and...
Forum: Visual Basic 4 / 5 / 6 Aug 23rd, 2005
Replies: 2
Views: 1,525
Posted By jwshepherd
Re: ow can i access Time from Server

I would probably shell it out.

shell "net.exe time \\server"
Forum: Visual Basic 4 / 5 / 6 Aug 21st, 2005
Replies: 2
Views: 3,119
Posted By jwshepherd
Re: Global v/s Public

That's correct. Global Variables defined in a mod use the global prefix. Global Variables defined on a form use public. That is about the only difference.
Forum: Visual Basic 4 / 5 / 6 Aug 21st, 2005
Replies: 1
Views: 1,709
Posted By jwshepherd
Re: Make a Field Null after update

update inventory set location=NULL where x=y
Forum: Visual Basic 4 / 5 / 6 Aug 20th, 2005
Replies: 1
Views: 1,226
Posted By jwshepherd
Re: undo

ctrl-Z will undo most operations in a text editor. other wise you will need to create an array to hold the previous changed information until the users are satisfied and submit the text.
Forum: Visual Basic 4 / 5 / 6 Aug 20th, 2005
Replies: 4
Views: 1,893
Posted By jwshepherd
Re: pay roll

an Undo operation on what?
Forum: Visual Basic 4 / 5 / 6 Aug 19th, 2005
Replies: 4
Views: 1,893
Posted By jwshepherd
Re: pay roll

Thats' a large project. If you are working on this alone and are fairly competent in vb you are looking at about six to twelve months programming.

Start with the database and the reports. Gather all...
Forum: Visual Basic 4 / 5 / 6 Aug 18th, 2005
Replies: 11
Views: 2,735
Posted By jwshepherd
Re: need help with my final year project

Well you have your choice. You can use VB to create any program you want, from games to complete hospital accounting systems to virus, to security analizers. Decide what you want to create, and we...
Forum: Visual Basic 4 / 5 / 6 Aug 18th, 2005
Replies: 3
Views: 17,096
Posted By jwshepherd
Re: VB Instruction to EXIT a Program

try using this instead.
it will unload all forms and then end all processes.
dim f as Form
for each f in forms
unload F
next
end
Forum: Visual Basic 4 / 5 / 6 Aug 18th, 2005
Replies: 5
Views: 3,595
Posted By jwshepherd
Re: Need help in VB6 database programming

txtMN.Text = dtaMember.RecordSource = "SELECT Name FROM Mem_Mast WHERE ((Mem_Code) = '" & txtMC.Text & "');" = ' " & txtMC.text & " ' ) ; "

needs to be seperated
dtamember.Recordsource = "SELECT...
Forum: Visual Basic 4 / 5 / 6 Aug 17th, 2005
Replies: 5
Views: 3,595
Posted By jwshepherd
Re: Need help in VB6 database programming

post the sub where you are getting the error and we'll see if we can figure it out.
Forum: Visual Basic 4 / 5 / 6 Aug 17th, 2005
Replies: 4
Views: 2,823
Posted By jwshepherd
Re: How do i generate Emails

free component call vbsendmail.dll makes sending mail with attachments very easy.
Ithink you can find it here.

http://www.freevbcode.com/ShowCode.Asp?ID=109

Public Function MailEOM(strFilename1 As...
Forum: Visual Basic 4 / 5 / 6 Aug 17th, 2005
Replies: 4
Views: 1,390
Posted By jwshepherd
Re: Popup of docked form

might try form2.setfocus . POst the source and we'll see what we can do.
Forum: Visual Basic 4 / 5 / 6 Aug 16th, 2005
Replies: 2
Views: 1,494
Posted By jwshepherd
Re: Simulation For Different Rates

Try using different widths of lines
Forum: Visual Basic 4 / 5 / 6 Aug 16th, 2005
Replies: 4
Views: 2,823
Posted By jwshepherd
Re: How do i generate Emails

Ar eyou still needing help?
Forum: Visual Basic 4 / 5 / 6 Aug 16th, 2005
Replies: 1
Views: 1,964
Posted By jwshepherd
Re: Source code downloads

www.planet-source-code.com
Forum: Visual Basic 4 / 5 / 6 Aug 16th, 2005
Replies: 6
Views: 2,711
Posted By jwshepherd
Re: Textbox To Label

try using the text1.change() event That way it is automatically change whenever you type something

public Sub text1_change()
form1.label1.caption = trim(text1.text)
end sub
Forum: Visual Basic 4 / 5 / 6 Aug 16th, 2005
Replies: 3
Views: 7,489
Posted By jwshepherd
Re: SQL Server 2000 and VB 6

same as using ado and ms access change the connection string :

"Driver={SQL Server};Server=BMC;Address=xxx.xxx.xxx.xxx:1433;Network=DBMSSOCN;Database=dbPos;Uid=SQL;Pwd=sql"
Forum: Visual Basic 4 / 5 / 6 Aug 16th, 2005
Replies: 3
Views: 6,732
Posted By jwshepherd
Re: VB6 RTE '424' Object required.

put this on a form. six command buttons one row on top,one textbox below buttons,one webbrowser window below textbox


Private Sub Command1_Click()
WebBrowser1.Navigate Trim(Text1.Text)
End...
Showing results 1 to 40 of 120

 
All times are GMT -4. The time now is 2:12 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC