User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
DaniWeb is a massive community of 402,489 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 2,859 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 51
Search took 0.01 seconds.
Posts Made By: dmf1978
Forum: Visual Basic 4 / 5 / 6 19 Days Ago
Replies: 22
Views: 3,832
Posted By dmf1978
Re: Word Count Help !!

Hey, thanks :)
Forum: VB.NET Aug 1st, 2008
Replies: 10
Views: 582
Posted By dmf1978
Re: How to Transfer value from vb.net to html page

Hi,
Just use it
System.Diagonistics.Process.Start("c:\first.html?var1=value&var2=value")

Hope it helps.
Forum: Visual Basic 4 / 5 / 6 Jul 26th, 2008
Replies: 3
Views: 496
Posted By dmf1978
Forum: Visual Basic 4 / 5 / 6 Jul 26th, 2008
Replies: 6
Views: 759
Posted By dmf1978
Re: read multi line txt.file and display in textbox

Hi,
Use the Replace function.
The syntax is Replace(string, find, replace)
Doing it in your code:

Private Sub Command1_Click()

Dim dText As String, dNextLine As String, lLineCount As...
Forum: Visual Basic 4 / 5 / 6 Jul 26th, 2008
Replies: 4
Views: 378
Posted By dmf1978
Re: string handling

Hi,
Try this code:

Private Function SeparateString(str As String) As String
Dim x As Integer
Dim retStr As String

retStr = ""
For x = 1 To Len(str)
retStr = retStr &...
Forum: Visual Basic 4 / 5 / 6 Jul 26th, 2008
Replies: 12
Views: 607
Posted By dmf1978
Re: Need to separate 16 bit binary to 4bit and 12 bit binary values

I see. I'll change it. Thanks.
If you think that your problem is solved, please, mark as solved this thread.

Regards
Forum: Visual Basic 4 / 5 / 6 Jul 25th, 2008
Replies: 12
Views: 607
Posted By dmf1978
Re: Need to separate 16 bit binary to 4bit and 12 bit binary values

HI,
I see your point. But what he need is to separate some bits from a word. To do this, the easy way is to use masks. The mask thing is not an invention of mine.

Take a look here:...
Forum: C Jul 25th, 2008
Replies: 15
Views: 549
Posted By dmf1978
Re: Quadratic Formula

The only thing that don't make me feel good having read this thread is the sign of plike:

COBOL was designed so that managers could read code.
BASIC was designed for people who are not...
Forum: Visual Basic 4 / 5 / 6 Jul 25th, 2008
Replies: 12
Views: 607
Posted By dmf1978
Re: Need to separate 16 bit binary to 4bit and 12 bit binary values

And it is nice too, but as he say, he don't have string binary values. All that I know is the existence of two bytes. I've coded taking account of these.
As you said... Have fun ;)
Forum: VB.NET Jul 25th, 2008
Replies: 6
Views: 448
Posted By dmf1978
Re: Parsing Zip Files VB.Net

Hi,
Take a look on this library DotNetZip (http://www.codeplex.com/DotNetZip).

Hope it helps.
Forum: Visual Basic 4 / 5 / 6 Jul 25th, 2008
Replies: 2
Views: 160
Posted By dmf1978
Re: Need your opinion:

Sorry,
But it is not VB code.
And please, use the [ CODE][/CODE ] tags.
Forum: Visual Basic 4 / 5 / 6 Jul 25th, 2008
Replies: 12
Views: 607
Posted By dmf1978
Re: Need to separate 16 bit binary to 4bit and 12 bit binary values

Hi,
Well, I guess you have to shift right the variable fourBits 12 positions.
Try this (I am not really sure it will work, because I have not VB here)

Dim byteA As Long
Dim byteB As...
Forum: Visual Basic 4 / 5 / 6 Jul 25th, 2008
Replies: 12
Views: 607
Posted By dmf1978
Re: Need to separate 16 bit binary to 4bit and 12 bit binary values

Hi,
Try this

Dim byteA As Long
Dim byteB As Long
Dim sumBytes As Long
Dim fourBits As Long
Dim twelveBits As Long

byteA = 32 ' 00100000b = 32d
Forum: VB.NET Jul 24th, 2008
Replies: 10
Views: 582
Posted By dmf1978
Forum: VB.NET Jul 24th, 2008
Replies: 7
Views: 244
Posted By dmf1978
Re: Is this correct

Hi,
Then, mark this thread solved.
Forum: VB.NET Jul 24th, 2008
Replies: 6
Views: 787
Posted By dmf1978
Re: Delete From String array

Hi,
Is your problem solved?
Forum: VB.NET Jul 24th, 2008
Replies: 7
Views: 239
Posted By dmf1978
Re: Life and Death

Hi,
Is your problem solved?
Forum: VB.NET Jul 24th, 2008
Replies: 7
Views: 244
Posted By dmf1978
Re: Is this correct

Hi,
Is your problem solved?
Forum: Visual Basic 4 / 5 / 6 Jul 24th, 2008
Replies: 3
Views: 616
Posted By dmf1978
Re: Upload picture from file

Hi,
Is your problem solved?
Forum: Visual Basic 4 / 5 / 6 Jul 24th, 2008
Replies: 4
Views: 394
Posted By dmf1978
Re: Issue with Get and Let properties in Class Module

Hi,
Think of a property just as if it were a regular variable. You can get or assign only one value at once.
If you need to pass more than one parameter to a property, instead use a regular Sub...
Forum: Geeks' Lounge Jul 23rd, 2008
Replies: 14
Views: 628
Posted By dmf1978
Re: Vista source code ;)

