419 Posted Topics

Member Avatar for <M/>

Extinct Animal: Sabre Tooth Tiger Population: 0 (the definition of extinct) How to save them: You can't. They are extinct.

Member Avatar for <M/>
0
134
Member Avatar for dewdropz

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.

Member Avatar for rubberman
0
228
Member Avatar for Helianthus

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 …

Member Avatar for Helianthus
0
867
Member Avatar for castajiz_2

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. …

Member Avatar for TnTinMN
0
4K
Member Avatar for Ayesha.Shahnawaz

I could be wrong, but is'nt "Persist Security Info" a parameter for connecting to SQL Server and not an old Access mdb file?

Member Avatar for AndreRet
0
2K
Member Avatar for dana2292

[File System and the Registry (C# Programming Guide)](http://msdn.microsoft.com/en-us/library/2kzb96fk.aspx)

Member Avatar for castajiz_2
0
403
Member Avatar for josverhoeff

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 …

Member Avatar for TnTinMN
0
533
Member Avatar for ddanbe

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 …

Member Avatar for TnTinMN
0
2K
Member Avatar for vvk44
Member Avatar for davidmr

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 …

Member Avatar for TnTinMN
0
378
Member Avatar for danimischiu

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 …

Member Avatar for TnTinMN
0
250
Member Avatar for skliz

Did you use "Add DataSource" and click yes to copy local? ![copylocal](/attachments/fetch/L2ltYWdlcy9hdHRhY2htZW50cy8zL2NvcHlsb2NhbC5qcGc%3D/600 "copylocal") 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 …

Member Avatar for skliz
0
212
Member Avatar for wizzy-cool

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?

Member Avatar for tinstaafl
0
240
Member Avatar for skliz

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-

Member Avatar for ddanbe
0
276
Member Avatar for ImZick

>...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 …

Member Avatar for Begginnerdev
0
218
Member Avatar for atletico

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 ' …

Member Avatar for Reverend Jim
0
799
Member Avatar for l3ights

Install: [Microsoft Access Database Engine Redistributable](http://www.microsoft.com/en-us/download/details.aspx?id=13255)

Member Avatar for l3ights
0
139
Member Avatar for Gus_19

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)

Member Avatar for fuerer_g
0
220
Member Avatar for JohnKelly

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.

Member Avatar for TnTinMN
0
366
Member Avatar for nova37

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 …

Member Avatar for AndreRet
0
2K
Member Avatar for jemartalaban_1

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)

Member Avatar for Reverend Jim
0
180
Member Avatar for ke3r4

> 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 …

Member Avatar for adam_k
0
607
Member Avatar for dana2292

see: [Arrays (C# Programming Guide)](http://msdn.microsoft.com/en-us/library/9b9dty7d.aspx)

Member Avatar for dana2292
-1
435
Member Avatar for Rahul47

> 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 …

Member Avatar for azareth
0
351
Member Avatar for abelingaw

> 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 …

Member Avatar for TnTinMN
0
351
Member Avatar for maytham

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

Member Avatar for TnTinMN
0
411
Member Avatar for LOI_SE

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 …

Member Avatar for TnTinMN
1
1K
Member Avatar for SQLpower

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 …

Member Avatar for TnTinMN
0
223
Member Avatar for khair.ullah

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 …

Member Avatar for Reverend Jim
0
296
Member Avatar for NidhiSree

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" …

Member Avatar for TnTinMN
0
290
Member Avatar for kenomote

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 …

Member Avatar for jeffreyk16
0
231
Member Avatar for nilesh7136

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.

Member Avatar for nilesh7136
0
260
Member Avatar for pedders

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, …

Member Avatar for Ancient Dragon
0
1K
Member Avatar for canniemar

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.

Member Avatar for TnTinMN
0
154
Member Avatar for khevz.sandaan

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 …

Member Avatar for deceptikon
0
548
Member Avatar for bryann

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 …

Member Avatar for bryann
0
1K
Member Avatar for rishif2
Member Avatar for AndreRet
0
148
Member Avatar for joshl_1995
Member Avatar for joshl_1995
-1
366
Member Avatar for vivek.vivek

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.

Member Avatar for vivek.vivek
0
196
Member Avatar for t2nator

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.

Member Avatar for TnTinMN
0
125
Member Avatar for Lethugs

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

Member Avatar for Lethugs
0
1K
Member Avatar for RobRTaylor

` 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.

Member Avatar for RobRTaylor
0
145
Member Avatar for Zakkaria

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. …

Member Avatar for Ancient Dragon
1
332
Member Avatar for IsaacMessi10

An easy way to do this is to create a string collectionin My.Settings. ![usersetting](/attachments/fetch/L2ltYWdlcy9hdHRhY2htZW50cy8zL3VzZXJzZXR0aW5nLmpwZw%3D%3D/1000 "usersetting") 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 …

Member Avatar for IsaacMessi10
0
147
Member Avatar for chdboy

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 …

Member Avatar for chdboy
0
3K
Member Avatar for anisha.silva

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

Member Avatar for TnTinMN
0
248
Member Avatar for kindofsudden

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 …

Member Avatar for TnTinMN
0
1K
Member Avatar for Lethugs

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)

Member Avatar for Lethugs
0
2K
Member Avatar for khair.ullah

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 …

Member Avatar for evadehawkeye07
0
6K
Member Avatar for boher

> 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, …

Member Avatar for Reverend Jim
0
198

The End.