Topics
-
- 2 replies
- 7.9k views
Okay - as many people suggested I created an imagelist and added my 3 pictures to it (as shown in the code below). Problem I am having now, no clue how to get these now added images as background images to my buttons. (...if only ImageButtons existed...) Specifically - I have 3 buttons (btnStart, btnPause, btnStop) and I want to display the corresponding START, PAUSE, STOP images as their background. But I have no clue how to a) use the imagelist images I just added and b) set a background image to a button via code. private System.Windows.Forms.Button btnStart; private System.Windows.Forms.Button btnPause; private System.Windows.Forms.Button btnStop; priva…
Last reply by Machaira, -
- 1 reply
- 623 views
Hi all, Is it possible to retrieve the database structure using SQL Statements and insert the data into a dataset?? Mike55.
Last reply by Afraits, -
- 6 replies
- 841 views
I have a datagrid where some of the columns are editable and where the user has to insert some data like the price, his status etc. After he has entered all the information i want to go to all rows and inset that information in the database. But how to i do that?? is the information in the datagrid reflected back in the dataset? i'm a little lost and would appreciate some help thk to all
Last reply by rfazendeiro, -
-
- Administrators
- 3 replies
- 1.7k views
I created a LOG file (ErrorLog) that I use to output/trace information from my application, problem is the I want to be able to read the file as things progress. Given the way I coded it (see below) the information I write into the file is only saved afer I do the .CLOSE (meaning that if I open the .log file there is nothing written until I do the .close) I would much rather be able to read the .log file while the application is running to see if anything is generated... (I don't want to have to CLOSE the file to see what was written to it). StreamWriter ErrorLog = new StreamWriter(File.Open("App.log", FileMode.Append, FileAccess.Write, FileShare.ReadWrite)); str…
Last reply by PlausiblyDamp, -
-
-
- Administrators
- 3 replies
- 1.6k views
It seems best to post this here.. Is there any way to create a .EXE application of my VB.NET program? :confused: I'm doing a HTML generatorusing windows forms and it would be great if anyone could tell me/provide assistance on how I can make it a .EXE file without the .NET framework files, so that it can run even if its stored in a diskette. I do not want to create an installer file, just an application. I have seen such an example of a .EXE but I do not know how it is done. Thanks in advance.
Last reply by sgt_pinky, -
-
-
- Administrators
- 7 replies
- 1.7k views
Hey all, Could somebody give me any resources that discuss options on how to protect source code from any efforts to reverse engineer it from the built executable? I've read about the Dotfuscator utility that comes with the visual studio 2005 beta... I'd like to learn about how to encrypt the exe, and any other techniques out there. Can anybody help me? Thanks, jender624
Last reply by sgt_pinky, -
-
- 4 replies
- 847 views
How do I just get the date from a Datetimepicker(dtp)?? When I use .value I get the date and time even though i have set the dtp to short date. Any ideas welcome.
Last reply by SonicBoomAu, -
- 2 replies
- 732 views
The following code takes data from one datatable based on the parameters mapped in another datatable, then uses the two to build an Insert string with parameters. It inserts the data into Access and starts out very fast, but after 100 or so rows it is as slow as death For Each dr In dtOld.Rows iProg += 1 lblProg.Text = iProg pbStatus.Value = iProg Application.DoEvents() sInsert = "Insert Into [" & sTable & "] (" sValue = " Values(" 'build the parameters For iPar = 0 To dtNew.Rows.Count - 1 sInse…
Last reply by bri189a, -
- 3 replies
- 983 views
Hi Guyz, I need so help here.. I just need some idea here on formatting the table..Actually if you look at the image attached..i want to contruct that kind of table..I know its preety simple..just some html tables tags will give me that table... But here is my problem..Actually i have an outer loop an inner loop..The outer loop gives me the data in 'Item Column' and each Item has its sub-item..Like that sub-item of Item (1) is Info1 user1 Info2 user2 Info3 User3 And each of this subitem is the result of the inner loop (1 loop in the inner loop gives you 1 info and 1 user, then the next inner loop gives you next info and users) ...So each of the subitem is …
Last reply by bri189a, -
- 3 replies
- 965 views
Hi, I have a ASP.net application that has a webform that contains a Dropdownlist (webcontrol). Lets say the dropdownlist has the values 1,2,3,4 (These values are retrieved from a Database. ) I have 2 types of users accessing the application - "Normal Users" and "Admins". Both can be accessing and updating same records. What I want is that , in the dropdownlist the "Normal Users" should only be able to select 1 or 2 from the dropdownlist. Whereas the Admins should be able to select any of the values. But the "Normal Users" should be able to SEE 3 or 4 , if it was previously selected by an Admin user. Does anyone know how I can implement this? Thanks
Last reply by samsmithnz, -
- 2 replies
- 1.8k views
Getting the follow error from the following code...been trying to fix it for days using System; using System.Configuration; using System.Data; using System.Data.SqlClient; using System.Text; namespace WebApplication1 { /// <summary> /// Summary description for WebForm1. /// </summary> public class WebForm1 : System.Web.UI.Page { private void Page_Load(object sender, System.EventArgs e) { SqlConnection con; string sql; SqlDataAdapter adExisting; //con = new SqlConnection("Data Source=slon12d11012";User ID=nnichol1;); //con = new SqlConnection("Initial Catalog=DACari;Data Source=slon12d11012;User ID=nnichol1…
Last reply by JTDPublix, -
- 2 replies
- 1.1k views
Hi, I am trying to figue out the easiest way to store files of any type in a database and then display them in a VB .net application. The concept sounds simple, but I have not been able to find a solution yet. I would be incredibly grateful for any feedback.
Last reply by cementboot, -
- 1 reply
- 978 views
I have an appication that has a status screen on it. This is a software package and I do not have the source code or anything like that for it. I want to create a VB application that will monitor this status screen in this application for any change, if there is a change of anykind, it will then popup an alert screen and make a beep. The reason for this is due to the fact that the application screen that i want to monitor is a automated job runner at work. We have been having an issue where an job failes but no alert is getting send allthough the status screen is updating. So if I write something like this to monitor this screen for any change I can create my own a…
Last reply by mskeel, -
-
- Administrators
- 1 reply
- 1.5k views
hi i have a little winform-application which is supposed to open a webpage and read its content to a stream. but i'm getting an excepetion about missing permissions. so i tried working with system.net.webpermissions but without success. can anybody point me into the right direction to get this problem solved? best regards Dim pClient As New System.Net.WebClient Dim pStream As System.IO.Stream pStream = pClient.OpenRead("http://www.cnn.com")
Last reply by PlausiblyDamp, -
-
-
- Leaders
- 5 replies
- 1.7k views
Hi, I am trying to draw a large image(2048x2048) on a surface using Graphics.DrawImage. The problem that I am having is that there is no image shown on the surface. But if I reduce the image size to 1024x1024 the image is drawn. can anyone help me find a solution for this without changing the image size? Thanks
Last reply by ViJ2005, -
-
- 1 reply
- 645 views
Loads of Artifacts when disposing bordless forms... Does anyone else notice this problem? When disposing bordless forms on my application most of the times the screen flicks with loads of graphical trash, but this happens really fast! I mean, this graphics artifacts last only about 100 miliseconds or so... They are not really artifscts but more like a mix of 2 screens... See the pic bellow: http://img.photobucket.com/albums/v698/EFileTahi-A/CloseProb.jpg In this pic I closed a window my program, and, while it was colising I saw parts of Paint shop Pro appearing during the closing process, that is, all that is written in english does not belong to my program but to …
Last reply by EFileTahi-A, -
-
- Leaders
- 2 replies
- 4.2k views
Is there a way to copy all files of a certain type from one folder to another without using loads of code with a loop? example: Filecopy("C:\anyfolder\*.jpg","destinationfolder") Thnx
Last reply by dynamic_sysop, -
-
- 0 replies
- 801 views
Hi, I'm working on a tool that can trace the flow of methods being called for debugging purposes. I'm trying to use Profiler APIs to hook into methods calling events to capture the flow instead of using the Diagnostic classes like StackTrace or StackFrame which requires me to write codes into the target applications and re-compile. My problem is that I'm quite new in using Profiler API in VB.NET/C#. Anyone have experience before? Your help is very much appreciated! Thanks!
Last reply by pinster, -
- 6 replies
- 2.1k views
Hi Guys, How can i open an excel file at client side and gain control over it.. Gain control meaning a want to write to it cells by cell.. when i place data into it..i want to go by cell and sheets.. meaning like cells(1,1) = "test" Is it possible..Any reference or guidance.. Thank you very very much...
Last reply by Joe Mamma, -
-
- Administrators
- 2 replies
- 863 views
I have an image viewer that i coded into my program and it has a listbox that lists all the image files in a certain directory, for example: image001.bmp image002.jpg image003.png i also have a rename button so the user can rename the files but it isn't working that well, i think i coded the rename part pretty sloppy.. here is the code i used: Dim Rename As String Dim Picture As String Picture = ListBox1.Text 'Asks user for new name for picture Rename = InputBox("Type a new name for the picture and click Ok.") If Rename = "" Then Select Case Rename 'If rename is blank then give error Case ""…
Last reply by Lanc1988, -
-
Who's Online 0 Members, 0 Anonymous, 60 Guests (See full list)
- There are no registered users currently online