|
Why don't you use two mediaplayer controls (in the same place one hidden and one visible.) and get rid of all these stuff?!!
Play the first video, pause it, hide its mediaplayer control, show the other control, play the short video, hide its control and so on!!!
|
|
|
|
|
I've created a macro (in .net 2003) to capture the build event…the macro is working fine while I'm running it through .net IDE…the problem is that when I'm building the .sln from Visual Studio Command line, the macro is not getting invoked...i want that macro to be run while building the project from command line so that I can schedule it as a job in windows.
Please assist me if u know how to run a macro from visual studio command prompt without opening the IDE.
I have searched in net and have found some syntax but they are opening the solution also which I don't want to do.
The command which I tried was
devenv "C:\Inetpub\wwwroot\XXX\XXX.sln" /command "BUILDMACRO.BuildMacro.vsmacros" /build release /out "C:\Inetpub\wwwroot\XXX\Build.log"
and I'm getting the following error for this command even though my solution gets build successfully without invoking the macro
Error ::
Not enough storage is available to complete this operation.
Please help us out !!
Thanks in advance
Regards,
Vivek
-- modified at 10:22 Wednesday 21st November, 2007
|
|
|
|
|
This macro will not get run if you execute the build from the command line. Neither will pre-build and post-build commands. You're going to have to move the macro's functionality to something else you can run from a batch file.
|
|
|
|
|
thanks for the reply but i am sorry i did not understand, if i am moving my macro out how will i be able to capture my build event ?
is there any other way to capture the build event inside VB.net 2003
i want to capture my build event and increment my build number and label in VSS with that build number
i cannot use nant script as it would not work in my project
what should i do to automate my build process ???
|
|
|
|
|
vivek_luke wrote: if i am moving my macro out how will i be able to capture my build event ?
There is no "event" to capture. You're not running the entire Visual Studio IDE, so there's nothing to run. You have to rewrite your code to do whatever it needs to do using utilities and whatnot that run from the command line. You cannot use any facilities inside Visual Studio to do this. Your macro will never run.
You have to update the version numbers using whatever command line utilities you chose or need to process and edit whatever files you need to do what you want. Macros will NOT be available to you. You might want to consider looking into PowerShell to do some of this.
|
|
|
|
|
using ENVDTE namespace i can get the event onbuildbegin inside vb.net 2003
in C#.net i can capture post build events while building from command line
i just want to build my solution from command line which will change the assembly version number
|
|
|
|
|
How do I restrict a user from only selecting the items in the collection?
|
|
|
|
|
DropDownMode i believe, you want it as a dropdownlist so that they cannot type.
|
|
|
|
|
Hi!
I would like know about if exist a method for detect the connection/disconnection of LAN network using Windows's API in vb, i found in anothers internet sites but i not found nothing as help, i sorry but, can you help me in this problem?, thanks for your help.
|
|
|
|
|
Check the My.Computer.Network.IsAvailable property.
|
|
|
|
|
Hello every one,
I am making a VB 2005 application in express edition, to let the user do a free hand drawing.
I want to hide the mouse pointer / courser over the picture box.. Is it possible...if yes plz let me know..
Regards
Nishkarsh
|
|
|
|
|
If you want to allow user to do free drawing in that case instead of hiding mouse cursor you should use a cursor like Cross, this can be done by simply setting cursor property of the picture box-
PictureBox1.Cursor = Cursors.Cross
However if you do not want to see any cursor when mouse comes over picture box control, you will need to use API function.
Following code should give you the desired result-
-------------------------Code Start------------------------------------
Private Declare Function ShowCursor Lib "user32" (ByVal bShow As Long) As Long
Dim Show As Boolean
Private Sub PictureBox1_MouseEnter(ByVal sender As Object, ByVal e As System.EventArgs) Handles PictureBox1.MouseEnter
Show = False
ShowCursor(Show)
End Sub
Private Sub PictureBox1_MouseLeave(ByVal sender As Object, ByVal e As System.EventArgs) Handles PictureBox1.MouseLeave
Show = True
ShowCursor(Show)
End Sub
----------------------------Code End------------------------------------------
I hope this helps .
-Dave.
Dave Traister,
ComponentOne LLC.
www.componentone.com
|
|
|
|
|
Use Cursor.Hide() and Cursor.Show() in MouseEnter and MouseLeave events of the picture respectively.
|
|
|
|
|
Hi
Is there any direct way to get the number of records in random access files except by calculating the length of file and then dividing it by the length of each record.
(Visual Studio 2003)
Thanks
reman
|
|
|
|
|
You have two choices. You can either "do the math", or you can read the entire file record-by-record and count them. There's no other way to do it.
|
|
|
|
|
I am relatively new to vb.net.
I have a windows form with a command button followed by 3 radion buttons (ie GoBtn, ByDate, ByRef, None). None is marked checked at design time.
At run time, if I hit Go then the ByDate radio button gets turned on. Is this 'normal'? I don't understand this behaviour.
Thanks for your help!
QuickBooks Programming, Add-ons, Services
www.AaaTeX.com
|
|
|
|
|
It depends on the order that the radio buttons were created in the designed generated code.
To "fix" this, just set the default button in your form's Load event, or some other initialization code that sets up a known state.
|
|
|
|
|
Hi
I am not very familiar with shell programming. I am using SHChangeNotifyRegister to be notified of file system changes. Everything works fine except with the SHCNE_CREATE notification when a new file is created.
Then, in this case only, the pidl returned by the function will provide the new file's display name, but SHGetPathFromIDList will not provide the path. I can only guess that in the case of a new file being created, the function only sends a pidl which is relative to the parent folder.
I wondered if anyone knew how I can get from the pidl provided by SHGetPathFromIDList to a fully qualified pidl so that I can retrieve the new file's system path.?
Strangely,when a file is deleted the function does provide a fully qalified pidl from which the path may be obtained.
Public Sub NotificationReceipt(wParam As Long, lParam As Long)
Dim shns As SHNOTIFYSTRUCT
Dim sDisplayname As String
Dim NewName As String
Dim OldName As String
Dim FileData As FILE_DATA
On Error Resume Next
'Fill the SHNOTIFYSTRUCT from its pointer.
CopyMemory shns, ByVal wParam, Len(shns)
If shns.dwItem1 Then
sDisplayname = GetDisplayNameFromPIDL(shns.dwItem1) 'works in all cases
If Len(sDisplayname) Then
OldName = GetPathFromPIDL(shns.dwItem1) 'fails only when lParam SHCNE_CREATE
........................
Else
End If
End If
If shns.dwItem2 Then
sDisplayname = GetDisplayNameFromPIDL(shns.dwItem2)
NewName = GetPathFromPIDL(shns.dwItem2)
If Len(sDisplayname) Then
......................
Else
End If
End If
..................
Any help would be greatly appreciated.
Bertram
|
|
|
|
|
Hello
Transferring settings Pagesetup to printpreview
tks
Fulvio
|
|
|
|
|
Hi..
This is a two step process..
take a print document and assign it the printerSetting and page settings at the place where you call page setup dialog
If PageSetupDialog1.ShowDialog = Windows.Forms.DialogResult.OK Then
PrintDocument1.PrinterSettings = PageSetupDialog1.PrinterSettings
PrintDocument1.DefaultPageSettings = PageSetupDialog1.PageSettings
end if
after that use the same page for preview
PrintPreviewDialog1.Document = PrintDocument1
PrintPreviewDialog1.ShowDialog()
this will automatically reflect all the setting in preview window
Good luck
|
|
|
|
|
|
Hello friends i want to copy a fiel in vb6
if u have any idea about it.
i tried filecopy(sourcefile,destination)
but it give permission denied runtime erro 70.
|
|
|
|
|
do you have the permission to copy that file?
If not then its kinda obvious
else i would say try another file
"All your base are belong to us..."
Mr. Cats (2110 A.D.)
|
|
|
|
|
Yes i have the permission
|
|
|
|
|
Then that file is probably either read-only or open by another process.
|
|
|
|