
joe_pool_is
Avatar/Signature-
Posts
512 -
Joined
-
Last visited
Content Type
Profiles
Forums
Blogs
Events
Articles
Resources
Downloads
Gallery
Everything posted by joe_pool_is
-
Where is a good place to find images for an Image Collection Editor? Visual Studio includes several in the Common7 folder, but I'd like to find some newer, more modern ones ... as well as others that Microsoft did not include: circles, cylinders, rotate (just to name a few). Could some of you point me to nice collections online?
-
Two guys are working on one project: one works from his house using WYSIWYG tools while the other is writing the code that works behind the scenes (that would be me). After creating the code, the other needs a way to edit it so that it will match with the "master plan". Assuming the main file is Application1.aspx, what files can be modified from Dreamweaver or MacroMedia? We do not want the programs to distroy the ASP.NET code.
-
Thanks, Robbie! That worked great! If you have a minute, I have another question. Heres some background info: These forms of mine each have about 50 different fields; most are TextBoxes, but some are ComboBoxes and there are a few True/False RadioBoxes. It is taking a very long time to go through each of these objects to assign them an associated name (i.e. Name field gets named txtName). Not only that, but my btnSubmit and btnReset also require a tremendous amount of "busy work" coding, too. For my btnReset_Click event, every object on my form has to be manually set (each TextBox.Text = "", each ComboBox.SelectedIndex = -1, and each radDefault.Checked = True). For my btnSubmit_Click event, every object on my form similarly is collected into a strString (strString = TextBox.Text, strString &= ComboBox.SelectedItem.Text, or a True/False If...Then statement for the RadioButtons). Obviously, there must be a more intelligent method of doing this. Would you (or anyone else) happen to know of a technique/trick that would simplify this monster? Thanks for the help! ~Joe
-
In my webform's VB code, after a user clicks btnSubmit on my form named Quote.aspx, I gather the info on the form and email it to myself. I would like to be able to redirect my user to a new page - say SubmitOK.aspx, located in the same directory. How would I tell Quote.aspx to load SubmitOK.aspx from the webform VB code in Quote.aspx?
-
We have a basic form online, and we are collecting info with vb.net and asp.net into a string called strOutput. We would like to have this string sent to us in an email, but no one knows how to do that once the button Submit is pressed. Any thoughts? Links?
-
How would I create a video player in a form? .AVI, .MOV, or .MPG? Any ideas? Good books? Websites?
-
It seems impossible to create a backup file of your work. Say I'm working on Project10-95 and I made several changes. It would be nice if I could select "Save As..." and rename it Project05-2004. But there is no "Save As..." option, and as soon as the debugger is started, everything is saved to the old project that worked great before. To make a backup, one must currently copy the files to another area manually.
-
I would like to create an application that will allow me to play RF video from my cable TV, DVD video from my DVD-ROM, .mov files that have been downloaded from the Internet, and any other video formats that might be out there. Stop, FF>>, RW<<, Pause, and slow controls are desired too. I have NO expertise in this area at present. I have just used others' software (MyDVD, Media Player, etc.), and want to find a way to handle as many formats as possible in my application. My questions are: 1) Does VB.NET have something that can take on this task already built in?, and 2) Is there a book or website somewhere that talks about or teaches what I am wanting to do? Any info on this is appreciated before I take on the task and dive into it.
-
If I have a two-dimensional array such as Array1(x, y), how would I parse through the x or y only variables? For each x, I want to modify y. The technique "for i = 0 to Array1.Length - 1" does not work because it has the Array1 length equal to (x * y). All I want is the length of the "x" side. Does this make any sense?
-
"File | Close" -vs.- the exit "X" on form
joe_pool_is replied to joe_pool_is's topic in Windows Forms
BTW: Forgot to mention: Divil and PlausiblyDamp were able to fix my problem with the icon in the task tray. -
"File | Close" -vs.- the exit "X" on form
joe_pool_is replied to joe_pool_is's topic in Windows Forms
Freakin' amazing. Really. I've got 4 books on VB.NET and taken two classes on it, and nothing has mentioned anything about being able to drag-and-drop it from the toolbox. I guess it was there the whole time, but I just didn't know to look for it. Thanks for everyone's help. In retrospect, the solution to that whole problem seems elementary. Embarrassing! -
"File | Close" -vs.- the exit "X" on form
joe_pool_is replied to joe_pool_is's topic in Windows Forms
divil, I think I may be creating the notify icon myself. I have declared it as a global variable in my declarations section as a new NotifyIcon(). Does this mean I have created it with the designer? I'm new to VB and new to the visual programming concept, so some things are taking me a bit to catch on to. Thanks for helping, though. (I *need* it!) -
"File | Close" -vs.- the exit "X" on form
joe_pool_is replied to joe_pool_is's topic in Windows Forms
The problem is: The notify icon is *not* going away. This leads me to believe that my other processes (such as closing the COM ports) are also not being done. How can I ensure this is happening? Why is the icon still in my Task Tray when I use the Me.Close() function? How can I debug that? -
"File | Close" -vs.- the exit "X" on form
joe_pool_is replied to joe_pool_is's topic in Windows Forms
An icon (called aNotifyIcon in my code) will not be removed from the task bar if I program in the Close() function and my operator clicks the Window's form's exit button. The code was written like this: Private Sub mnuClose_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles mnuClose.Click ' // This section has other events to prompt the operator if they ' // would like to do things such as saving any variables to disk. If MyCom.Port.IsOpen Then MyCom.Port.Close() aNotifyIcon.Visible = False Me.Close() End Subbut I am trying to change it to handle all of the closing conditions. Currently, I have this setup: Private Sub mnuClose_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles mnuClose.Click ' // This section has other events to prompt the operator if they ' // would like to do things such as saving any variables to disk. Finalize() End Sub ' Protected Overrides Sub Finalize() If MyCom.Port.IsOpen Then MyCom.Port.Close() aNotifyIcon.Visible = False MyBase.Finalize() End Sub but this leaves Visual Studio .NET in the debug mode after the program is stopped. Strange. Do any of you know what is going on? This is perplexing. -
"File | Close" -vs.- the exit "X" on form
joe_pool_is replied to joe_pool_is's topic in Windows Forms
I tried that with the "Base Class Event > Closing" technique. This works okay if they *only* use the Form's X button to kill the file. If someone tries to use the "File | Close" sub that I wrote (which uses the Me.Close() function), all heck breaks lose. I have even tried calling the Form1.Closing() sub that is created from my "File | Close" sub, but I get unhandled exceptions when I do this. -
I like users of my program to use the "File | Close" method so that all of my open connections, taskbar icons, etc. can be propperly closed or taken care of. If a user uses the exit button located at the upper-rightmost area of every Window's ... "Window", my exit routine in my program is totally bypassed. I have tried implementing a MyBase.Finalize() and a "Base Class Event > Closing" at separate times, but then things go wrong when my users attempt to close my program properly (i.e. use the "File | Close" technique). Does anyone know how to fix this little thorn in my side?
-
Cute kiddos, Sysop. I see your point. So basically, I have to initialize every element of the array first. I guess that's what I needed to know. Thanks a million! ~Joe
-
I want to make this as generic as possible, so I'll use crayons as an example: class Crayon public Number as short = 0 public Name as string = "" public Manufacturer as string = "" end class private Color(64) as Crayon Now, how do I declare my Color() array as an object so that I can read and set my variables? This is probably very basic, but it is so basic that I can't find any help on it anywhere. Thanks in advance!
-
PD: I've tried that, but I think I am doing something wrong. I've renamed a few of the classes to make them more intuitive. Here is the way it looks right now: Class SwitchValues Class Addresses Public Num As Short = 0 Public Name As String = "" Public Last As String = "" End Class Class Positions Public Num As Short = 0 Public Name As String = "" Public Last As String = "" End Class Public Addy As New Addresses() Public Pos As New Positions() Public TallyOn As Boolean = False Public Exists As Boolean = False Public Button() As String = {"N/A", "RT1", "RT2", "LD1", "LD2", "AX1", "AX2", "AX3", "AX4", "AX5", "SAFE"} End Class Class SwitcherBox Public SD01 As New SwitchValues() Public SD02 As New SwitchValues() Public SD12 As New SwitchValues() Public SD03 As New SwitchValues() Public SD13 As New SwitchValues() Public SD04 As New SwitchValues() Public SD05 As New SwitchValues() Public SD06 As New SwitchValues() Public SD07 As New SwitchValues() Public SD08 As New SwitchValues() Public SD09 As New SwitchValues() Public SD10 As New SwitchValues() Public SD11 As New SwitchValues() End Class Private Studio(12) As New SwitchValues() ' Arrays cannot be declared with 'New'. Private objStudio As Studio(12) ' Type 'Studio' is not defined, and Array bounds cannot appear in type specifiers.
-
Sorry for taking so long to get back with you. I've been trying other methods, including yours (which might work). Regarding your question, I have been trying to initialize my arrays using these: Private SD(12) As New SwitchClass() ' Intellisence says "Arrays cannot be declared with 'New'." Private SD(12) As SwitchClass() ' Intellisence says "Array modifiers cannot be spedified on both a variable and its type." The example below allows me to declare the variable: Private SD(12) as SwitchClass but it will not let me assign anything to it. SD(1).Address = 1 ' Intellisence says "Object not set to an instance of a variable" I am still working with your example, trying to find a way to implement it. If you (or anyone else) has any other input, I am all ears.
-
I've got a VB question which *should* be easy ... if you know how to solve it. Currently, my code uses a multi dimentional array: dim Position as short = 0 dim IsOn as short = 1 for i = 0 to (whatever) switcher(i, Position) = this switcher(i, IsOn) = that next This is short and easy, but every element of the array has to be the same datatype (all integers, all strings, etc.). To fix this, I want to use a class: class SwitchClass public Position as String public IsOn as Boolean end Class Private SD01 as New SwitchClass() Private SD02 as New SwitchClass() etc. How can I use this in my loop now? for i = 0 to (whatever) SDxx.Position = This SDxx.IsOn = False next See my problem? How can I replace xx with i? I tried this: SD{Convert.ToString(i).PadLeft(2, 0)}.Position = This but that did not work. Also, I tried to declare an array of classes, but that did not work either: Private SD() as new SwitchClass() Any thoughts or suggestions? Anyone? ~Joe
-
Does anyone know how to update a MS Access file in VB.NET? My code currently looks this: Private Sub mnuSaveConfig_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles mnuSaveConfig.Click Dim strSQL As String, i As Short Dim objConnection As System.Data.OleDb.OleDbConnection Try objConnection = New System.Data.OleDb.OleDbConnection(strFile) objCommand = New System.Data.OleDb.OleDbCommand() objCommand.Connection = objConnection objCommand.Connection.Open() Catch val As Exception MessageBox.Show(val.Message, "Database Connection Error") End Try Try For i = 0 To Matrix.Length / 6 - 1 ' // 384 total Matrix entries, 6 Fields per Matrix row, therefore 384/6=64 rows, numbered 0 to 63. strSQL = "UPDATE Config " & _ "SET Name = " & Convert.ToString(Matrix(i, 1)) & ", " & _ "Address = " & Convert.ToString(Matrix(i, 2)) & ", " & _ "Level = " & Convert.ToString(Matrix(i, 3)) & ", " & _ "Switch Address = " & Convert.ToString(Matrix(i, 4)) & ", " & _ "I/O = " & Convert.ToString(Matrix(i, 5)) & " " & _ "WHERE ID = " & Convert.ToString(Matrix(i, 0)) objCommand.CommandText = strSQL objCommand.ExecuteReader() Next objDataReader.Close() mnuSaveConfig.Enabled = False Catch val As Exception MessageBox.Show("Unable to safe settings." & vbCrLf & val.Message, "Configuration Error") End Try End Sub
-
My application is not going to be as complex as most. I have a very small database of maybe 64 fields that I will be keeping in the same directory that my program is running in (maybe one directory higher). Current Problem: I store my projects on a USB Flash Drive. This drive pops up as E:\ on some PCs and F:\ on others. Predicted Problem: During installation, the user could install the program in C:\Program Files\Location1 or C:\Program Files\Company Name\Location2, etc. See the problem? When I developed my Crystal Reports application named CRViewer1, the source path to the data file was E:\VB\NewProgram\CrystalReport.rpt. It works great on the machine that has the E:\ drive as my Flash Drive. During runtime, if I try to open the database file CrystalReport.rpt with a call to the CRViewer1 on a machine where my Flash Drive shows up as drive F:\, then a Database Login screen pops up showing a field called Server Name with the default value E:\VB\NewProgram\database.mdb on display. I can manually change the drive letter at this point to the F:\ drive; however, this is an unwanted bug in my system. What parameter could I set to make this Server Name path use a variation of the Application.StartupPath? I'm thinking it would look something like this: CRViewer1.ReportSource = Application.StartupPath.Substring(0, Application.StartupPath.Length - 1))Obviously, this does not work, and something like this would require me to manually set all the fields for the Crystal Reports viewer all over again (since it would overwrite what I had already). Does anyone have any thoughts?
-
Thought it had to be something simple like that. Thanks!