Topics
-
-
- *Experts*
- 8 replies
- 1.5k views
I'm sure this must be a maths thing, if it is I stuffed as I am naff at math! I have a picture box sized at 960 * 536 pixels and I am using the code below to put images of different sizes into it. Some look OK others are distorted. m_bmpNewImage = New Bitmap(m_bmpNewImage, 960, 536) I have an image I am looking at now and it is distorted. Its dimensions are 2142*2856. Is there some magical formula needed to scale it to look right? Any help gratefully received! Thnx
Last reply by hog, -
-
- 4 replies
- 2k views
How can I enable / disable the close button of a form through code?
Last reply by EFileTahi-A, -
- 5 replies
- 1k views
Has anyone seen a good way to do the equivelant of a GROUP BY using a DataSet or DataView? Just curious because if I didn't have to go back to the database to get the same information, only grouped, it would save me a step. On that note, an equivelant to SELECT DISTINCT would be cool tool. Thanks.
Last reply by mandelbrot, -
- 1 reply
- 779 views
hi guys, i'm new to ado.net. i'm just wondering if i bind a dataset to some control - say a form to edit patient's information - and i edited ONLY the name field. then i pass the dataset back to the adapter to update. will the dataset update the whole row? or just the modified field(s)? the latter effect is desired since the application i'm working on is a realtime multiuser application. the situation i'm trying to avoid is say: i have dataset of field A and field B. 2 users viewing exact same record at the moment. user 1 edit field A and user 2 edit field B. then user 1 update the data. when user 2 update the data as well, if the formal effect take place, field A wil…
Last reply by Joe Mamma, -
- 1 reply
- 955 views
How can Reflection be used to access the Property of an object through it's string representation? Similar to the functionality of the ValueMember, DisplayMember Properties for the ListControl object.
Last reply by Joe Mamma, -
-
- Moderators
- 2 replies
- 1.3k views
I know how to do it in Windows forms, I'm intrested how to do it in ASP.NET
Last reply by trend, -
-
-
- Administrators
- 2 replies
- 1.2k views
I have searched.. and found information like: MS example But... I cannot get text1.selectall() to work.. vs.net interlines all of it.. and says: C:\Inetpub\wwwroot\WebApplication1\login.aspx.vb(68): 'selectall' is not a member of 'System.Web.UI.WebControls.TextBox'. I am using vb.net any ideas? thanks Lee
Last reply by trend, -
-
-
- Leaders
- 5 replies
- 6.7k views
I can't figure this one out. I have been searching all day on google, and I have found absolutely nothing. How could I SET the current line selected? Thanks in advanced! btw, scrolling a textbox: http://www.codeproject.com/vb/net/VbNetScrolling.asp
Last reply by decrypt, -
-
-
- Leaders
- 4 replies
- 1.2k views
Me.picMain.Image.FromFile(Application.StartupPath & "\photos\" & Me.cboSites.SelectedItem & "\" & Me.cboDates.SelectedItem & "\" & fiFileInfo(0).ToString) When I run this code my picturebox wont display the file? No error occurs in my try/catch and if I messagebox the file path and name used above it appears correct? :confused:
Last reply by Iceplug, -
-
Best method
by hog-
- Leaders
- 7 replies
- 1.6k views
I have just created some code, mainly from the help, which gets all the directory names within a given directory. This code uses the DIR function, which I think is the visual basic function not .NET? Is there a better function to use? Thnx
Last reply by Iceplug, -
-
- 2 replies
- 2.1k views
If you didn't know wav file can store data about the fine n a "cart chunk header" I am trying to find a way to read this information. I have found a code example in C# but I have no idea on C# this is the code typedef struct cartchunk_tag { DWORD ckID; DWORD ckSize; BYTE ckData[ckSize]; } typedef struct cart_exetension_tag { CHAR Version[4]; CHAR Title[64]; CHAR Artist[64]; CHAR CutID[64]; CHAR ClilentID[64]; CHAR Category[64]; CHAR Classification[64]; CHAR OutCue[64]; CHAR StartDate[10]; CHAR StartTime[8]; CHAR EndDate[10]; CHAR EndTime[8]; CHAR ProducerAppID[64]; CHAR ProducerAppVersion[64]; C…
Last reply by ZeroEffect, -
- 10 replies
- 2.1k views
I am trying to use a process start to do a mysql dump. The -u and -p are swicthes that tell the executable what to do. I see the dos window open and close and no errors, but the dump file c:\test.sql is not created. System.Diagnostics.Process.Start("C:\Program Files\MySQL\MySQL Server 5.0\bin\mysqldump.exe", "-u root -pchecli02 myacct > c:\test23.sql") Any ideas? Thanks Chester
Last reply by Joe Mamma, -
- 1 reply
- 1k views
Hi I just upgraded to .net and need some help with the Select Case statement. Microsoft must have changed it because it won't work. :confused:
Last reply by Wile, -
- 2 replies
- 706 views
There's an ascx page with lots of javascripts behind it... The page has a dropdownlist. Two of the values in it are added using Javascript. The rest are read from database and added via asp.net/vb.net. When [None] is selected, the 2 corresponding textboxes are cleared. I dont see any "Change Click" even in the ASP.Net. It's somehow done in the Javascript. I put debug steps, choose [None], but it doesnt hit the code. I put "alert" in various places of Javascript, Choose [None] but nothing pops up... I cant right click on the page and do "View Source". This is a ASP.Net pop-up. How can I trace this??
Last reply by hrabia, -
- 1 reply
- 3.3k views
System.DllNotFoundException: Unable to load DLL (OraOps9.dll). at Oracle.DataAccess.Client.OpsTrace.GetRegTraceInfo(UInt32& TrcLevel) at Oracle.DataAccess.Client.OracleConnection..ctor(String connectionString) at Project1.xmlApp.lblDatabase_Click(String[] aParams) in c:\inetpub\wwwroot\project1\xmlapp.aspx.cs:line 261 at Project1.xmlApp.btnRead_Click(Object sender, EventArgs e) in Need to fix this error, have already adjusted the permissions on the local oracle folder to add authenticated users. Does anyone have any ideas.
Last reply by hrabia, -
- 1 reply
- 1.5k views
I am using the following statements: [c] Dim ps As New ProcessStartInfo("C:\Program Files\MySQL\MySQL Server 5.0\bin\mysqldump.exe", "-u root -pchecli02 myacct") ps.UseShellExecute = False ps.RedirectStandardOutput = True Dim p As Process p = New Process p.StartInfo = ps p.Start() Dim sw As New System.IO.StreamWriter("C:\test23.sql") sw.Write(p.StandardOutput.ReadToEnd()) p.WaitForExit() [/c] Is there anyway to encrypt this streamwriter to a file instead of writing to the file and then encrypting the file and writing it back down? Thanks, Chester
Last reply by IngisKahn, -
-
- *Experts*
- 5 replies
- 1.1k views
Ok heres my situation. I'm making this program that will essentially run other programs that I made. After doing some research, I've come to the conclusion that I need to compile my programs as DLL's and reference them in my main project. No problem there. Well what happens when I develop new DLL's and I want my main project to use them. I can't because they are not referenced. This is a problem because once the program is distributed to my clients, I doubt they are gonna want to uninstall and reinstall everytime I come out with a new plugin. So my question is this. How do I reference a dll from a folder on the harddrive and use it in my main application? Thanks in advanc…
Last reply by mskeel, -
-
- 1 reply
- 899 views
In visual basic.NET a user has a combo box; this combo box is filled with the names of either files or directories with files in them. When the user selects a item in the combo box I want the program to first determine if the name is a filename or a directory name, and then copy it (and all its contents if item is directory) to a predetermined location that is already hardcoded into the program. I am not sure how to accomplish this any help or examples would be greatly appreciated.
Last reply by Joe Mamma, -
- 5 replies
- 1.8k views
Is there a way of adding items to a listbox manually. The only wat I know is by opening a dialogbox and typing the value in, then transfering the value to the listBox1.Items.Add(txtBox.text); I want is to be able to type in the value directly in to the ListBox Item area. I think this gives less interface action and makes it more relaxed to work with. I don't like it when to much dialogs have to be opend to get to or insert data into forms. Feurich :rolleyes:
Last reply by feurich, -
- 2 replies
- 740 views
Hi All, I have 2 more easier questions I would like to ask: 1. How in code do you set a textbox on an ASP.NET page to get focus? (I have looked on the web and such also used the intellisense but no luck) 2. How do I format a string to currency? (So that if there is any decimal values they are always 2 decimal places or if there is no decimal values show no decimal places) I have had two attempts: lblQuote.Text = "Charge for walls = £" + String.Format("{0:C}", Convert.ToString(wallCost)) lblQuote.Text = "Charge for walls = £" + String.Format("{0:F2}", Convert.ToString(wallCost)) These work in as much as they only allow 2 decimal places maximum, howeve…
Last reply by Hyuga,
-
Who's Online 0 Members, 0 Anonymous, 59 Guests (See full list)
- There are no registered users currently online