HI,
I have a question...
The code given doesn't compile.
Borland Turbo C++ v3.0 says something like RunWindowsXP() is not defined...
Maybe do I need the winxp.h header which is not included?
Please,...
Forum: VB.NET Jul 22nd, 2008
Replies: 3
Views: 164
Posted By dmf1978
Re: Fake lag?

Hi,
Then, please, mark this post as solved.
Forum: VB.NET Jul 22nd, 2008
Replies: 3
Views: 295
Posted By dmf1978
Re: Filling listbox with files in a directory

Hi,
Try this

Dim folderInfo As New IO.DirectoryInfo("c:\windows")
Dim arrFilesInFolder() As IO.FileInfo
Dim fileInFolder As IO.FileInfo

arrFilesInFolder =...
Forum: VB.NET Jul 22nd, 2008
Replies: 7
Views: 244
Posted By dmf1978
Re: Is this correct

Well...
That is what I've answered...
Your code have *at least* one nested "If". Actually, yours has four "If" statements.

If you need the pseudo-code, you can write:

X = 0
WHILE X <= 45
IF (X...
Forum: VB.NET Jul 22nd, 2008
Replies: 7
Views: 244
Posted By dmf1978
Re: Is this correct

Hi,
Your code is doing well.
Just in case, I have added the while loop in yours:

Dim x As Integer
Do While x <= 45
If x >= 20 Then
If x <= 25 Then...
Forum: Visual Basic 4 / 5 / 6 Jul 21st, 2008
Replies: 3
Views: 616
Posted By dmf1978
Re: Upload picture from file

Hi,
First, this is not VB6 code. It is VB.Net.
To load an image, you must code:
Dim coinImage As Image
Dim imagePath As String = ""

If choice = 0 Then
headCount =...
Forum: Visual Basic 4 / 5 / 6 Jul 21st, 2008
Replies: 3
Views: 348
Posted By dmf1978
Re: challange

I think so!
Come on boy, sit and code by yourself! :icon_cheesygrin:
Forum: VB.NET Jul 21st, 2008
Replies: 12
Views: 349
Posted By dmf1978
Re: Errorhandler vs. Msgbox for errors - preference?

Sandeep,
Let me ask you a question:
For what, we as programmers, write code?

For the computer to process it?
To minimize the clock cycles of the processor?
To make the users of our application...
Forum: VB.NET Jul 21st, 2008
Replies: 7
Views: 239
Posted By dmf1978
Re: Life and Death

Well, I see syntax errors in your code.
When you compare the text in the ComboBox you must put "Trinidad and Tobago" enclosed with "

MessageBox.Show ("Please ensure that countries are different.",...
Forum: VB.NET Jul 21st, 2008
Replies: 12
Views: 349
Posted By dmf1978
Re: Errorhandler vs. Msgbox for errors - preference?

Thanks Bill,
Good luck. It won`t be easy. ;)
Maybe this helps you http://www.coryborrow.com/2008/07/05/notificationbar-free-net-control/
Forum: VB.NET Jul 21st, 2008
Replies: 12
Views: 349
Posted By dmf1978
Re: Errorhandler vs. Msgbox for errors - preference?

One more thing about modal message box.
Joel Spolsky in the chapter 1 of his book "User Interface Design for Programmers (http://www.joelonsoftware.com/uibook/chapters/fog0000000057.html)"...
Forum: VB.NET Jul 21st, 2008
Replies: 7
Views: 239
Posted By dmf1978
Re: Life and Death

Hi,
Can you show us the code?
Forum: VB.NET Jul 21st, 2008
Replies: 12
Views: 349
Posted By dmf1978
Re: Errorhandler vs. Msgbox for errors - preference?

A modal message box is one that need to be closed before continue working in the application. That means that you can`t access any menus, button, or any other control in the application until you...
Forum: VB.NET Jul 20th, 2008
Replies: 6
Views: 787
Posted By dmf1978
Re: Delete From String array

Hi,

I see you have the contents of the text file in the array arrlines.
Then, guess that you have the value you want to delete in the valueToDel variable:


...
Dim c As Integer = 0
...
Forum: VB.NET Jul 20th, 2008
Replies: 8
Views: 451
Posted By dmf1978
Forum: VB.NET Jul 20th, 2008
Replies: 10
Views: 582
Posted By dmf1978
Re: How to Transfer value from vb.net to html page

Hi,
I will show you how to do this using PHP. I dont know if it works using HTML files (maybe using JavaScript to catch the values?)

Dim sUrl As String = ""

sUrl =...
Forum: VB.NET Jul 20th, 2008
Replies: 12
Views: 349
Posted By dmf1978
Re: Errorhandler vs. Msgbox for errors - preference?

I am with you Wayne. In addition, the messagebox interrupts the user, and also, it is modal.
Forum: VB.NET Jul 20th, 2008
Replies: 0
Views: 175
Posted By dmf1978
Saving a file with an image thumbnail

Hi friends,

I'm coding an application using VB.Net 2008 Express which work with images. It can save the results of this work in a file using an own format (not a regular image file) for future...
Forum: Visual Basic 4 / 5 / 6 Mar 16th, 2008
Replies: 2
Views: 465
Posted By dmf1978
Re: Determining type of control

Thanks!
I was using something like this:
If TypeOf (ctl) Is TextBox Then
...
End If
The problem is with "(" and ")". It doesnt work in VB6.
Forum: Visual Basic 4 / 5 / 6 Mar 16th, 2008
Replies: 2
Views: 465
Posted By dmf1978
Determining type of control

Hi,

I am working in an application that uses Drag & Drop in VB6, and I need to determine which type of control is the user dragging.
I have in the form several controls: PictureBox, TextBox and...
Showing results 1 to 40 of 51

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