419 Posted Topics
Re: Extinct Animal: Sabre Tooth Tiger Population: 0 (the definition of extinct) How to save them: You can't. They are extinct. | |
Re: Are you refering to the old DEC VT102 computer terminal? If so, just type: "vt102 escape codes" into your faorite search engine. There is lots of info out there. | |
Re: This is your problem Private Sub GetWord() Dim strWordList() As String = Split(My.Computer.FileSystem.ReadAllText("Words.txt"), vbCr) Dim randomGenerator As New Random intLine = randomGenerator.Next(0, 64144) strWord = strWordList(intLine).ToUpper End Sub You are splitting on VbCr. It should be VbCrLf Or try: Private Sub GetWord() Dim strWordList() As String = IO.File.ReadAllLines("Words.txt") Dim randomGenerator … | |
Re: So, if I understand correctly. You want to share your project definition and source code with your friend as opposed to sending your friend an installable version of your project. Use the file Explorer and go to your "Visual Studio 20XX\Projects" folder. Right-click on the folder that holds your project. … | |
Re: I could be wrong, but is'nt "Persist Security Info" a parameter for connecting to SQL Server and not an old Access mdb file? | |
Re: [File System and the Registry (C# Programming Guide)](http://msdn.microsoft.com/en-us/library/2kzb96fk.aspx) | |
Re: First off, .Net will be slower than a natively compiled VB6 app. One thing to check for is late binding of objects. This will really slow things down. If you have not already done so, add the following to the top of your code and then the fun begins; work … | |
Re: I got some funky behavior as well. Had two controls on the form and one of then tended to disappear. I think it was related to you setting the FlatStyle in OnPaint. Changing styles tends to trigger a paint event on most controls. I modified it as follows and all … | |
Re: use a RichTextBox instead. It supports Redo. | |
Re: I think the OP is using a translator service to post in english and something was lost in the translation. This is my understanding of your goals: 1. There is a CheckBox that enables/disables a Delete Button. 2a. Clicking the button will delete the selected rows from the DataGridView or … | |
Re: Before you put this on it's own thread, I would suggest that you consider optimizing the code first. You are doing a lot of string manipulations that may be better handled in a stringbuilder instead. for (int i = 0; i < gridView1.RowCount ; i++) //getting data that is going … | |
Re: Did you use "Add DataSource" and click yes to copy local?  This copies the DB to your project folder. The default is to then copy from your project folder to the output (Debug) folder on the building the project. Your program is working on that copy in the … | |
Re: Printing a report is kind of vague. What do you want in the report? Is it just text or do you want to do tables and images, or something else? | |
Re: Essentially you want some form of panel manager. We discussed a couple of ways of using the TabControl to achieve this in this thread: http://www.daniweb.com/software-development/csharp/threads/446066/windows-form-designe-change- | |
Re: >...now when the Form2 is show and everytime i click a button the Form2 lost its focus I have to ask, which Form parents the buttons that you are clicking? If they are on Form1, this is normal as they have to be in focus to be clicked. Also, does … | |
Re: When referencing the ComObjects(application, workbook, range, etc), follow the No Double ComObject rule (also referred to as the One-Dot rule): DeclaredRef.Comobject.PropertOrMethod not: DeclaredRef.ComObject.ComObject.Property You did a good job referencing and releasing most of them, but missed one. try changing as follows: Set ex = CreateObject("Excel.Application") Set exWB = ex.Workbooks.Add ' … | |
Re: Install: [Microsoft Access Database Engine Redistributable](http://www.microsoft.com/en-us/download/details.aspx?id=13255) | |
Re: I suggest that you consider a select case block instead. It will be easier to maintain and read. [Select...Case Statement (Visual Basic)](http://msdn.microsoft.com/en-us/library/cy37t14y%28v=vs.100%29.aspx) | |
Re: Based on the documentation ([Using the Winsock Control](http://msdn.microsoft.com/en-us/library/aa733709%28v=VS.60%29.aspx)) I'd say that you are not performing the Bind properly. You need to specify the local port. | |
![]() | Re: The browser you are using is siliently downloading stuff all the time. It is a matter of do you trust the program. I use a third party Firewall to block everything unless I grant it permission. However, once you grant a program access to the internet, there is very little … |
Re: There still here. Just a bit different syntax. [How to use ADO Recordsets in Visual Basic .NET](http://support.microsoft.com/kb/315974) But you may find it usefull to use the .Net wrappers. [Energize Your Data Retrieval Code with ADO.NET Objects](http://msdn.microsoft.com/en-us/library/ms810293.aspx) [Overview of ADO.NET](http://msdn.microsoft.com/en-us/library/h43ks021%28v=vs.100%29.aspx) | |
Re: > PS: i need to save the data of each line in the Db to a single line in the txt file without space between the data. I don't understand why you do not what a delimiter between the data as it will be nearly impossible to parse later. But … | |
Re: see: [Arrays (C# Programming Guide)](http://msdn.microsoft.com/en-us/library/9b9dty7d.aspx) | |
![]() | Re: > Only if the control is explicitly made public in Form2. By default new controls added through the designer are private (as they should be!), and in a code review I'd question making them public. I'm not looking to jump into the fray; just providing some information. For C# the … |
Re: > But since the Alt key doesn't have Ascii equivalent, I can't figure it out. I would want to try Keyup or Keydown but want to have some idea first. How about using the Shift parameter of the KeyDown Event? Shift - Indicates the state of the SHIFT, CTRL, and … | |
Re: Another give me code request from another I'm too lazy to search myself poster. http://letmebingthatforyou.com/?q=gaussian%20filter%20vb6 hint it's on planetsource code | |
Re: First off, thankyou for a well written question. These are so rare in this forum. Second, I have never done what you are doing, but I have read on it, so take my advice with a grain of salt. Me.WebBrowser1.Document.InvokeScript("addMarker", New String() {"41.850033, -87.6500523"}) I believe that you may need … | |
Re: Perhaps it has something to do with the fact you are querying the DB on the combobox.Dropdown event and trying to change it's datasource in that same handler. ComboBox perspective - I dropDown to display my content, but wait, the programmer wants to change my contents while the I'm is … | |
Re: I believe the OP is concerned about getting the proper SQL Express server name on an unknown installation. The following code works fine with SQL Express running on the machine. I have never tested it to see if it finds a Network server. When I still had SQLExpress 2005 and … | |
Re: The StringCollectionEditor is for editing an object of type System.Collections.Specialized.StringCollection or a class that inherits from it. It implements all the interfaces you have specified for your class, but have provide the methods that specifying those interface requires you to do? See: http://msdn.microsoft.com/en-us/library/87d83y5b%28v=VS.80%29.aspx Also, you may need to change "System.Windows.Forms.Design.StringCollectionEditor" … | |
Re: Unless you have an absolute need to be using SQL Server 2005, I would recommend against installing it and go directly for SQL Server 2008. You will need to get the VS2008 updates to work with it, but it is nice to work with the new SQL version. Plan on … | |
Re: Have you added the file as an embedded resource? i.e. can you type in your code: My.Resources.back_blue ? If so, you will need to extract it to disk first. | |
Re: I believe that the OP's reasoning may be valid if another application is accessing the DB as well. If both tried to grab total access at the same time, there may be a conflict. Assuming that you made a typo on the forum (missing opening quote) with the connection string, … | |
Re: Would not changing the "Full Name" field in your User Profile accomplish the same goal? Unless, your Username is something you find to be unprofessional. | |
Re: It can be done. However, the sucess of the implementation depends on how dependent the hosted program is on being parented to the Desktop Window and how good the developer is at developing workarounds for those dependencies. A program like Notepad is trival while hosting MS Word can make you … | |
Re: Iterating through a column as shown above will find the first empty cell, but not necessarily the last used cell in the column. If your user happens to leave one of the textboxes empty, you risk overwritting previous stored information. This could be handled by making sure each textbox is … | |
Re: [How To Create a Resolution-Independent Form](http://support.microsoft.com/kb/182070) | |
Re: http://lmddgtfy.net/?q=mysql%20backup%20and%20restore | |
Re: Use the ActiveX ComboBox. It has a change event that you can handle. Also the changes that it makes to the linked cell also triggers the WorkSheet_Change event. The Forms drop down does not do this. | |
Re: Please show your key handler code. Based on your description I can only surmise that you are some how feeding the key character into the webbrowser.Document text, but that is only a guess. It is hard to offer advice when we have to guess what you are doing. | |
Re: I don't use CR but it looks similar to using MS's RDLC. I believe that you need to create a parameter field for your textobjects. Here is a reference: http://www.informit.com/articles/article.aspx?p=683066&seqNum=1 This link shows how to set the parameters at runtime. http://social.msdn.microsoft.com/Forums/en-US/vblanguage/thread/aee2d970-470f-4cfe-9765-cbf50c28bf24 | |
Re: ` Directory.CreateDirectory(x.myCriticalFolder)` -> ok so no final "\" on myCriticalFolder. But then, `Dim path As String = myCriticalFolder & "Locations and Call Types.txt"` Missing the "\" between folder and filename You could use: `IO.Path.Combine(x.myCriticalFolder, "Locations and Call Types.txt")` instead. | |
Re: You have two linked pieces of data: 1) username and 2) their password. To make this work, the username needs to be unique. This is why when signing up for any type of service that requires an username and password, that the service checks the availabilty of the selected username. … | |
Re: An easy way to do this is to create a string collectionin My.Settings.  You can add/delete from it like any other list. Set it as the Listbox's DataSource. `ListBox1.DataSource = My.Settings.History` Just make sure that user settings is set to automatically save or do it in your code … | |
Re: The error message indicates that "pictureData" is null (Nothing). Make sure your query is correct and check for null before converting to an Image. If pictureData IsNot Nothing Then Another issue that you may run into using the ExecuteScalar command is the size limit that it can return. From the … | |
Re: VBA is a subset of VB6, so I think that would be the best place. http://www.daniweb.com/software-development/visual-basic-4-5-6/4 | |
Re: Update the underlying datatable directly. This will ensure that the changes are reflected in the dataview. Something like this: Public Class Form1 Dim dtSource As New DataTable Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Dim r As DataRow With dtSource .Columns.Add("store", GetType(String)) .Columns.Add("hours", GetType(Double)) r … | |
Re: How about just adding a title? Dim sometitle As New Title() With sometitle .Text = "Fred" .IsDockedInsideChartArea = True .Docking = Docking.Bottom .Alignment = ContentAlignment.MiddleCenter End With Chart1.Titles.Add(sometitle) | |
Re: If you are only showing the first column, then I suspect you may not have the ListView configured correctly. I don't use this control very often, but for three columns, I would do it like this: With ListView1 .View = View.Details .HeaderStyle = ColumnHeaderStyle.None ' set to whatever you need … | |
Re: > or any other solution if my way is too stupid I would not say its stupid, just not well thought out. :) Look at what you wrote as one of your goals: " Later in that form when user clicks on the panel stopwatch must start". To accomplish this, … |
The End.