|
You can, but since the real player component requires a bunch of supporting .DLLs and codecs, it's MUCH easier to just install it. Otherwise you'd have to write your own installer to make sure that all of these piece were in place to get the component your using to work.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
In VC++, with Sleep(1000) we can have about 1 second delay time. Do we have some thing like that in VB.net?
Thanks
|
|
|
|
|
|
System.Threading.Thread.CurrentThread.Sleep(1000)
|
|
|
|
|
how can I find the input value if exit in the data? I want to insert data to my database, and if the data is exiting in my database, then it isn't allowed to input this data.
Is anybody know how to code it?
Lisa
|
|
|
|
|
|
It seems that row validation fires when any one column of the row changes, so if you have a blank form that you are inputting values into and one of the things that you have to check is that both columns must contain data, how does it not flag the row as in error when the second col is still blank because you haven't got to it yet?
Thanks
|
|
|
|
|
I have two forms, main forms is viewing the data, the second form is open a data to update or delete, when I update or delete a data, then this form closes and return to main form, how can I update those data in the main form when the second form changed the data in database? do I need to call main form to reload the data after my me.close() in the second form?
Lisa
|
|
|
|
|
HI guys
I'm working on a simple program. Its supposed to be a network simulator to simulate simple routing algorithms and it consists of a small network design module where the user can actually draw a network with nodes and connectors on the screen.
I'm kinda stuck at the drawing part like I want to make a simple drawing environment like Microsoft visio, where you drag items like nodes and routers from a toolbox onto a main screen and connect them with lines that signify connections. The thing is that I've not done much in VB and I'd like some pointers on how could this be done i.e. just the drawing environment.
I'm using vb6 and could really use the help.
|
|
|
|
|
If you don't have much experience in VB, your going to have a very difficult time doing this. Your drawing environment is going to have to support Drag and Drop (medium difficulty), and your going to have to be able to walk an object hierarchy that you create by dragging and droping controls that represent network objects and links. This object heirarchy will be populated and connected by objects (controls) that you have to write that conform to a certain Interface, that you must also design. This Interface is a MUST because this is what your hierarchy is going to be built with. Each object will have "must have" properties in it that will supply the data to connect one object to the next.
This is definately NOT a beginner level project. I hope your well versed in Interfaces, Object Classes, and design patterns, because you going to rely on it HEAVILY in the this project. only about 10% of the code your going to write will be for handling painting. The other 90% will be for the object classes themselves, the code to simulate each object, managing the creation and destruction of those objects, managing the heirarchy tree, ...
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
I'm not like totally raw in VB6 I've made & used simple classes and activeX controls.. I'm just a bit rusty in VB6 thats all .
My object oriented concepts are pretty good I should say cos I'm pretty fine in VC++6. The only thing is that the restriction on this project is that its hould be in VB6.
I would like to know on how to start and where to begin.
|
|
|
|
|
gamerPotatoe wrote:
I would like to know on how to start and where to begin.
Start by designing your object model. You don't need VB to do that. You need to design an Interface for your objects that will allow you to walk your object tree. It will also need to support your design for your network simulation. You probably be make strong use of the factory design pattern. to create your objects as you need them.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Hi,
Do you know the equivalent for __LINE__ (C++) in VB.NET ?
|
|
|
|
|
There is no equivalent...
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Hai
I had developed one web application in dotnet with VB.net
as code behind. I had included one addtional Acitvex control
(FpLibX.ocx) in toolbar by selecting Cutomize tool bar. Then in Project/Add Reference /com i selected that control.
Now the problem for me is when i try to access the properties or
functions of that control i am getting following error
System.Runtime.InteropServices.COMException: catastrophic failure
Is there any thing wrong in my steps. Please help me. I am new to
Dotnet.
Regards
Sakthi
|
|
|
|
|
Did you add it to the toolBAR (the buttons at the top of Visual Studio IDE) or did you add it to the toolBOX (the controls on the left side of the IDE). The steps you described sugest you added it to the toolBAR. If you want to use the control in your porject, it has to be added to the toolBOX, by right clicking in the toolBox and selecting Add/Remove Items...
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Hai,
Sorry I had typed wrongly in my prevoius message("catastrophic failure").I had added ocx control in Toolbox only.(by right clicking toolbox and selecting customize Toolbox and com components but as you said there is no Add/remove items. Am i adding wrong way?. If I am in right path what might
be the problem).
Reagrds
Sakthi
|
|
|
|
|
If you right-clicked in the Toolbox window, say, under the Windows Forms Controls tab, you'll get Add/Remove Items... If you don't you're not right-clicking in the correct place.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
right now I am dealing with validation errors with this after the data has been processed determining if there is an error
<br />
If isValid Then<br />
'will clear the error for the row<br />
e.Row.ClearErrors()<br />
Else<br />
'prevents the invalid changes from being submitted<br />
e.Row.AcceptChanges()<br />
End If<br />
It works, just the way that it should, but the logic is odd in that I have to AcceptChanges(). I do understand what is happening, but if someone else who is unaware of what happens in the acceptChanges method they would scratch their head. So is there a better way of doing this?
|
|
|
|
|
When invoking AcceptChanges, the EndEdit method is implicitly called to end any edits. If the RowState of the row was Added or Modified, the tee cref="System.Data.DataRow.RowState"/> becomes Unchanged. If the RowState was Deleted, the row is removed.
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemdatadatarowclassacceptchangestopic.asp
|
|
|
|
|
|
I use the WebClient.DownloadData method to retrieve a file (.pdf) from a Webserver and convert it to a byte array. How can i convert it back to a .pdf file ?
Ouais c'est ca...
|
|
|
|
|
Ok i have done that with a streamreader but unfortunately this file is damaged
I am a newbie
|
|
|
|
|
I just got the correct encoding and everything is fine.
I am a newbie
|
|
|
|
|
Is there any ways I can turn off the mutiple select column in datagrid? it's only allow to select one row at a time.
Lisa
|
|
|
|