|
I would suggest you create a new usercontrol and then override the paint routines to emulate the layered graphics you want.
Regards,
Thomas Stockwell
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.
Visit my homepage Oracle Studios[ ^]
|
|
|
|
|
Hello everybody
I want to write a program for capture card .
but I do not know how can I start .
please help me .
tanks in advanse .
en.mahdi
|
|
|
|
|
1 - DirectX
2 - google
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Greetings everyone!
I am trying to populate a listbox and assign the datamember at form load. I am using this code:
<br />
' ** open database connection and recordset<br />
Dim rs As New ADODB.Recordset<br />
Dim Conn As New ADODB.Connection<br />
ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source = c:\mydb"<br />
Conn.Open ConnectionString<br />
<br />
' ** read contents of db into recordset<br />
Set rs = Conn.Execute("Select * from tblProfiles")<br />
While Not rs.EOF<br />
With lstExistingProfile<br />
.AddItem rs("ProfileName")<br />
.DataMember = rs("profileID")<br />
End With<br />
rs.MoveNext<br />
Wend<br />
Call Close_Db<br />
End Sub<br />
Problem: it loads fine, but the last record in the db is the only datamember that appears when I click an item in the listbox.
I tried (.newindex) just after the datamember property, but got a read-only error.
any help would be great!!
thanks friends,
Mark
|
|
|
|
|
a. Design an algorithm that will calculate the volume of a sphere. Select appropriate units
for the radius.
b. Design an algorithm that will convert a EIGHT digit BINARY number to decimal.
c. Design an algorithm that will randomly generate six different numbers. (Numbers should
be range from 1-49). You will need to check the numbers to see if they don’t repeat
themselves in the sequence. You will only discover this when you write the program. If
this is true you must then re-define your algorithm). Use the randomizing function in
VBA.
d. Design an algorithm that will count the number of vowels in a sentence. The sentence should be constructed from a maximum of no more than 10 words, ending with a full stop.
Part 2 Program structure and design.
a. Convert the algorithms in Part 1, to VBA computer programs . ALL outputs should be
shown in the correct units. Make the programs ‘user friendly’.
b. Ensure the program structure and design makes the program readable and makes the
process of debugging much easier.
c. Where possible use suitable comments to help in the understanding of the program
function.
Part 3 Program test and debug.
a. Use suitable test data to check the functionality of algorithms in Part 1 and the programs
in Part 2.
b. Comment on whether the programs work correctly and how you would change them if
any shortcomings have been identified.
Part 4 Overall content and structure
a. Completeness of report, including page numbers, contents page, correct use of headings
etc. All work referenced and conclusions provided where required. ALL sections
attempted.
|
|
|
|
|
This is obviously your homework, and you didn't show any attempt to solve this by yourself, except spewing out your assignment here in hope some idiot will solve it for you, so nobody is going to offer any help, I'm sure.
And let me guess: It's urgent!
"I love deadlines. I like the whooshing sound they make as they fly by." (DNA)
|
|
|
|
|
WE DO NOT DO YOUR HOMEWORK. This site is for people who want to learn for themselves. if you get stuck, or get unexpected results, you post your code and we help find where you went wrong.
I suggest that if you don't know where to start you need to change your major immediately.
I also suggest that if you write some code and get stuck you create a new account; starting off with your first post being a "please do my homework because I'm too lazy" is a really bad way to get off on the right foot.
|
|
|
|
|
leckey wrote: I also suggest that if you write some code and get stuck you create a new account; starting off with your first post being a "please do my homework because I'm too lazy" is a really bad way to get off on the right foot.
I wouldn't suggest it. It's just more stuff that bogs down the network.
Regards,
Thomas Stockwell
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.
Visit my homepage Oracle Studios[ ^]
|
|
|
|
|
|
Wow - you're going to fail this subject. You may feel like everyone is blasting you, but if we did this for you, what would you do when you got your next assignment ? What would you do in an exam ? If you were to try to do your own homework and asked specific questions when stuck, we'd love to help you.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
|
can you put error text ?
Ashish Sehajpal
|
|
|
|
|
A quick Internet Search of 5.7.1 reveals
SMTP 550 5.7.1 Unable to relay error
Have you configured the domain for your email server and which domains are you trying to relay?
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson
|
|
|
|
|
The reason you get a big textbox and a little one, is that you can put a header in the little one, and you can post code and give error messages, etc, in the big box, so we are given something with which to try and help you.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
The message is as follows:
Could not send message:The SMTP server requires secure connection or the client was not authonticated.The Server Response was 5.7.1 Relaying not allowed:pallavikel@gmail.com(Receipent's email Id)
But the usr name and password is right
|
|
|
|
|
Relaying not allowed means that you are using a mail server that will not accept messages from your ip address, it generally means you can only use that mail server when logged into a specific ISP.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Hi,
I'm working with VS2008 & Linq and I would like to insert a line into my table called ISAMEMBEROF. The problem is that the primary key (IMO_ID) must be generated automatically (varchar 36). Here is the code that I wrote :
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Dim msg1 As Integer = USRDataGridView.CurrentCell.RowIndex
Dim msg2 As Integer = GROUPDataGridView.CurrentCell.RowIndex
' Create a new object.
Dim ord As New ISAMEMBEROF With _
{.USR_SID = USRDataGridView.Rows(msg1).Cells(0).Value, _
.GRP_GID = USRDataGridView.Rows(msg2).Cells(0).Value, _
.IMO_ID = ???}
' Add the new object to the collection.
Me.Db.ISAMEMBEROFs.InsertOnSubmit(ord)
' Submit the change to the database.
Try
Db.SubmitChanges()
Catch except As Exception
Console.WriteLine(except)
Db.SubmitChanges()
End Try
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
The SQL equivalent would be :
insert into ISAMEMBEROF (IMO_ID, USR_SID, GRP_GID) values (default, ..........)
How to do to get this with VB.NET/Linq ?
TIA Smile
Etienne
|
|
|
|
|
LINQ forum is the better place to ask...
|
|
|
|
|
darkelv wrote: LINQ forum is the better place to ask...
Sorry, I didn't see that there's a forum about Linq ...How can I move the subject?
|
|
|
|
|
007jb wrote: How can I move the subject?
The following ways:
1) If there are no threads in the message, you can delete it and put it in the new location.
2) Since it has thread responses, leave a polite message that 'This thread is posted to Linq' so that future surfers would catch up to the new location.
3) Post a request to 'Suggestions and Bug Reports' forum and wait for an administrator to respond.
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson
|
|
|
|
|
Hi friends,
In my application I am converting data from msflexgrid to rxcel by using the following code.
Clipboard.Clear 'Clear the Clipboard
With MSFlexGrid1 'Select Full Contents (You could also select partial content)
.Col = 0 'From first column
.Row = 0 'From first Row (header)
.ColSel = .Cols - 1 'Select all columns
.RowSel = .Rows - 1 'Select all rows
Clipboard.SetText .Clip 'Send to Clipboard
End With
With xlApp.ActiveWorkbook.ActiveSheet
.Range("C5").Select 'Select Cell A1 (will paste from here, to different cells)
.Paste 'Paste clipboard contents
End With ' This makes Excel visible
xlApp.Visible = True
But when the data is pasted in Excel sheet, there is some cells pasted wrongly it means some row is splited in two rows.
Totally i have 11 columns, and no of rows will depends. for some row the last 3 column values are pasted in the next row 2,3,4 columns.The next rows is proceeding at next line from that row.
Please can anyone help me out. Its very very urgent for me.
Expecting your help.
Thanks and Regards,
|
|
|
|
|
Hi,
I create application in VS 2003 to connect to SAP, but I have the error like this ERROR : Missing R3NAME=... or ASHOST=... in connect_param in RfcOpenEx. THe user name and password is successfull to login SAP if I login through SAP.
Here is my code :
Me.SapLogon.Username = Me.txtName.Text
Me.SapLogon.Password = Me.txtPassword.Text
Me.SapLogon.Client = ConfigurationSettings.AppSettings("SAPClient")
Me.SapLogon.DestinationName = ConfigurationSettings.AppSettings("SAPDestName")
Dim myproxy As New PCNNPdll.Login
Dim myReturn As New PCNNPdll.BAPIRETURN
Dim myinfo As New PCNNPdll.ZHR_PCNNP_LOGIN
myproxy.Connection = New SAP.Connector.SAPConnection(Me.SapLogon)
myproxy.Zhr_Pcnnp_Login("", myinfo, myReturn)
myproxy.Connection.Close()
Thx
|
|
|
|
|
I want to use DateTimePicker. when i click on its, i want only show Month and Year not show day. After i select Month and Year DateTimePicker will show "04/2008"
Can we do it ? if can so how ?
VB.Net
modified on Thursday, April 24, 2008 11:24 PM
|
|
|
|
|
I don't know why u want to do it??
Anyways u can try this
Set the CustomFormat Property to "MM\yyyy"
n then Format Property to CustomFormat
then it will show only month and year not day
Hope it will help u if not then feel free n ask again
The Great Pleasure In Doing That Things That Other People Say U Can't By Doing This U Can Shut Their Mouth
|
|
|
|
|
Yes i done it ready ? but it just show in DateTimePicker. i want when we click on DateTimePicker no need to show the day.
VB.Net
|
|
|
|