|
Sir/Madam,
I was trying a compression program in vb.net.I did it well in C++.But it is not getting possible in vb.net.Can somebody please send the code project link that illustrate the utility of single and double link list
in vb.net
Thanks and regards
Pankaj
|
|
|
|
|
Hi there, I am new to VB.NET and I would like to create a data grid on a form, which allows me to add data, and save to a database.
The fields on the Grid will be text box, Combo box, and another to allow the user to browse to find a file location.
I have been unable to successfully create this, and I also am unable to find any decent tutorials. Can anyone help please?!
Your help is appreciated,
Maz
|
|
|
|
|
Hi there,
I Need to embed virus checking into my appliction.
If any1 has any clue / info on this topic please let me know
Thank you!
M. Nauman Yousuf
|
|
|
|
|
Virus checking is a big deal. Companies make their entire business on doing it well. It's doubtful that you can add it to your app as an afterthought. To compete, you need to dedicate many man years of development.
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 )
|
|
|
|
|
Hi Christian,
I think he meant to call a default antivirus software, already installed on the PC, through his program. I think, this should be easily possible. But even i dont know how to do it ? Can you please guide in this respect, if you have some knowledge about it ?
"A good programmer is someone who looks both ways before crossing a one-way street." -- Doug Linder
coolestCoder
|
|
|
|
|
Thank you! Graus,
But I have heard that products like Symantec Nortan and Macfee provide interfacs for checking files for virus.
Any update in this please let me know
Thank you!
M. Nauman
"Mess with the Best, Die like the rest"
|
|
|
|
|
OK, that's not what I thought you said. In that case, I guess your best bet is to check their sites to see which ones offer such an interface, and then buy the one you decide to work with. I have no idea, I've never done that.
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 )
|
|
|
|
|
Hi,
I have sucesfully added a button in Microsoft Office Appliction as add-ins.
I am yet unable to get the file path of active document.
If any1 has any info on this please let me know.
Thank you!
|
|
|
|
|
I,m Into a project were as im needing to build A proprietary web browser, as i have various code on my webserver, that only allows this Browser to Access the Information, now im guessing there are several ways to accomplish this possibly w/ Cookies, and Sessions perhapes, i'd like to discuss my idea here and have u guys tell me if im heading into the Correct Direction,
what im really needing is a browser that Doesn't use the IE web control OCX so when my web servers Browser detection PHP Code see's it not as IE / Opera / Mozilla / NS / or any other flavor it lets it gain Access, otherwise it Blocks it with my 404 page, can anyone Give me more insite to my idea's thanks alot
|
|
|
|
|
Sounds like you need to write an entire web browser. This is a major task, especially if expect to support CSS and Javascript. Good luck.
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've already written 2 web browsers but using the Microsoft web browser control, i wanna create my own web browser control
|
|
|
|
|
Crash_beta wrote: I've already written 2 web browsers but using the Microsoft web browser control
No, you haven't. You've written a couple of shells around the existing IE web control.
Crash_beta wrote: i wanna create my own web browser control
You'll have a TON of work to do. You'll need the Http classes in the System.Web class to request pages and build a custom request header so the server can ID your browser. Unless you want to write your own HTML parser and rendering engine, you have to find a parser and rendering library to do it for you. There isn't one in the .NET Framework. You'll also have to figure out what you want your browser to support, like JavaScript and CSS. Have fun incorporating that stuff...
Basically, every newbie who comes up with this idea never has a good reason to do it. They only THINK they do. There's always a better way to do what they want.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
i think u repeated what i had said earlier , i had said I'd written 2 web browsers but using the Microsoft web browser control " ofCourse " php See's it as a IE Browser< "go figure that"
u had said Ive written a couple of shells around the Exsisting IE web control< " really? i did ? thats amazing" at anyrate I'm still Burning the Flames, and Working on it, till then ill use a ActiveX Object in my page to pass Parameter if no paramter no access, i have like 4 idea's not just the proprietary browser Concept,
|
|
|
|
|
Action required :-
Splashscreen to stay untill Progressbar has finished
Public NotInheritable Class SplashScreen1
Private Sub SplashScreen1_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
Form1.Visible = False
Timer1.Enabled = True
End Sub
Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
If ProgressBar1.Value <> ProgressBar1.Maximum Then
ProgressBar1.Value = (ProgressBar1.Value + 1)
Label1.Text = "Loading " & ProgressBar1.Value & "% Complete"
End If
If ProgressBar1.Value = 1 Then
Timer1.Interval = 800
End If
If ProgressBar1.Value = 2 Then
Timer1.Interval = 75
End If
If ProgressBar1.Value = 12 Then
Timer1.Interval = 600
End If
If ProgressBar1.Value = 14 Then
Timer1.Interval = 1500
End If
If ProgressBar1.Value = 30 Then
Timer1.Interval = 500
End If
If ProgressBar1.Value = 50 Then
Timer1.Interval = 250
End If
If ProgressBar1.Value = 75 Then
Timer1.Interval = 100
End If
If ProgressBar1.Value = 96 Then
Timer1.Interval = 2000
End If
If ProgressBar1.Value = 100 Then
Form1.Visible = True
Me.Visible = False
End If
End Sub
End Class
Can anyone tell me why it's not staying?
|
|
|
|
|
It's impossible to say why it's not staying up because you haven't shown the code that creates and shows this SplashScreen form. You don't say what your project's Startup Form is either.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
Dave Kreskowiak wrote: It's impossible to say why it's not staying up because you haven't shown the code that creates and shows this SplashScreen form. You don't say what your project's Startup Form is either.
Startup form is Form1, and you allready have seen the create /show code.
The forms for this project are :-
SplashScreen
Form1
Form2
|
|
|
|
|
WestSideRailways wrote: you allready have seen the create /show code.
No, we haven't. All we've seen is the code inside the SplashScreen, not the code that created an instance of it and .Show ed it.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
Dave Kreskowiak wrote: No, we haven't. All we've seen is the code inside the SplashScreen, not the code that created an instance of it and .Showed it.
Well according to the tutorial on Dream-in-code i don't need to create a instance of it.
It works well as is, BUT does not stay on screen long enoght.
So you are saying that i need to do something like the following :-
dim frmsplash as splashscreen
frmsplash.show
and this code would be in the handles me.load for form1 ?
|
|
|
|
|
Something like that... That's the code you're not showing us, or what the code is around that little section.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
No, we can't. What is Form1 ? How is it set in this class ? How is the SplashSCreen instance created ? This is probably the problem, it's probably not a member variable, and is falling out of scope.
The code we need to see, has not been posted.
A progress bar that sets itself based solely on a timer is kind of useless.
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 )
|
|
|
|
|
Christian Graus wrote: A progress bar that sets itself based solely on a timer is kind of useless.
Well all it is there for is JUST FOR SHOW
|
|
|
|
|
Sure, but your splash screen has to be a member, that's almost certainly why it didn't work before, and then you can call a method to move the progress bar as the program loads. Or, don't have the progress bar, if it doesn't mean anything.
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 )
|
|
|
|
|
By my calculations your splash screen should stay up for approximatly 56 seconds. That can't possibly be what you intended. Anyway based on your code and description I would say you added a form to your project and selected 'splash screen'. This doesn't mean your application will start with a splash screen. In order for your application to start with the splash screen you need to set that form as your splash screen. To do that you'll need to go to the project properties and under the Application tab you should see 'Splash Screen' with a dropdown to select the desired form. You may have already done that but I couldn't tell if your form was displaying at all. However if you've gotten that far your form will still dissapear once form1 is loaded and the minimum display time has been met, whichever comes second. Since I get the impression your splash screen is simply ornamental I would just pick a time you want it to display. You can set the minimum time in the splash screens 'New' constructor. Use a timer to update the progess bar. The value will be the percentage of time elapsed * 100. So if you want to display for 3 seconds and the elapsed time is 2 secnods the value would be 66. Here's an example of what I mean.
Public NotInheritable Class SplashScreen1
'Minimum time in seconds to show this splash screen
Private Const DisplayTime As Integer = 5
WithEvents tmr As New Timer
Dim sw As New Stopwatch 'Stopwatch to track time since shown
Public Sub New()
' This call is required by the Windows Form Designer.
InitializeComponent()
'Set minimum time to display
My.Application.MinimumSplashScreenDisplayTime = DisplayTime * 1000
'Update progress every 10/1000 sec
tmr.Interval = 10
End Sub
Private Sub tmr_Tick(ByVal sender As Object, ByVal e As System.EventArgs) Handles tmr.Tick
'Calculate value for progess bar
Dim elapsed As Integer = (sw.ElapsedMilliseconds / (DisplayTime * 1000)) * 100
If elapsed > 100 Then elapsed = 100
ProgressBar1.Value = elapsed
End Sub
Private Sub SplashScreen1_Shown(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Shown
sw.Start() 'Begin stopwatch
tmr.Start() 'Start timer
End Sub
End Class
|
|
|
|
|
THANKS that works perfectly
And i can adjust the time to anything i like.;)
|
|
|
|
|
hello,
Does anybody have any idea why update doesn,t save updated fields. Code below runs OK. but doesn't save into CallerRecords table.
I am using VB.NET. thanks.
Here is the code:
Private Sub btnupdate_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnupdate.Click
Dim connectionString As String = "Provider=SQLNCLI;Server=A45292\SQLEXPRESS;DataBase=FSS;Trusted_Connection=Yes"
Dim sqlString As String = "SELECT * FROM CallerRecords Where RecordNo =" & TextBox2.Text
dbConn = New OleDb.OleDbConnection(connectionString)
dbConn.Open()
da = New OleDb.OleDbDataAdapter(sqlString, dbConn)
da.Fill(ds, "CallerRecords")
Dim tbl As DataTable
tbl = ds.Tables("CallerRecords")
Dim selectedRows() As DataRow
selectedRows = tbl.Select("RecordNo = " & TextBox2.Text)
If selectedRows.Length > 0 Then
selectedRows(0).Item("FirstName") = FirstNameTextBox.Text
selectedRows(0).Item("LastName") = LastNameTextBox.Text
selectedRows(0).Item("CallerPhone") = CallerPhoneTextBox.Text
selectedRows(0).Item("HospitalNumber") = TextBox1.TextEnd If
Dim myBuilder As OleDbCommandBuilder = New OleDbCommandBuilder(da)
myBuilder.GetUpdateCommand()
da.UpdateCommand = myBuilder.GetUpdateCommand()
da.Update(ds, "CallerRecords")
dbConn.Close()
MessageBox.Show("Database Is Updated")
programmer
|
|
|
|