|
Ok thanks thats just what i want, the bytes can only be values from 0x00 to 0xFF which is the range of the extended ASCII dataset i think, so Asc should handle it!
|
|
|
|
|
How do you change the size of a font dynamically being read only doesnt help
|
|
|
|
|
Fonts are immutable. You need to create a new Font with the desired size.
Christian
I have several lifelong friends that are New Yorkers but I have always gravitated toward the weirdo's. - Richard Stringer
|
|
|
|
|
I have to copy rows from one data view to another.
Fot this am using the following loop and each time creating a new row.
But somehow in the final result the resultatt view only has one new row.
The loop actually runs for each added row but only the last row is actually added.
Any suggestions?
Am copying rows from view2 to view....
For i = 0 To view2.Count - 1
view.AllowNew = True
Dim dv As DataRowView
'adding the new row
dv = view.AddNew()
' copying each column value
For j = 0 To view.Table.Columns.Count - 1
dv(j) = view2.Item(i).Item(j)
Next
dv = nothing
Next
no matter how many times the above loops get executed only the last row is added
|
|
|
|
|
Greetings,
I have 2 grids, a master and a detail. When I try to add a new blank
record in the detail, I get a contraint error "column 'PROPID' does not
allow nulls" How can I get the detail record PROPID value to default to the
value of PROPID of the selected recortd in the master grid? Here is a short
sample data structure:
Master Grid:
QAID - int - not null
PROPID - int - identity - not null
ITEMDESC - varchar(50)
Detail Grid:
PROPDETAILID - int - identity - not null
PROPID - int - not null
ITEM AMOUNT, etc, etc.
*As you can see there is a one to many relationship between Master.PROPID
and Detail.PROPID
Thank you for your help in advance!
|
|
|
|
|
I am getting stuck on a class that implements IEnumerator for a custom object. Here's the relevent portion of the code:
<br />
class testEnumerator<br />
implements IEnumerator<br />
<br />
private copy() as customObject<br />
private orig() as customObject<br />
private cursor as integer<br />
<br />
public sub new(ByRef v() as customObject)<br />
me.cursor = -1<br />
me.orig = v<br />
me.copy = v.clone<br />
end sub<br />
.<br />
.<br />
.<br />
end class<br />
I am getting hung up where the MoveNext and Reset methods throw errors if the original collection has been modified. What I have right now compares the orig() and copy() arrays to see if there are any differences.
I'm not sure this is correct, though. Does me.orig = v make me.orig a reference to v(), since v was passed ByRef ? Or are orig() and copy() identical copies of the array v() ?
Any help, or alternative methods, would be greatly appreciated.
|
|
|
|
|
I want add BCC all ountgoing and incoming emails. How can i do?
I think i have to control SMTP and POP3 port.
NOTE : This will be Server application.
|
|
|
|
|
I have to ask, why the incredibly long name? Couldn't you just shorten it up to "Greeky Creek" and stop wasting my screen space?
If you want a generic implementation that supports all mail applications, you'll have to write an app as a proxy server. The mail application would then log in to your server, which in turn will impersonate the person using his/her credentials, login to the real mail server, download all mail, go through each message and add the appropriate strings to the message, then return the altered mail to the client mail program.
The same goes for sending mail.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
First Pls Look Name ,
Second
I have a proxy server, Norton checking mails is installed on proxy. I donna how can i catch email network packets to alter? What will do use, socket programming, or net.mail namespace, Do u know any sample ? or any artical about this aim.?_
|
|
|
|
|
Just Greeky Creek wrote:
I donna how can i catch email network packets to alter?
You don't!
You have to write your own proxy server, just like Norton. If you check your email application configuration, you'll notice that it's connecting to your own machine using different ports than the normal POP3 and SMTP. The configuration in Norton is setup to connect to your ISP mail server.
You'll be writing something that does exactly the same thing. Except the configuration of your application will be the same as your email application. This will have your application connect to Norton so it can do it's job. The chain will go something like this:
Your email app configuration:
POP3 -> 127.0.0.1 on port 8001
SMTP -> 127.0.0.1 on port 8005
(or whatever ports you pick)
Your mail modification app listens on these two ports for connectios from your email app:
POP3 -> listen to 127.0.0.1 on port 8001
SMTP -> listen to 127.0.0.1 on port 8005
Your mail modification app will talk to your ISP mail server, in this case, your Norton app on:
POP3 -> talks to 127.0.0.1 on port ???? (whatever Norton is listening on)
SMTP -> talks to 127.0.0.1 on port ???? (whatever Norton is listening on)
Norton listens for connections from mail applications, in this case your modification app, on:
POP3 -> listen to 127.0.0.1 on port ???? (whatever it's configured for)
SMTP -> listen to 127.0.0.1 on port ???? (whatever it's configured for)
Finally, Norton will talk to your ISP mail server on:
POP3 -> talks to pop3.comcast.net on port 110 (or whatever server your ISP uses)
SMTP -> talks to smtp.comcast.net on port 25 (or whatever server your ISP uses)
Essentially, your writing a proxy application that must be both an email server (POP3 and SMTP) and an email client application. There are articles all over the web that discuss and demonstrate both applications independent of each other, but it'll be up to you to figure out how to put them together into one automated application. You'll also what to pickup the RFC documentation on how POP3 and SMTP clients and servers work. You'll need them for this project...
You might want to check out this[^] little artcle on CP for ideas behind a POP3 client. This will be just 1/5th of your application.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Hi guys
Can anyone guide me to a tool that converts vb6 code to vb.net,
it's a an access db application, and I was wondering whether it'll make it slower or not?
Thanks
|
|
|
|
|
This is already built into Visual Studio .NET. All you need to do is open Visual Studio, then click File->Open->Project. Navigate to the .VBP project file you want to convert and click Open. It's that simple...
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
I know what you mean but will it convert all the different syntax, db connection and all difference between vb6 and .net?
I doubt!
anyway i'll give a try,
thanx
|
|
|
|
|
No converter is going to convert everything properly. You WILL have to do some editing and the conversion tool lets you know this by putting comments into the code and generating a conversion report.
And as far as I know, this is the ONLY product that will convert your VB6 code to VB.NET.
But, IMHO, the best method for code conversion, by far, is to rewrite it yourself...
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
hi,
when u open a VB6 project file (*.vbp) in DotNet IDE, the migration utility for conversion popps up... just follow the instructions.....
finally it will generate a list of errors or code which it was unable to convert into VB.NET... for that some perticular help is also provided...
by just following those steps u can get ur work done...
all the best....
- thanks and regards,
Basavaraj P.Umadi
|
|
|
|
|
Microsoft(R) guys have already provided you with such a tool in .NET development environment itself. Go to Tools on the menu
Luckyhuss
|
|
|
|
|
i have connected access97 with vb6 ..
now, when i put data control on the form
and when trying to put value
on proprty RecordSourse
vb6 answer me by the messag:
"unorgnizet database format"
what is the solution?
|
|
|
|
|
I suggest you pick a more current ADO reference. Go to Projects menu then click Reference i.e Projects->Reference and when the reference dialog pops up, check the A.D.O 3.6 or most recent ADO reference.
or try this:
option explicit
dim cn as new ADODB.connection
dim rst as new ADODB.recordset
dim sql as string
in the form load event
with cn
.provider="Microsoft.jet.oledb.315"
.cursorlocation=aduseclient
.open
end with
try to read more about ADO
|
|
|
|
|
|
Hy everyone!
I do want to change the columwidth dynamically, meaning depending on the length of the text/string entered.
I had a look in the VBA help but could only find an assignment of fixed values.
What I want to do is something similar to
Cells(lrow,lcolumn).Width=Length(mystring)
But well I guess Excel or VBA respectively is not able to get the length, or does it?
Thanks!
Stephan.
|
|
|
|
|
Rather sad u didn't mention the type of control. Do this by responding to the event that is called anytime the items in the control change. Just loop through all the items in the control and get the maximum width to the lengthiest string.
|
|
|
|
|
I do not use any control.
I do want to calculate using data from one sheet in Excel and printing the results to another sheet. Then I do want to change the cellsize to make it fit to it's contains.
So what I want to do is implement the same function which you get by sizing a column to optimal size in Excel.
And because I do not know which strings or integers will be copied to the sheet (meaning as result) I do want to print the data to the sheet and change the size afterwards.
Thanks.
Stephan.
|
|
|
|
|
I found a solution. To get the optimal size of the cell in Excel via VBA you have to use the .autofit operation
syntax
Columns(index).Autofit
This is the easiest solution!
Stephan.
|
|
|
|
|
hello
i am developing a term project of sending sms in pakistan and aslo world wide i have searched so many webservices.one is tiscali webservices. actually when i send message the notification message appear that message has been sent but i did not receive message please help me give me early reply and please send me links of webservices. thanks. ok bye
|
|
|
|
|
Reply to what? You haven't given us code snippet of how your sending this message and, therefore, nothing to help you with. But, my first 2 questions would be:
Are you using any publicly available SMS server sites to actually send the message?
Does the site work with the mobile service you're using?
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|