Display Which For Example Is 300 LEDs Wide By 300 LED's Deep?
Sep 23, 2009
I am after some GDI+ help, Basically I have an LED display which for example is 300 LEDs wide by 300 LED's deep, so you could say it has a resolution of 300x300.I am intending to use windows to process images ready to be sent to the display (as the display is dumb and simply displays what it is sent, But I require that the images are animated as well as static sort of like the basic PowerPoint animations (scroll on/off etc).to achieve this I need to write some code that creates frames much like gif's. So to scroll a 300x300 image onto the display I would need 300 separate frames.
So I have written the following code that uses the GDI+ objects to build the frames needed to scroll an image from the right or left.
[Code]...
View 4 Replies
ADVERTISEMENT
Jan 31, 2010
Is there any way possible to deep copy a Control? Just want to know if its possible
View 8 Replies
Jan 12, 2010
I'm looking for a recursive subroutine.I have the dataset from sql-server with in the datasource-table a parent- and a child-column.
I made a routine to put the parent-nodes in the tree.The problem starts with the childs over so many levels.I can write it out but it is to much code, I'm sure it can be done more efficient with a recursive subroutine.
.tv_Ana.Nodes(A).Nodes(B).Nodes(C).Nodes(D).Nodes(E).Nodes(F).Nodes(G).Nodes(H).Nodes.Add(Trim(sLev_nI + "-" + row_nI("MidCod").ToString()))
The tree will be about 25 levels deep.A few days ago I saw a recursive subroutine to fill the childnodes without the above difficulty to write alle the levels in code.That example I cannot find it any more, but it had a line of code more or less like this here below:
Dim
Nodes As TreeNodeCollection = tv.Nodes(A).Nodes
but it doesn't work yet!
View 5 Replies
Jan 20, 2010
I have created a form with a tab control that I want to be able to make a copy of in such a way that all the child controls and their data are copied as well. I have tried this:
Dim NewPage as TabPage = tcViews.TabPages.Item(0)
tcViews.TabPages.Add(NewPage)
I end up with a reference to the first page. That is, if I change something in the old page, it changes in the new one as well. I believe this is because VB.NET treats assignments of classes as references, rather than values. Hence only the memory address of the original is copied, so essentially both refer to the same tab page in memory. I also tried serialization and deserialization.
The TabPage is apparently not serializable. And I heard about MemberwiseClone, but it isn't accessible, according to Visual Studio. There doesn't appear to be a Clone method available either. How do I make a new tab page that is totally independent of the original, but that has copies of the original page's controls and their property data, which can then be edited independently of the originals?
View 3 Replies
Oct 19, 2010
Shallow vs. Deep copies of objects. Why would anyone want a shallow copy of, say, a multidimensional array?! If I wanted something to act just like something else (and this is what shallow copies do), why would I create a second instance to do what the 1st instance does already? I think I understand the point of objects and that just copying the contents of one object to another does not make them independent, but it seems that the whole point of doing:
[Code]...
View 22 Replies
Aug 15, 2006
If I have a generic.list(of ClassA), is there a simple way to create a deep copy of this list that will not affect the original copy? It seems to work if I have a generic list of Structures, but for some reason the copy constructor for lists of classes only copies pointers to the elements (or maybe a pointer to the whole list?). I would move to structures if it were not for the fact that I can't find a way to edit the members in the structs in the list. eg:list(0).a = 5 'Does not workIs there some way to get around this without declaring an instance of that structure, like this:dim str as StructA = list(0)str.a = 5I'd
View 2 Replies
Aug 5, 2011
If I instantiate an object within a function in VB.NET and return it, does it return it be reference or by value. IE - should I be worried about performance if I write something like this:
Public Function ret_obj_func() As big_object
Dim ret_obj As New big_obj(<lots of stuff>)
Return ret_obj
End Function
If I call this function from somewhere else, will it instantiate the object in the ret_obj and then create a deep copy to pass back a copy to the caller, Or will it just pass back a reference?
View 3 Replies
Mar 13, 2010
I have a button ad a list box, the button when clicked lets the user select a directory on the HDD, and then the app is meant to list all the sub directory's of that folder int he list box. However I cant seem to get it to list just the sub directory names, not the full paths, and also to only scan by 1 folder deep (selected foldersub folder).
View 1 Replies
Oct 27, 2010
Following up on my question yesterday to deepcopy an object with events in C# and attach the events of the original object to the Cloned copy is pretty easy, you just set the Event declaration in the Copy = the value in the original. Deep Clone when events are attached. How do you do this in VB.Net? (Using .Net 2). Maybe there was something with reflection where you can examine what events are bound and somehow transfer those to the new object.
View 1 Replies
Feb 6, 2012
I am trying to make a deep copy by adding a clone property to my class.
[Code]...
View 1 Replies
Jun 27, 2012
In times past, most people coded on a terminal that was 80 characters wide. In many languages this has become, if not holy then close to it. But now many people have 20"+ monitors (or dual monitors), so screen real estate isn't as prime as it once was.
So my question is this: in Visual Basic code, should code be limited to 80 characters, should there be no limit, or is it really a subjective thing, dependent on where you work and your own preferences?
View 8 Replies
Apr 27, 2009
Essentially what I want to do is copy a WebBrowser object such that I can do the equivalent of "Open In New Tab" or "Open In New Window" actions, maintaining any posted data. I don't just want to navigate to the same URL as in the original WebBrowser object, rather I want to repeat the HttpWebRequest.
View 1 Replies
Apr 18, 2012
I have an object (a third component gridview) which is serializable, and I need a deep clone of this object. I have the following code which throws the exception."The type System.Windows.Forms.Control in assembly System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKey Token=b77a5c5 61934e089 is not serializable".So the gridview's base class is System.Windows.Forms.Control, which is not serializable. How can I get a deep clone from the gridview? [code]
View 5 Replies
Mar 1, 2010
I have a lot of HD images within my program design and it is causing the screen to flicker when loading other forms. It is kind of
slow too. Is there a way to resolve this, for example, using a reference or component such as DirectDraw. Here are my computer
specifications:
Intel Pentium 4 /2.53GHZ
1.5 GB RAM
512 MB ATI Radeon HD 2400 PRO AGP Video card
19 IN. LCD Widescreen 1440x900 resolution monitor.
could it be the refresh rate of only 60HZ?
View 6 Replies
Jul 26, 2011
I am developing an application that has multiple forms and I wanted to know the best method to have application wide methods and functions. Currently I am using a Module with all my methods that are needed to be used across the entire application in it. However, I read at one point that modules should not be used, as they are only there to preserve backwards compatibility with older VB code. Is there a better way to have methods able to be called anywhere?
View 1 Replies
Sep 9, 2010
how can i capture system wide selectedtext?
i've managed so far to get a global mousehook + i'm hoping to capture the selectedtext from anywhere system wide when the user left clicks.
i tried using the keybd_event api to send CTRL+C to copy any selectedtext to the clipboard but it has unexpected effects + seems to run before the text i've just selected becomes selected.
here's the code i'm using:
Public Class Form1
Private Declare Function keybd_event Lib "user32" Alias "keybd_event" _
(ByVal bVk As Byte, ByVal bScan As Byte, ByVal dwFlags As Integer, _
[Code].....
View 5 Replies
Jun 29, 2011
I'm trying to open a tool window as a child and although I can set the width to something like 50px wide in the ide, when it opens up its 125px wide. What is there to opening a widow with out much width am I missing.I have turned off the maximize and minimize gadgets and even the whole drag bar. When they open up when I run they are fat again. Looking for something like the tool window in paint.net.
View 1 Replies
May 23, 2009
I'm looking for a windows "special folder" where user data can be stored and changed PC wide, not only per user.Up to now I've picked the so called COMMONAPPDATAFOLDER, but that doesn't work with a setup project, because the files copied there on installation (like a config file) are not changeable in Vista with a program used by a restricted user (probably because the Windows Installer performs with admin credencials).
View 2 Replies
Jul 15, 2011
Currently I am able to see if a key is currently pressed via the GetAsyncKeyState function. Currently I just simply have a timer running in the background that constantly checks if a certain key is pressed in order to run a command. However my issue is if the user holds down the key it will continually run that bit of code over and over per timer tick. Is there a way or another function to detect a keyup or keypress only. This is my current code to detect keys:
Public Declare Function GetAsyncKeyState Lib "user32" (ByVal vKey As Windows.Forms.Keys) As Integer Public ReadOnly Property CurrKey(ByVal key As Windows.Forms.Keys) As Boolean
Get Return CBool(GetAsyncKeyState(key))
End Get
End Property
View 1 Replies
Sep 15, 2009
How would I register F7 as a System Wide Hotkey?This is my timer code
Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
SendKeys.Send(Keys.Space)
End Sub
When I start the timer, and open notepad, this is what i get
View 6 Replies
Oct 25, 2010
i need to store Application wide Settings in my Application like:
Connection to DB (Servername) Username/Password Registrar/Serial etc. I think there are basically two Options:
Store them in the Registry Store them in an Application Settings File Using one of the methods above is no problem, but under Windows 7 my Application running in normal user mode allows me only to store user specific data. For example inside UserAppDataRegistry, UserAppDataPath etc.
But when i want to use e.g. CommonAppDataRegistry to write my Data in, then i get no access to it, due to missing privileges.
Now my question:
Where and how to store Application Wide Data? How are others doing this? When i purchase an application and install it on my pc, it asks me for Uusername and Serial. When i insert it then it saves it somewhere without asking me for Administrative Privileges or something else.
View 14 Replies
Dec 28, 2009
I have a license form that i wish to save the information or just system wide information for that matter,I know about the my.Settings - however this will only save for a specific user and the aplpication scope you can not write to.Where is the best place or the normal practice of saving application wide information?
View 7 Replies
Apr 16, 2010
I have a series of GridViews in a Tab Panel - databound to a generic List of Business Objects.
The columns in the Gridview are all similar to the following:
<asp:TemplateField HeaderText="Company" SortExpression="Company.ShortName">
<ItemTemplate>
<asp:Label ID="lblCompany" runat="server" Text='<%# Bind("Company.ShortName")
[Code].....
View 1 Replies
Aug 3, 2010
I've been looking at using PROPERTIES [URL] but frankly I don't understand it that well. Before I invest the time to read, understand, and truly comprehend this, I want to make sure it's the best way. My intended goal is to create my database connection string in a function/sub somewhere, then assign it to this project wide string variable, then I can use it in any form, project wide without having to recreate it.
[Code]...
View 7 Replies
Nov 21, 2011
I have a dropdown list box that displays data from my database. Problem is that some records are quite long so the width of the dropdown box extends past the side of my screen. I have a reasonible width set but it is not stopping the dropdown box from getting as wide as it needs to display each record. How can I set a fixed width on this?
<asp:DropDownList ID="DropDownList1" runat="server" AutoPostBack="True"
DataSourceID="SqlDataSource1Usage" DataTextField="data_text"
DataValueField="ID" Width="280px">
</asp:DropDownList>her
View 3 Replies
Oct 2, 2009
I would like to get a list of the VB.net/C# "wide" functions for unicode - i.e. AscW, ChrW, MessageBoxW, etc.
View 3 Replies
Nov 23, 2010
I want to make a user control (name MultiSelect), which I will use for choosing items from huge list. For example I want to choose customers to make a view of their turnovers, so I will creat a new MultiSelect control which will contain a textbox (i canwrite starting letters) and a treeview (will list customers matching the first letters chosen in textbox).
View 7 Replies
Sep 10, 2009
We are translating UI of one VB6 application designed in English (US) into Chinese Language which contains API's, we need to know how to use the Unicode (Wide) versions of used API for new (Chinese) Language and how can we find is there any wide version exist for that used API and how to modify existing API with wide API.
View 1 Replies
Mar 26, 2009
How can I set up an application wide event trap that is triggered when my database connection status changes?i.e. no matter what form the user may be on if the connection is terminated for whatever reason a message box is displayed to the client requesting whether the program should try and reconnect with the database or not.
View 9 Replies
Jan 11, 2012
How can I declare public constants that are available solution wide across all projects?
View 8 Replies