Topics
-
-
- Leaders
- 1 reply
- 648 views
In my C# Project, I have added a couple hundred images by "drag-n-drop"-ing them into to the Properties.Resources section. All of these images were in an "images" folder of my Project on my computer. Currently, the Solution Explorer displays all of these images in an "images" folder that it created after my "drag-n-drop" operation. Now: How do I *get* these images for my code? I have a PictureBox named "pbImage" on my main form that needs to display these at various times, but my call to GetManifestResourceStream() always returns null. I am concerned that the string "imageName" may not be correct, but I can not seem to find the wording that C# is looking for. …
Last reply by snarfblam, -
-
-
- Leaders
- 5 replies
- 1.4k views
Hey all. I need to have two cursors on my screen, but neither are controlled by a mouse. They are controlled by two external devices I'm using as pointing devices. I'm using Visual C++ .NET 2003. What I need to do is move around the cursors in the most efficient way possible and I'm not sure how to do this. What is the best way to display the images (bitmaps but I can change that) and to update the screen without the entire thing being redrawn all the time? I've read about it and it looks like I need to use Invalidate(region) but haven't been able to get it to work. I've also read about using a timer but am confused as to how to really do it. Could someone co…
Last reply by msmeth, -
-
- 3 replies
- 1.1k views
this is kicking my butt I am trying to connect to sybase: Server = SybaseServer Path to database = \\SybaseServer\db\mydb.db UserName = User Password = pass Version 8.01 of Adaptive Server Anywhere I want to make a connection through ODBC. I have created a User DSN: SYBASE ASE ODBC Driver, which references Adaptive Server Anywhere 8.0 Can anyone help?
Last reply by TheWizardofInt, -
- 2 replies
- 2.3k views
Hey Guys, I'm having a weird problem. I wrote some simple application in c# which shows the data of a acces database in a datagridview. On the RowChanged and RowDeleted events of the dataset i do a dataAdapter.update(dataset). It works all fine, i can add new rows, change and delete excisting rows. All no problem. The problem starts when i add a new row and then try to delete that newly added row. I know that it executes the insert statement and finishes it succesfully, so the row excists in the database aswell as in the datagridview. But when i then try to delete i get the DBConcurrencyException telling me: Concurrency violation: the DeleteCommand affected 0 of the e…
Last reply by ChoKamir, -
-
- *Experts*
- 7 replies
- 1.4k views
helo... How will i suppress values that have the same date? Col1 Col2 1/1/2005 "entry1" 1/1/2005 "entry2" 1/2/2005 "entry" I want to display only 1 entry per date.. I'm using Crystal Report XI. please help....
Last reply by tinJeff, -
-
-
- Administrators
- Leaders
- 5 replies
- 1.7k views
heh I'm learning VC++ and I don't know if this question belongs here but anyway, how do I show for example integer value in a messagebox in VC++.. I couldn't find this information... regards...
Last reply by snarfblam, -
-
- 1 reply
- 931 views
Is it possible to create a simple terminal emulator program similar to HyperTerminal using VB2005 Express? Could someone point me in the right direction or to some sample code? Thanks...
Last reply by progload, -
-
- *Experts*
- 1 reply
- 2k views
http://www.xtremedotnettalk.com/showthread.php?t=49346 This post reffers to: http://msdn.microsoft.com/vbasic/downloads/samples/default.asp Which returns Error 404! I think the correct link is: http://msdn.microsoft.com/vbasic/downloads/code/default.aspx
Last reply by Nerseus, -
-
-
- Leaders
- 2 replies
- 559 views
List<T> does not have an Item() method? You have got to be kidding me? After I get my hundreds of objects added to my new List, how am I expected to access them?
Last reply by snarfblam, -
-
-
- *Experts*
- Administrators
- 3 replies
- 1.1k views
Ok.. this is a silly / easy question that I know the answer too - but for some reason, I can't get the answer to come to me at this moment... I have a string (a long string) and I want to cut off all the remaining text after the 6th or 7th word (looking for the first white space area after that word) and put "..." in the remainder of the string's place. (You know, kinda like a preview of a news article or something) How can I do this in sql? I have done it before, but can't remember or think of it for the life of me! Any help is appreciated... :)
Last reply by college_amy, -
-
- 1 reply
- 959 views
Dim objRegistry As RegistryKey = Registry.ClassesRoot Dim objDefaultIcon As RegistryKey = Registry.ClassesRoot Dim Names() As String = objRegistry.GetSubKeyNames For i As Int32 = 1 To Names.Length - 1 If Mid(Names(i), 1, 1) <> "." Then Exit For objRegistry = objRegistry.OpenSubKey(Names(i)) objDefaultIcon = objDefaultIcon.OpenSubKey(objRegistry.GetValue("") & "\DefaultIcon") Console.WriteLine(Names(i) & objDefaultIcon.GetValue("").ToString) ExtentionCollection.Add(i, Names(i)) Next the loops runs once...and then i get the error...maybe iam missing something simple...b…
Last reply by Goggy, -
-
- Administrators
- 1 reply
- 973 views
Usually when I create a program that has icons in it, I embed all the icons into the executable. And when I need them, just pull them out of the assembly. I am just wondering what is the best way to handle this. Embed all icons/images into the app and then apply it to the buttons or wherever I need them manually when the control loads or by doing it at design time with image lists or just setting the image to the control. I guess imagelists embed the icons anyway but to only the size you specify. Where the icon will have several different icons sizes in the file, so you can use it at any size that is available and avoid any loss in quality if you decide you want …
Last reply by PlausiblyDamp, -
-
- 0 replies
- 688 views
Hi, I wrote a nice function to return an OleDbDataReader object containing my query's results. Here it is: (feel free to use it) Public Function ReadFromDatabase(ByRef varQuery As String, ByVal Caller As String) As OleDbDataReader 'Variables Dim varReadOleDBCommand As New OleDbCommand 'Error Handler ReadFromDatabaseError = False Try 'DBCommand Properties With varReadOleDBCommand .Connection = New OleDbConnection(varConnectionString) .Connection.Open() .CommandText = varQuery 'Return Query Output Return .ExecuteReader …
Last reply by kevinv_, -
-
- Leaders
- 2 replies
- 985 views
I have a Panel docked to the bottom of a form, with the some buttons on the right hand side of the Panel. On Form_Resize, I programmatically set the position of the buttons so that its position on the right is consistent, regardless of the form size. btnClose.Left = pnlButtons.Width - btnClose.Width - 10 btnRefresh.Left = pnlButtons.Width - btnRefresh.Width - btnClose.Width - 20 btnUpdate.Left = pnlButtons.Width - btnUpdate.Width - btnRefresh.Width - btnClose.Width - 30 Now, in the Form_Load event I set the form to FormWindowState.Maximized, and the Form_Resize event is raised. However, at this time, the form is still the size as it is in the designer. Even explicitl…
Last reply by snarfblam, -
-
-
- Leaders
- 1 reply
- 1.6k views
Is it posible in a webbrowser control to block the download of files?
Last reply by snarfblam, -
-
-
- Administrators
- 1 reply
- 865 views
I have a SQL Server 2000 database engine. I was curious what types of thing are added to the Transaction Log? I was prompted to ask this question after seeing the properties on a database and noticed the data file was ~500 MB while the Transaction Log was ~900 MB.
Last reply by PlausiblyDamp, -
-
- 2 replies
- 6.5k views
Hey i am using Visual Basic 2005 and a MySQL database. I am able to connect to my database but i am alittle unsure about retrieving the information and displaying it in something like a txtbox. What i want to do for example would be something like this... SELECT Name FROM test WHERE Id = "1234"; and then have that name display in something like textbox1 this is my code so far... Imports MySql.Data.MySqlClient Public Class frmLogin Dim conn As MySqlConnection Private Sub cmdLogin_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdLogin.Click conn = New MySqlConnection() conn.ConnectionString = "Server=" & txtServ…
Last reply by college_amy, -
- 1 reply
- 800 views
Please visit to this site: http://www.google.com/finance?q=msft&hl=en When you type in the search box, a layer that containsthe list of values is shown and the values change based on the search criteria. I dont see any post back either. Any input on this is appreciated.
Last reply by dick_nl, -
-
- Administrators
- 4 replies
- 1k views
Hi all I am trying to upload an image, and resize it automatically onto a web server. I have successfully uploaded the file, and I am able to rename it and change the file extention on it. Here is the code that I am using: Dim strLongFilePath As String = fileupload1.PostedFile.FileName Dim intFileNameLength As Integer = InStr(1, StrReverse(strLongFilePath), "\") Dim strFileName As String = Mid(strLongFilePath, (Len(strLongFilePath) - intFileNameLength) + 2) FileUpload1.PostedFile.SaveAs(Server.MapPath("\Samples\") & strFileName) What I am having a problem with is in resizing the file. I have been looking on google but the examples I have found are relat…
Last reply by PlausiblyDamp, -
-
- 0 replies
- 738 views
Can someone tell me how to hide the black frame drawn around a group control in VS-2005 C++ ? I have the property "Client Edge" set to true for a nice sunken panel effect, but I would like to remove the black frame on "InitDialog()" event, or some other way. If this is the wrong forum please advise which one to use. Thanks,
Last reply by ndaigneault,
-
Who's Online 0 Members, 0 Anonymous, 20 Guests (See full list)
- There are no registered users currently online