|
Can anyone send me the source code for designing a timed demo.ie it should be a trial version and show message like ,The application will expire in 30 days and should show reminders for 20/10/5 days.Thanks in advance.
|
|
|
|
|
i did this with the hepl of Registry.
Like at the first execution of the application , it will write the values into registry.then next time it will continue executing the same , until it reach the expiry date.
|
|
|
|
|
Can u send me some source code ont his.Like which events are being handled and how are u checking and writing to registry etc
|
|
|
|
|
|
i have the following code in c#
can i get it converted into VB.net ?
DllImport("ODBCCP32.dll")
private static extern bool SQLConfigDataSource(IntPtr parent, int request, string driver, string attributes);
|
|
|
|
|
Google and you will find web sites that convert small bits of C# to VB.NET and vice versa.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Can u provide any link that converts mere this chunk of code.
-- modified at 3:28 Friday 18th May, 2007
|
|
|
|
|
Google not working where you are ?
www.pinvoke.net may even have the pinvoke signature that you're looking for.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
i was expecting the link . I tried but in Vain
|
|
|
|
|
Christian is trying to tell you to Google it so you're not so helpless every time you run into a problem or a piece of code you need translated. Without the ability to do research, you won't last very long in this business. Why is it so hard to type "convert c# to vb.net" into Google?
The 2nd one down in this list[^] is probably one of the best out there.
|
|
|
|
|
As others have indicated, converters are quickly obtained via a quick googling.
That said.. some of the free online converters fail on this particular conversion.
It should convert to:
<dllimport("odbccp32.dll")> _
Private Shared Function SQLConfigDataSource(ByVal parent As IntPtr, ByVal request As Integer, ByVal driver As String, ByVal attributes As String) As Boolean
End Function
Note that the older 'Declare' style is also possible, but the 'empty shared function' approach is consistent with other .NET languages.
David Anton
www.tangiblesoftwaresolutions.com
Instant C#: VB to C# converter
Instant VB: C# to VB converter
C++ to C# Converter: converts C++ to C#
Instant C++: converts C# to C++/CLI and VB to C++/CLI
Instant Python: converts C# to IronPython and VB to IronPython
|
|
|
|
|
For some reason the forum software is omitting the attribute.
It should have an attribute containing "DllImport("ODBCCP32.dll")"
David Anton
www.tangiblesoftwaresolutions.com
Instant C#: VB to C# converter
Instant VB: C# to VB converter
C++ to C# Converter: converts C++ to C#
Instant C++: converts C# to C++/CLI and VB to C++/CLI
Instant Python: converts C# to IronPython and VB to IronPython
|
|
|
|
|
hi........
hoiw to use public access specifiers in functions...
vb.net
thnaks & regards
|
|
|
|
|
Public: Gives variable public access which means that there is no restriction on their accessibility
Private: Gives variable private access which means that they are accessible only within their declaration content
Protected: Protected access gives a variable accessibility within their own class or a class derived from that class
Friend: Gives variable friend access which means that they are accessible within the program that contains their declaration
Protected Friend: Gives a variable both protected and friend access
Static: Makes a variable static which means that the variable will hold the value even the procedure in which they are declared ends
Shared: Declares a variable that can be shared across many instances and which is not associated with a specific instance of a class or structure
ReadOnly: Makes a variable only to be read and cannot be written
access-specifier sub FunctionName()
End Sub
-- modified at 2:38 Friday 18th May, 2007
|
|
|
|
|
You can make an attempt to read.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
|
|
|
|
|
can i convert my system date time format programatically in vb.net
|
|
|
|
|
Convert it to what?
Are you asking how to change the system settings??
You'll have to explain what you want a bit more to get any kind of a useful answer.
|
|
|
|
|
Sorry , Actually i meant , how to change the system date/time settings?
|
|
|
|
|
Do you mean set the system date, or do you mean change locale settings ?
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Sir , i want to set the system date.
please provide the answer.
-- modified at 3:29 Friday 18th May, 2007
|
|
|
|
|
That has to be done through the Win32 API function SetLocalTime[^].
|
|
|
|
|
Hi,
I have to get the items selected in the checked list box and accordingly insert the id's in the table I have written the following code but it throws up an error.
For i = 0 To chkLstProd.Items.Count - 1
If chkLstProd.Items(i).Selected = True Then
val = chkLstProd.GetSelected(i)
clsInData.InsertVchProd(vid, val)
End If
Next
Can anyone tell me where i am going wrong.
Thanks,
Riz
|
|
|
|
|
as such checked list box don't provide the option to populate itself with both ids and text(value member and display member)
but using the framework class
Imports Microsoft.VisualBasic.Compatibility.VB6.Support
and it's function
GetItemData(,) <br />
and<br />
SetItemData(,)
will help u sort out the problem
|
|
|
|
|
I would guess that GetSelected takes the index of the item in the selected items collection, and if you have 2 items selected, it wants 0 and 1, not 5 and 7, even if those are the indexes of the items.
There's a SelectedItems property, isn't there ?
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
i have a problem retrieving all available information in a specific column in Excel File. A Column in Excel has many cell data information that could reach a thousand characters if needed, so when i converted the said Excel File to a dataset most of the Column data information were omitted, i just assumed that a DataColumn has a specific Limit of character length allowed that's why this problem occur.
Below is the function i'm using:
Public Function GetExcelData(ByVal sFile As String, ByVal strSheetName As String) As Data.Dataset
Dim strCon As String = "Provider=Microsoft.Jet.OLEDB.4.0;" & _
"Data Source=" & sFile & ";" & _
"Extended Properties=""Excel 8.0;HDR=YES;IMEX=1"""
Dim conexcel As OleDb.OleDbConnection
Dim cmdExcel As OleDb.OleDbCommand
Dim daExcel As OleDb.OleDbDataAdapter
Dim dsExcel As Data.DataSet
Try
conexcel = New OleDb.OleDbConnection(strCon)
conexcel.Open()
cmdExcel = New OleDb.OleDbCommand("Select PDFColorPages from [" & strSheetName & "$]", conexcel)
daExcel = New OleDb.OleDbDataAdapter(cmdExcel)
dsExcel = New Data.DataSet
daExcel.Fill(dsExcel)
Return dtTable
Catch ex As Exception
MsgBox(ex.ToString)
Finally
conexcel.Close()
conexcel.Dispose()
cmdExcel.Dispose()
daExcel.Dispose()
dtExcel.Dispose()
End Try
End Function
|
|
|
|