Use Interface In My Code To Make It More Scalable?
Jan 13, 2012
I have a ASP.NET web application which has a UI project and BL project. The BL project handles all business logic and data access part.I call the BL methods from my UI by Simply calling the method on the instances.[code]...
View 4 Replies
ADVERTISEMENT
Feb 11, 2011
On my userform there is the typical min, max, close options in the upper right hand corner. If the user maximizes the userform can I make the WebBrowser control scale to size but never smaller than initial settings?
View 5 Replies
May 23, 2011
I designed my program for my screen resolution (1680x1050) with all forms in maximized mode. I gave the program to a freind whose laptop has a lower screen resolution than mine. Now on a lot of the forms she cannot see some of the controls because of the lower screen resolution. I added the minimize, restore down and close buttons to the forms of my program but in the restore down mode the form does not scale down to show all the controls on the form. How can I incorporate scalabilty into the forms so that all the controls will be visible in the restore down mode.
View 5 Replies
Sep 7, 2010
I want input from user and when he click on view report button report should come in report viewer. May be my design is not good but my aspect is to design a user interface so that user should able to pass parameter in all the ways and get desired report.
Drop downlist
Radio Button
Check box
and other countrols
Gaurav
View 1 Replies
Mar 22, 2012
Having to update somebody else's code. Did I do this correct for the code below?
[Code]...
View 2 Replies
May 16, 2012
I'm developing a database in VB.NET-Code First. I would like to add Latitude and Longitude to both Locations and Postal Codes. Right now i'm adding a GeographicCoordinate to each class.
[Code]...
View 1 Replies
Mar 15, 2009
I need some code for a joystick interface in vb2008
View 1 Replies
Mar 15, 2011
I want a RichText box that will allow me to type basic vb code and then have this code executed. Similar to what could be done with SQL statements and ExecuteNonQuery, is there something similar to this for VB?
View 2 Replies
Oct 2, 2009
i did some research on click and drag and i still dont get it, can any body plz help me with this.
P.S. when i write in the code i ALWAYS get a not defined error!
View 3 Replies
Mar 23, 2012
Basically the question is, Why are NONE of the changes I've been making in the designer reflecting on the program when it runs ?'none' is in bold because I've tried moving everything around and nothing seems to be affecting it, it's like it's reading from a different design file, I tried reloading the project and that did nothing, and none of my code affects position of any items on the form (way too much to post it all)
View 1 Replies
Feb 26, 2010
I have an interface that I've defined and am working through a bunch classes that will implement it. I'm noticing that in 95% of the implementations, I'm only changing a few lines of the code, so I'd like to know if it's possible to have my IDE generate a block of code inside of a method upon implementation, much the same as implementing IDisposable.not mark my posts as answered. It is extremely rude. You have no idea if you've answered my question.I WILL come back and mark the ones that are answers, as answers.
View 7 Replies
Jan 16, 2011
So now I will try to make something more complex, still playing around with this graphics thing.I want a picturebox to display a tileset (a bunch of 32x32 tiles normally used for creating game levels etc), the picturebox is inside a container (which has autoscroll ON). The picturebox is larger than the container, so the container will make scrollbars automatically.Now, I need to be able to choose a tile or multiple tiles (if I click & drag the mouse)Basically I want to draw a 32x32 "red" box over each selected tile (so the user knows what tiles are selected).So first of all, I need to know when the mouse clicks the picture. Good. It works.Now, I need to know which 32x32 tile was clicked. Well, I think I can calculate that just fine.BUT, what if the user drags the mouse while clicking on a tile? I want to support multiple tiles selected, but I am clueless about tracking what tiles were chosen.If we solve that problem, I would have another curiosity: You know the "red boxes" that tell you which tiles are selected? What would happen if I dragged the scroll bar? I need the redboxes to move along with the picture, and hide if they go to an invisible area.
View 6 Replies
Aug 23, 2009
i am making a program with graphics and im using a picturebox for a button. The image inside picturebox is transparent .gif. The problem is that i don't know how to make picturebox transparent. I searched the internet but all exaples didn't work. Does someone know how to fix this problem?
View 4 Replies
Jul 11, 2004
I am trying to incorporate in my vbdotnet application a form in which I would like to make a thumbnail from an image. So what I have is two picture boxes, one with the source image and the other with the destination image, I would like to crop the image from picture box 1 and display it on picture box 2, but the way I wan to crop it is not giving the coordinates of the selected area box but to simulate a selection area box in which the mouse can move the box and select the area of the picture to be cropped. This selection area box would give me the coordinates i need in order to proceed the cropping. The problem is I don't know how to create this selection area box. It is like doing the cropping on a graphic design software like Macromedia Fireworks, Adobe photoshop, even paint.
View 5 Replies
Jun 22, 2009
What would be the most clean & efficient method to make a page based interface, such as an installer?
I've had a few ideas, I could make a class for each control i'm going to use that has a Page ID number, and compare that against a global current page number, except I want it to be reusable, so that would mean i'd have to make a class for every control.
View 5 Replies
Sep 12, 2009
I have a public interface. i have class that implements the interface, how do i make the implementation of interface members internal or private in the implementation class? If i declare an interface internal, how to implement that in an public class?
View 2 Replies
May 25, 2010
I'm trying to create a base interface for a class of mine that uses generics. However, I cannot figure out how to declare a property of the interface when its type won't be defined until the class is initialized.
To clarify, consider List(of T), which according to msdn, implements IList (among other things). Note that IList is not the same as its generic counterpart IList(Of T). So that mean any List(of T) can be converted to IList, which simply returns an object for its items. That's what I want to do with MyClass(of T), be able to cast it as IMyClass regardless of what T is.
But when I try such as:
Interface IMyClass
Prop A as Object
Class MyClass(of T) Implements IMyClass
Prop A as T Implements IMyClass.A
I get a signature error for the last line, even though object is broader than T. What am I doing wrong, or how exactly did Microsoft manage to make List(of T) implement IList?
View 9 Replies
Jun 5, 2009
I was unable to see the code generated by vb for form initialization automatic code generated by vb how can i see it?
View 1 Replies
Feb 21, 2012
I was wondering how I would send a formatted vbscript block of code to the vbscript scripting interface for it to execute? I have tryed Windows script host but dont understand how to implement something like this using it.
I can run it using script control but I need an alterative method for 64-bit computer because i of the installer script that installs 64-bit components that only use the 64-bit version of scripting interface.
Even if its an idea with starter code i think i can build on that as long as you give me something to go on and explain your reasoning.Once you eliminate the impossible, whatever remains, no matter how improbable, must be the truth. - "Sherlock holmes" "speak softly and carry a big stick" - theodore roosevelt. Fear leads to anger, anger leads to hate, hate leads to suffering - Yoda
View 4 Replies
Mar 1, 2011
In many projects I work on, whenever I have to return a read only collection, I use the IEnumerable<T> interface and make it type specific like so:
CODE:
Most of the time, I return a List but in some functions and read only properties I return an array which also serves the purpose alright by kind courtesy of Extension Methods.
My question is am I violating any design principles by returning IEnumerable<T>s instead of specific types (e.g.: List<T>, HashSet<T>, Stack<T> or Arrays)?
View 8 Replies
Dec 28, 2009
I tried to create a lineshape and make it visible when a timer ticks. Also tried to set everything that would matter when creating it(border colors and thickness etc)
But still, I got no results.
Code:
Dim line = New Microsoft.VisualBasic.PowerPacks.LineShape(CX, CY, ccx, ccy)
line.Parent = New Microsoft.VisualBasic.PowerPacks.ShapeContainer()
line.Enabled = True
[Code]....
View 1 Replies
Nov 18, 2010
i make a Form transparant where i dont want form background. So say like i got a round form and i can transparant the white background of the round even possible?
View 6 Replies
Jan 31, 2010
I can't seem to make a GUI in the shape a circle...
something other than square/rectangle.
View 1 Replies
Jun 16, 2010
I have a red, green, and blue color that I am making with this method:
Code:
Dim Red1 As Color = Color.FromArgb(75, Color.Red)
and a brighter red:
[code].....
Any recommendations? I like the fact that 255,255,255 is white. Is there a way to create color by combining three colors that were made from argb? I may just have to make my 20 different colors set and then refer to them.
View 4 Replies
Jan 2, 2012
i want to make a class for a custom button for which the user of the class can choose his own images for Normal, mouse over and mouse down state.
View 5 Replies
Dec 12, 2008
im making a program that needs to make a new button for each .exe file in a directory? Kinda similar to PortableApps program that will recognize each program in the directory.
View 3 Replies
Mar 4, 2009
I used the ODBC Data Sources admin panel to create a "data source" for an ".mdb" file. This was very easy. I can access the mdb (database) file via an ODBC driver, locally. However I need to access this data source over the network. Can anyone please help me learn how to make this same database available on the host's network interface? Perhaps there is a tutorial, video, or some other documentation that explains how to modify a data source to make it available on the network. I am using Windows XP. I hope this does not require a special Windows server distribution.
View 11 Replies
Aug 26, 2010
i have make 1 form in vb.net which has 1 button.i have 1 circuit which can glow a led or bulb.i want that whenever i click on that button it can pass signal to the circuit & glow the led.how can i do this.reply.....
View 1 Replies
Oct 27, 2009
In C# code, we can just right click on the class name and then select refactor and then extract the interface for that class. I wonder if this could be done on VB. Im using the same IDE VS 2008
View 1 Replies
Mar 31, 2012
I've been trying to get some help for this in another thread,but it looks like it's a task that is going to need a wider audience to try and find someone who knows something about writing/creating procedural textures at the pixel level in VB.Net. The VB6 example I'm trying to convert to VB.Net is attached to this post.
[Code]...
View 6 Replies