Hello please help on the following, I'm parameterizing a Excel chart via OLE. The back ground picture is set
Sheets.Item['Chart1'].SetBackgroundPicture("ThePicture.jpg")
This works however I want to change the Picturetype to stretched.
How?
Thanks
...
I am using cdo to send email the following code fails
Set cdoConfig = CreateObject("CDO.Configuration")
With cdoConfig.Fields
.Item(cdoSendUsingMethod) = cdoSendUsingPort
.Item(cdoSMTPServer) = "localhost"
.Update
End With
When I send an email I get the following error
8004020f
I then changed the code to the following...
For some sort of reason, which i can't seem to spot, this fail and i get my #Name? error, when i tried to do this, i use pretty much the same code another place in my form,
the only difference is the cbo and the names of my txt and alike.
Private Sub cboVarenummer_AfterUpdate()
Dim LSQLVareNavn As String
LSQLVareNavn = "select V...
Evening all,
I have just began my final year at university and am studying cryptography. We have just been set the first assignment just 3 weeks in so I'm assuming it won't be a case of breaking the enigma code.
As part of the assignment there are 7 exercises with 2 further challenges consisting of various ciphers (Caesar, Vigenere, T...
How can I get the unicode value of a char?
For example, I know that I can do this with ascii:
i = Asc("a") // i == 97 (correct)
What if I have a unicode char though?
i = Asc("•") // i == 149 (incorrect... should return 8226)
Obviously the second example doesn't work since that character is not in the Ascii set. Is there an equival...
Hello,
I am having an issue where I need to implement a type of thread scheduling... I'm looking to implement a list of tasks, each with a set time that they need to execute, and after the time is up they will execute the respective code that goes with that task. I would use a timer based solution, however, I don't think that it would ...
I am getting "Object Does Not Source Automation Events "
on the following VB 6.0 line
Public WithEvents conn As Connection
Please Help
...
Possible Duplicate:
How to terminate code that takes long in vb.net?
how to terminate function/code (not entire page) when it takes some time, for example, more than 1 sec?
If Code > 1 Sec Then Terminate the code....
I found the command "Server.ScriptTimeou", but it stops the entire page instead of one command.
...
Using FreeTextBox in asp.net (vb codebehind). When the user selects from a list of responses, the response inserts into the ftb but the caret/cursor positions itself in front of the text that is inserted. The user has to click after the text every time. Is there a way to keep the cursor positioned after every text that's inserted?
...
I'm looking to pass two or more parameters to a thread in VB 2008.
The following method (modified) works fine without parameters, and my status bar gets updated very cool-y.
But I can't seem to make it work with one, two or more parameters.
This is the pseudo code of what I'm thinking should happen when the button is pressed:
Private ...
i made an application in vb6 now i have given it a product version from project/properties but i noticed the win explorer has two tags for exe a product version and a file version. i want to edit the file version of my app's exe any idea how can i do that? file version should be x.x.x.x
...
I would like to draw an opaque line on a control in c#.
I tried this with visual basic powerpacks shapecontrol.. but I couldn't find any properties that set opacity.
How do I draw an opaque line ?
Thanks,
...
What I would like to do is dump an XML String into RecordSet. The problem I am having is that the code seems to work fine if I saved the XML String first to a file and then read from the file which I think is redundant. However, when I want to read from string, I get the error
RecordSet cannot be created. Source XML is incomplete or in...
Hello, I am currently in the process of converting some excel VBA to C# and I am stuck on one thing.
In VBA I have some public variables declared at the top of the module, outside of the Functions and I can access and modify these from any module or function. Example:
Module A:
public A As Double
public B As Double
Publi...
I'm just wondering if there is something I should know of when doing this or will it work straight out of the bat as long as the .NET framework is installed on the client?
I ask because when I attempted this, VB6's references dialog said "cant register that dll"
Thanks
...
I've found a scale, Detecto AS-350D (http://cardinal-detecto.centralcarolinascale.com/AS-PC-Computer.htm), that hooks up to a computer. I was hoping someone could help me figure out how to get the information (weight) from it. I've looked around but can't seem to find any information on it. I've never wrote a program where I accepted d...
using asp.net/sqldatasource/vb
Is there a way to place the insert row below the header in a gridview instead of in the footer?
...
Hello,
I am trying to print the contents of a structure onto a print page in Visual Basic(visual studio 2008). However my for each loop generates a conversion error? Could someone help me figure out whats wrong? Thanks
Public Class Form1
Structure IncomeRecord
Dim IDVal As Integer
Dim HouseholdNum As Integer
Dim YearlyInco...
Fairly straightforward question: How can I tell a VB6 application to remember what display it was closed on, and then when the application is launched again, to display the main form on that monitor?
...
I need to Convert my XML Data to an ADO RecordSet. I am able to construct the ADO Persistant XML format for the conversion but I am not too sure why the single row in my XML is being ignored. The final recordset produced has EOF and BOF both as true, and RecordCount is 0 but that is incorrect since my XML does contain at one row as in th...