|
Hi am looking to write a tutorial/training application that will have tranisitions between images...cross fade, pan & zoom etc. ... can't seem to find any examples on how to create these effects between images...just getting started in vb.net and looking for code examples to get up to speed.
thanks for the help!
Rick
|
|
|
|
|
You'd need to draw these yourself, manually. There's no built in support for anything like that.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Any pointers on where to look to get started?
Thanks for the response...
|
|
|
|
|
Read my image processing articles for info on accessing an image directly. Then create a control and write transitions that draw the first image, then progressively draw the second image over the top of it.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
OK - I need to way to know when a class property has changed.
I have a collection of PropertyInfo and add to it thus:-
Public Class Foo
Private _PropertiesChanged As New System.Data.PropertyCollection
Private _SessionId As String
Public Property SessionId() As String
Get
Return _SessionId
End Get
Set(ByVal Value As String)
_SessionId = Value
_PropertiesChanged.Add("SessionId", Me.GetType.GetProperty("SessionId"))
End Set
End Property
End Class
But some of my classes have a great many properties ... how can I make it so that is any property is updated it adds itself to the _ChangedProperties collection without this code overhead???
'--8<------------------------
Ex Datis:
Duncan Jones
Merrion Computing Ltd
|
|
|
|
|
The beauty of properties is that you can write this code at all. There's no way for it to happen automatically, thank goodness. I'd hate to pay for that overhead every time I wrote a property.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Well, I was thinking of marking the properties with an attribute so only those whose dirty state I cared about set the dirty state or having the class inherit from some base that implemented the dirty property implementation....
..but you're right - it doesn't seem to be possible. I shall just have to be less lazy.
'--8<------------------------
Ex Datis:
Duncan Jones
Merrion Computing Ltd
|
|
|
|
|
Have you considered having a single dirty flag for the class instance?
In the property set for the properties you are interested in just set that one flag.
Or do you need to know exactly which properties have changed rather than just "Something has changed on this class"?
|
|
|
|
|
I'd need to know exactly which properties have changed.
This is an extension to the code in this article[^]...currently in SQLTableInterop.SetObjectDataToTable it writes an SQL update statement for all the properties in the class...I want to restrict that to those properties that have changed.
'--8<------------------------
Ex Datis:
Duncan Jones
Merrion Computing Ltd
|
|
|
|
|
Hi,
I am trying to copy a file that is 287 characters long to a new location.
when I try the following to copy the file I get "The path is too long after being fully qualified. Make sure path is less than 260 characters."
Dim lcLongPath = "F:\287 characters long path...........txt"
Dim fi As FileInfo = New FileInfo(lcLongPath)
fi.CopyTo("G:\NewPath")
Does anyone know how to get around this limitation? Obviously some applications are capable of creating excessively long paths and file.
Thanks,
Zenly
|
|
|
|
|
Zenly wrote: Obviously some applications are capable of creating excessively long paths and file.
Are you sure about that? I always thougt(how do you spell the past tense of to think???) that it was a limitation of windows that paths can not be longer that +- 250 chars, and the filename itself also not longer than 250 chars or something. So 500 charcters in total.
Pompiedompiedom...
"..Commit yourself to quality from day one..it's better to do nothing at all than to do something badly.."
-- Mark McCormick
|
|
|
|
|
The reason I thought some apps can create long paths is because the file currently exist on my machine.
The path is:
"D:\Share\TestMount\data\data\groups\123456\12345678\1234 1234567\notes\a 222 characters long....... file.msg"
I can create the file from a DOS window using
echo somthing > \\?\"D:\Share\TestMount...... file.msg"
in VB.Net when I try to access the file with Dim fi As FileInfo = New FileInfo(lcLongPath) a path too long exception error is generated.
Do you know how to access and create a file of this lenght or longer using vb.net?
thanks,
Zenu
|
|
|
|
|
Zenly wrote: "D:\Share\TestMount\data\data\groups\123456\12345678\1234 1234567\notes\a 222 characters long....... file.msg"
You're right, such a path can exist on windows, the filename is less than 250 chars or so, and the directory to it is also less.
[D:\ directory can be +-250 chars max \][filename can be +-250 chars max]
Sorry i can't help you any further, maybe it's a bug in .Net, like that .Net thinks that the total path must be less than 250 characters or so?
Pompiedompiedom...
"..Commit yourself to quality from day one..it's better to do nothing at all than to do something badly.."
-- Mark McCormick
|
|
|
|
|
Thanks.
Is there anyone else who may be able to assist?
|
|
|
|
|
Any single part of the path, a directory name or filename, can be up to 255(+/-) characters in length. But! When using a fully qualified path specification, the total length cannot exceed 260 characters.
In order to use the FQ path, you'll have to rename the file down to something more managable. Set the current directory to the path where the file is, rename it using only its filename to something shorter, then set the current directory back to what it was. You can then use the FQ path.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
This is doable but I have another scenario...
I have a file list that include a FQ path. My program reads this list and tries to extract the directory from each FQ path listed. It does this using "Dim ParentPath as string = Directory.GetParent(LongPath).ToString)".
When this is executed I get "path is too long". Is there a .net function that can be used that ingores the length of the string I pass and give back the path?
Thanks
|
|
|
|
|
This has nothing to do with the .NET environment, rather it's a limit of Windows and NTFS. There is no function in the .NET BCL that will do this for you without going to the Win32 filesystem functions.
If you need it to ignore the filesystem limitations, you'll have to write a function yourself that parses up the FQ path string and returns what you need using simple string manipulations.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Ok. i have pased the FQ path string and created all folders but when I chdir(path) then do a file.create(filename) it still gives a path too long error. The file is 222charaters.
Any ideas here.
|
|
|
|
|
It was worth a shot, but it doesn't look like it's going to work, no matter what you do.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Thanks. I will try to build my own class to handle this.
|
|
|
|
|
I´m using SSH1 to access an Cisco AP, but when I try to connect I get the following error
"An existing connection was forcibly closed by the remote host"
Has anybody seen this error before?
|
|
|
|
|
Hey there,
I have a game plays sort of like risk. You pick up a unit piece and move it around and drop here or there and it processes everything, but I noticed that the screen has some delay in repainting (about 1 second on my computer), I believe the problem is that it is trying to paint the whole screen instead of what is being looked at (IE, the map takes up 10 screens, and the user moves only 1/2 a screen and it paints all 10 screens worth of info). Is there a way to control this? I would really help with the flow of the game if it didn't delay all the time... Thanks for any help and I'll be sure to post when the game is ready to launch early next year!
Gaming at the GuildofBlades.com is the only way to really experiece the level 99 Soul-Sucking Sword!
|
|
|
|
|
Hey there, hang with me while I attempt to convey my problem better than on my other message board. I have a game plays sort of like risk. You pick up a unit piece and move it around and drop here or there and it processes everything, but I noticed that because of the dynamics of the game the screen has some delay in repainting the screen (about 1 second on my computer), but I do no need the map to be dynamic all the time. I was wondering if I could load in the dynamic map, take some sort of "screen capture" (though it's not a screen capture becuase the map is far larger than the screen) and display a static image. My other board said that screen capture can only get what's on the screen and I know that. But is there a way to grab it from memory, convert it to a static image, and display that instead? That's soo much for any help, and I'll be sure to leave a post when the game finally launches early next year!
Gaming at the GuildofBlades.com is the only way to really experiece the level 99 Soul-Sucking Sword!
|
|
|
|
|
I have a DataGrid on a Windows form that I populate using a DataSet object. Two of the columns may contain fields with Null values. When both fields in a row are Null, no problem, I display blank cells in the grid using a TableStyle object.
But if the first field in a row is not Null and the second one is Null, I would like to display in the second cell of the grid some text, such as "uknown", or "not applicable" (or maybe color the cell differently). Looping one by one through all DataGrid rows after populating the grid and examining cells data is not an option as I expect the grid to contain up to 2500 rows, so the whole process could be noticeably slow.
I first thought about using multiple table column styles, but I can't figure out how to switch from one style to another based data read at runtime.
I also tried this approach:
' populate the grid
objDGrid.DataSource = objDataSet
'
' define a currency manager
objCurMgr = CType(objDGrid.BindingContext(objDataSet, "openTasks"), CurrencyManager)
'
' define a Binding object attached to the "DataSource"
' property of the DataGrid
If Not (mobjBndg Is Nothing) Then
objDGrid.DataBindings.Remove(mobjBndg)
End If
mobjBndg = New Binding("DataSource", objDataSet, "openTasks")
objDGrid.DataBindings.Add(mobjBndg)
Outside the code portion of the form, I declared:
Private WithEvents mobjBndg As Binding
My idea was to use the Format and Parse events of the Binding object and change in code the formatting of data displayed in cells. I thought the Format event should fire once for each cell in a row when the DataGrid is being populated. But it never does. Why? What am I missing or doing wrong? Is there a better way to accomplish what I want? Can anyone shed more light?
I Googgled with "DataGrid + binding + dynamic formatting" and got zilions of hits, but only examples of simple bindings of controls such as TextBoxes. I couldn't get any example of complex data binding and dynamic formatting of a DataGrid control.
Thank you in advance for any suggestions and hints.
|
|
|
|
|
I'm a newbie. This is a data in 1 column it fill Remark 1 - 10. How i use Ms Acess(VBA) function or query statement to separate it to 10 column.
You are my hope T_T
Thanks
RemAAAARemRm2BBBBRm2Rm3CCCCRm3Rm4DDDDRm4Rm5EEEERm5
Rm6FFFFRm6Rm7GGGGRm7Rm8HHHHRm8Rm9JJJJRm9RmAKKKKRmA
|
|
|
|