|
if u have installed winzip on ur machine and if it allows u zip/unzip at command prompt then u can do it easily....
1) create a process by specifing executable path of winzip.exe...
2) specify other parameters i.e. files to zip/unzip with required switches...
3) run this process...
Thanks & Regards...
Amit
|
|
|
|
|
Hello everybody!
This may sound like a really stupid question, but let me tell you that i'm new to .Net, so please be patient with me!
I need to find out what is the equivalent of the .additem function from VB in .Net.
Thank you sooo much!
|
|
|
|
|
That depends, what does it do ? Is it a method on a control ? If so, the controls have Items collections, so it becomes Items.Add.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
Hi guys this is probably a really stupid question, but is there a better way of testing if an object implements an interface then this:
Try
CType(f, ISomeInterface)
Return True
Catch ex As Exception
Return False
End Try
Pablo
while(1){DoTheDo();}
|
|
|
|
|
I believe VB has syntax for the 'is' keyword, in C# it's if f is ISomeInterface. Also, you can compare f.GetType() and typeof(ISomeInterface).
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
Thanks, it seems you are the one to give me the answers most of the time LOL. Glad to have you here
Pablo
while(1){DoTheDo();}
|
|
|
|
|
Actually that didn't quite work...but it did give me another idea that works:
If Not f.GetType.GetInterface("ISomeInterface") Is Nothing
thanks
Pablo
while(1){DoTheDo();}
|
|
|
|
|
The proper syntax for using the GetType method is:
if(f.GetType()==typeof(IOtherType))
return true
else
return false
Visual Basic should not be much different from this.
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[ ^]
|
|
|
|
|
i have created a datagrid using the vb.net wizard for my customer form, where you can add delete and navigate through records.
i have been searching the internet to find a way i can search a record in the customer table by the given primary key which is idsCustomerId. I am a complete beginner. Does anyone have any sample code?
This is what is generated by the wizard that i can see.
Public Class frmCustomer
Private Sub TblCustomerBindingNavigatorSaveItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TblCustomerBindingNavigatorSaveItem.Click
Me.Validate()
Me.TblCustomerBindingSource.EndEdit()
Me.TblCustomerTableAdapter.Update(Me.CottageBookingSystemDataSet.tblCustomer)
End Sub
Private Sub frmCustomer_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
'TODO: This line of code loads data into the 'CottageBookingSystemDataSet.tblBooking' table. You can move, or remove it, as needed.
Me.TblBookingTableAdapter.Fill(Me.CottageBookingSystemDataSet.tblBooking)
'TODO: This line of code loads data into the 'CottageBookingSystemDataSet.tblCustomer' table. You can move, or remove it, as needed.
Me.TblCustomerTableAdapter.Fill(Me.CottageBookingSystemDataSet.tblCustomer)
End Sub
Private Sub ToolStripButton1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ToolStripButton1.Click
End Sub
Private Sub ComboBox1_SelectedValueChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ComboBox1.SelectedValueChanged
Me.TblCustomerBindingSource.Position = Me.ComboBox1.SelectedIndex
End Sub
End Class
|
|
|
|
|
Hello there, i have this task to get the source code from a given url. I am sure there is some sort of method in vb.net where you can get that and save it in a memory or text file, however it seems that i am not looking in the right place. If anybody knows, could you please give me some info? Regards
-- modified at 17:18 Saturday 3rd February, 2007
-- modified at 17:21 Saturday 3rd February, 2007
imatureStudent
|
|
|
|
|
Look up the WebRequest or the WebClient classes.
---
single minded; short sighted; long gone;
|
|
|
|
|
Thank you vey much! Great, this is what i needed
ImatureStudent
|
|
|
|
|
Hi all,
I have a Movie Player Pro ActiveX Control attached in my project. I am able to play all different types of files on it apart from the one I want to play.
The file I wish to play is an .avi file (all other .avi files work).
The file i want to play was filmed on a DV camera, edited in Windows movie maker, then i saved it as a .wmv file (by default), which I converted to a .avi file.
I cant seem to understand why this doesn't work on my program?
What happens is I load the file, press play and I can hear the sound, but cannot see anything. It's just a blank screen.
I would appreciate any help on this matter.
Thanks in advance
Jaidev
|
|
|
|
|
Sounds like your avi is using an external codec, which the control can't see, for some reason. I presume WMP plays it just fine ? Have you tried using the WMP control ?
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
Yes thats right, when I play the footage in WMP, then it plays it just fine, just doesnt seem to play very well in vb when using the movie player pro activex control.
I dont want to add WMP to my project, as I am not able to do certain things (for example pause the footage at certain intervals using the timer).
Is there a way around this, (basically a way for me to play the video on my current program?) - do i need to download a codec?
Thanks in advance
Jaidev
|
|
|
|
|
You obviously have the codec, the problem is that your control can't find it.
You could try using managed DX, and see if that will play it, assuming this is VB.NET. Otherwise, I'm not sure what you can do.
You can pause the footage using a timer with the WMP control, however.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
well... the thing is that the program runs fine on my desktop, however I need it to be working on my 'laptop' so that I can show it when on the move.
Therefore my laptop most probably doesnt have the codec - is there a way of finding which one i need?
Im using visual basic express 2005, - what is managed DX? and can i use it?
WMP - this would be a great option for me to use, as I no that the footage plays on this (both on desktop and laptop), however how do I get the timer function to pause it at certain intervals?
Currently im writing "AxMediaPlayer1.pause() = true", but for AxWindowsMediaPlayer1.pause() = true" doesnt quiet work, as I understand that 'pause' is not a function.
Thanks in advance
Jaidev
|
|
|
|
|
it's something like axWMP.ctlcontrols.pause()
Yeah, sounds like the notebook needs the codec. Not sure how to work that out, but it was probably installed by the software you used to convert to AVI.
jady84 wrote: what is managed DX? and can i use it?
DirectShow is the part of DirectX that does audio and video stuff. I believe you can use it with the express edition.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
Great! thats solved alot of problems, WMP works and pauses on my set timed intervals.
However just one more thing, I previously had code where I could click file and open and choose a video to play on the player. However some thing like this:
Private Sub OpenToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles OpenToolStripMenuItem.Click
Me.OpenFileDialog1.Filter = "All Files (*.*)|*.*|mpg (*.mpg)|*.mpg|mpeg (*.mpeg)|*.mpeg|wmv (*.wmv)|*.wmv |avi (*.avi)|*.avi|mov (*.mov)|*.mov|mp4 (*.mp4)|*.mp4|3gp (*.3gp)|*.3gp"
Me.OpenFileDialog1.ShowDialog()
* Me.AxWindowsMediaPlayer1.FileName = Me.OpenFileDialog1.FileName *
End Sub
doesnt quiet work, I no i can set the URL in properties to get the WMP to play what I want it to, but is there another way from the users screen to do this also?
And finally is there a way to include chapters, (as WMP comes integrated with the 'next' and 'previous' keys, how can I get these to work?
Thanks in advance,
Jaidev
|
|
|
|
|
jady84 wrote: * Me.AxWindowsMediaPlayer1.FileName = Me.OpenFileDialog1.FileName *
Me.AxWindowsMediaPlayer1.Url= Me.OpenFileDialog1.FileName
works just fine for me.
jady84 wrote: And finally is there a way to include chapters,
That UI is there because WMP can play DVDs. Other video files don't support chapters AFAIK.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
i want send email from smtp but i can`t convert val(RichTextBox.propeties like color & font & siz)to mail.body format
or i want convert RichTextBox.propeties to html
my code
Dim MA As New MailMessage
MA.Subject = "hi"
MA.BodyFormat = MailFormat.Text
MA.Body = thes is proplem i want to send my Design in RichTextBox
MA.From = "ahmedbondok1982@hotmail.com"
MA.To = "hakbondok@yahoo.com"
SmtpMail.SmtpServer = "smtp server"
SmtpMail.Send(MA)
Bad English soory
Ahmed El-Badry
|
|
|
|
|
Hi Ahmed,
Have you tried to use MailFormat.Html ? Text formatting can not be converted to normal text, but it can easily be changed to html.
The settings of the mail client of the recipient can not be controlled anyway. But if they have set it to RichText, the client should convert html without a problem, and vice versa.
Johan
My advice is free, and you may get what you paid for.
|
|
|
|
|
I want to send mail thru office outlook 2003 with vb.net 2003 with embeded images ,but mailitem.body will except a string only.I need ur help urgently.
I was once able to send a mail with embeded image using system.diagnostics.process namespace where I used body=nameofimagefile.
I lost that code and link and don't seem to recapture that.Thanks
Please help.
|
|
|
|
|
Sorry my friend, I have no idea how to do that. Try to post a new question on this forum, maybe someone else has the code you need.
good luck,
Johan
My advice is free, and you may get what you paid for.
|
|
|
|
|
Hi Friends,
I make a flexgrid in which ,i attach combox box and check box using the control array method on each row of flexgrid.
The problem is , while i scroll the flexgrid, the combo and check boxs are not moving properly with grid. Can anybody help me to solve this scrolling problem of flexgrid.
Thanks in advance
|
|
|
|