|
the tower of hanoio with three pegs. i need a recursion method to move the disks to another peg using the other one as a temporary holding
|
|
|
|
|
You have three questions posted and they are all obviously homework. Work on it and if you get stuck then ask your question.
_________________________________________
You can't fix stupid, but you can medicate crazy.
|
|
|
|
|
How can i link Foxpro Data to our vb.net project.
|
|
|
|
|
Ajeet mittal wrote: urgent
Not to us it isn't.
We answer in our spare time. For FREE. If you want urgent then pay for support. If you want free then be patient.
|
|
|
|
|
ok,when u free give me answer
|
|
|
|
|
see this link
www.connectionstrings.com
regards
chandru
|
|
|
|
|
Its quite simple , Create *.udl file and simply follow to create
foxpro connection string. open that .udl file with notepad copy that
string and paste onto file as connectionstring.
Develop2Program & Program2Develop
|
|
|
|
|
Hi,
i have a master Table "order" Primary key is Order_id at the same time i have another table "Order_Detail" now the problem is i wnt to insert the Order_id at the "Order_Detail Table" five time or more or lesss at the same time whn the order is insert in the Order table,how can i ?
if the the Order_id is inserted in the "Order" table and fail to insert the Order_Detail Table ,then i wnt to rollback the Order_id in Primary table,and many users are placing order at the same time ..tell me how can i manage this?
this is my desktop application...
Send me some stored Procedur or tell me some other way of hanlding this....?
Waiting for ur response.
Best Regardsx
|
|
|
|
|
Try the following code with some modifications.
Dim connectionString As String = _
"Data Source=data source;Initial Catalog=your database;Integrated " + _
"Security=True"
Dim trans As SqlTransaction = Nothing
Dim connection As SqlConnection = _
New SqlConnection(connectionString)
connection.Open()
Try
trans = connection.BeginTransaction
Dim command As SqlCommand =
command = New SqlCommand(yourSQL, connection, trans)
command.ExecuteNonQuery()
' add your loop to the following 2 lines
' Put the sql that will update the order details table here
command = New SqlCommand(yourSQL, connection, trans)
command.ExecuteNonQuery()
trans.Commit()
Signature has been encrypted
|
|
|
|
|
exactly the same i tried bt between this loop or above the loop i open another connection this connection get the max(Order_Detail_id) not used the trans and give Exception bcz the connection is already associated with transaction and i made another object with out transaction in bwteent he transaction processing how cani manager this.???Send me some codesnippet that handle this sort of scenario...
waiting ....
|
|
|
|
|
do not open another connection, you can use the same connection
put this code before the for loop
Dim dr as SqlDataReader
command = New SqlCommand(yourSQL, connection, trans)
dr=command.ExecuteReader()
then read the value from the datareader
best regards,
wachill
Signature has been encrypted
|
|
|
|
|
Thnks
i try and vll let u knw ,,
|
|
|
|
|
Hi to All,
Query Regrading : get the position of runtime for 'n' controls
I had created the runtime control of checkbox with the database field...
It displays the 'n' nuber of controls...
My exact need is,i want to place the control in a particluar position of each and every conrol.
For Example:Design View (need)
1 2
3 4
5 6
karthi
|
|
|
|
|
I am not sure that I understood your question ? You want to add some controls dynamically to specified position on the form . So try to use contentplaceholder. You can add controld to this holder. Place the control where u wan to show them
|
|
|
|
|
Hi Dear ,
I guess you created controls checkbox runtime , and added controls like
[Parent].controls.add() and then allocate location property as point on parent control of checkbox [here maybe Form]
Develop2Program & Program2Develop
|
|
|
|
|
hi,
I have my vb.net class library. now I want to use two c# class files in my vb.net class library. So how to do that?
I want to use c# class's methods in my vb.net class.
Please advice.
Thanks,
Sun Rays
|
|
|
|
|
|
You cannot have classes written in different languages compiled into the same assembly.
What you will have to do is add a Second project to your solution (a c# class library project) Add the c# classes to the c# project. Now add a project reference from your vb project, to the c# project.
Like this you can access the c# classes from the vb project, and step through into them when debugging.
If you have knowledge, let others light their candles at it.
Margaret Fuller (1810 - 1850)
|
|
|
|
|
Post the two classes here and I'll convert them for you.
(or email me at the info email related to the url in my signature).
David Anton
www.tangiblesoftwaresolutions.com
Instant C#: VB to C# converter
Instant VB: C# to VB converter
Instant C++: C# to C++ converter, VB to C++ converter
Instant Python: C# to Python converter, VB to Python converter
|
|
|
|
|
Hi ,
I 'am working on an application to store information of daily letters coming into my office. I want to keep scanned copy of the original( in pdf format only ) and have access on them within my program. Right now , I have to manually scan the letters ( after storing other information in db ) using adobe acrobat. ( adobe acrobat has a button 'Create PDF >> from Scanner ) . is there any way that i can do something like that in my application. OR , Is there anyway that I can Call adobe to do what I am doing now, without manually scanning and giving them filename , Path etc. ??
Any help will be appreciated. THANK YOU.
|
|
|
|
|
This, this and, especially, this (follow the links) may help.
Best regards,
Dmitry.
P.S. One more thing.
P.P.S. Do a Google search for "VB.net scanning". It'll give you a plethora of links
-------------------------
Don't worry, be happy )
|
|
|
|
|
Hi
thank you for Your help.
I managed to do the scanning part.
but I want the scanned image to be saved as a .pdf file. ( sometimes its multiple page file) . how can i do that?
thank you.
|
|
|
|
|
Hi i have 2 drop downlist box,
in that one i can select year another one month,
if i select the month,that month all dates want to be display in datagrid,
how to do that
Regards,
Magi
|
|
|
|
|
Magh_M wrote: if i select the month,that month all dates want to be display in datagrid,
Using DateTime.DaysInMonth(year,month) you can get the no of days in that month. Put that in a loop and add all to the date dropdown list.
|
|
|
|
|
hi frnds,
i need to implement spell check functionality in windows form for dis
i'm using rich text box as an editor and all functionality of word
bt not able to use spell check.
so if any 1 knows abt spell check coding for win forms plzzz help me
thnxs
|
|
|
|