How do I reference the screen height and width in vb.net? For example, the bottom right corner's locations, the top right corner's locations, etc.
I tried My.Computer.Screen but couldnt find anything that told me the size.
...
I have create a CMS to upload all image to a folder using ed all my images to a folder using,
file.SaveAs(Server.MapPath("../images/") + advertID.ToString + "_" + i.ToString + fileExt)
Now, all images are saved and i forgot it create thumbnails. :(
I need to read all images at once and create thumbnails,
myimg = System.Drawing.Imag...
I am making a "toast" in vb.net, and whenever it pops up, all the text in the body textbox is ALWAYS highlighted...how can I remove the highlight programmatically?
Thanks!
Here is the code which seems to be automatically highlighting:
Dim i As Integer
toast.HeaderL.Text = headertext
toast.BodyL.Text = contenttext
...
i am writing some code in vb.net that will be generating a pdf file. i am going to be placing text and images in the pdf file. instead of doing trial and error on positioning the text and images using the pixel coordinates, i would like to be able to know exactly the coordinates of something on a pdf file. so for example i would like to ...
IN VB.NET (not c#)...
I want to create an event than can be canceled by the listener. Just like you can cancel the closing event of a winforms form in which case the form won't close.
I have already implemented a derived class from EventArgs that has a settable Cancel property as follows:
Public Class AnnounceNavigateEventArgs
In...
1.How do I connect the two or many forms in database MS Access 2007?
2.When do to click the Add, Edit and Delete buttons, How do gather the record in database Access?
3.To guide in vb.net or simple example in vb.net
----- Please help for me -----
...
Hi,
How to access Digital I/O using USB using C or C++ or Vb.net Or C#.net?
...
For some reason my stored procedures are all executing twice! I have a static function that runs an SP given its name and the parameters and fills a datatable.
Public Shared Function RunSP(ByVal spName As String, ByRef spParams As Dictionary(Of String, String), ByRef pDataTable As DataTable) As Integer
Dim cmd As New SqlCommand
...
I'm trying to write a class that will be in charge of persisting application options. Since the options need to be persisted the values that I'm sent must be serialisable.
Initially I thought I've be able to write a method with a signature like this:
Public Sub SaveOption(Of T As ISerializable)(ByVal id As String, ByVal value As T)
...
When I try to post a file its coming back false ie there was no file attached. Can anyone see anything wrong with this? Or what might be causing it.
<form id="Form1" enctype="multipart/form-data" method="post" runat="server">
<asp:FileUpload ID="fileUpload" runat="server" />
<asp:Button ID="cmdSubmitApplication" runat="server" T...
I have been developing some components for our products at work, and one of them is based off the flow layout panel.
What i would like to do is provide a custom designer for it, but without loosing the features provided by it's default designer (System.Windows.Forms.Design.FlowLayoutPanelDesigner) which is marked as internal.
Using Ref...
In a recent VB.NET project I adopted the naming conventions I'm used to using in C#. Namely, often calling a variable the same name as the class it references, only with a different case, e.g.
Foo foo = new Foo(); // C#
Dim foo As New Foo() ' VB.NET
I find this is often the clearest way to write code, especially for small methods. Th...
I am using the deepzoomtools.dll on my website. I allow users to upload an image, which I first resize, and then I use deepzoomtools.dll on the resized image to dynamically create a deepzoom image. This works fine in dev and was working fine on my production hosted site. All of a sudden I started getting the error below and I can't ev...
I have a byte array of a file and I need to save it into my database in a field that has been set aside of type image.
However I have a problem my data access class takes a sql string and commits it to the database for example.
"EXECUTE stored proc @parm1, @parm2, @parm3"
However the problem is I cannot figure out how to transfer the ...
I'm creating a Windows Console application written in VB.NET and I have a few processes that need to be called only once during the lifetime of the application. If it was an ASP.NET application, I put these in the Appliction_Start method of the Global.asax.vb file. Since there isn't a Global.asax.vb for Console applications, is there an ...
I want to populate the dropdownlist ddVerantwortlich1 with the people with the proper credentials based on the selected process step ddProzessschritt1
It doesn't work if I want to change it using datasource and databind
i have to manually loop through the table in the dataset returned from the query. then it works. but not otherwise......
Guys,
I am trying to figure out how to export a crystal report into a PDF file from an ASP.NET application. I got it to work, however, I want the group tree to show up as bookmarks in the PDF. From what I've found on google, the way to do this is to declare an instance of the CrystalDecisions.Shared.PDFFormatOptions class, then set the ...
Are there any simple diagnostics I can run to determine why authentication is not working with the ClientFormsAuthenticationMembershipProvider provider? My problem:
I have a web site (we shall call it the "Authenticator" web site) hosted on Server A that is configured to use the AspNetSqlMembershipProvider provider for both Membership ...
On another programming related website, I saw this line in someone's signature. This is NOT the first time I've seen such sentiments, although this is the harshest:
"People who work in VB or any variant
thereof are not programmers, they are
circus chimps throwing feces into an
IDE..."
VBA is my bread and butter and I can auto...
Okay this question could either be very broad or very specific because I am not sure if I am going about this in a fundamentally wrong way or if I am close to correct.
First an overview: What I am trying to do it create a server application for all of the clients in my organization to connect to. I think the best way to do this is to us...