419 Posted Topics

Member Avatar for RaoxFaello

You are on the right track by acknowledging that you need to learn how to do this versus the all to common "I want code that does this and I have no intention of ever understanding it". This site is an excellent starting point. [Visual Basic .NET Programming for Beginners](http://www.homeandlearn.co.uk/net/vbnet.html) …

Member Avatar for Ancient Dragon
0
576
Member Avatar for VIPER5646

Presumably you have a table in the report and the cell expression is currently something like: `=Fields!ColumnC.Value` Use the Replace function to replace the comma, `=Replace(Fields!ColumnC.Value, ",", VBCrLf & "-")`

Member Avatar for TnTinMN
0
141
Member Avatar for spowel4

[DataTable.Compute Method](http://msdn.microsoft.com/en-us/library/system.data.datatable.compute.aspx?cs-save-lang=1&cs-lang=csharp#code-snippet-1)

Member Avatar for TnTinMN
0
227
Member Avatar for sanket044

Have you some how set the MaximumSize property to something other than Size.Empty?

Member Avatar for sanket044
0
2K
Member Avatar for tashee2007

That is not a question, that is a specification. As stated above, show what you have tried and described what is giving you problems.

Member Avatar for tashee2007
0
253
Member Avatar for kenomote

I'm not going to claim that this is a better way, but it is one way that I find easy to read and work with. ' This method uses a CopmmandBuilder to build the commands ' You need to provide a DataApater with the select command defined ' for the …

Member Avatar for TnTinMN
0
256
Member Avatar for Hendo

There is a more complete example here: [http://msdn.microsoft.com/en-us/library/system.diagnostics.process.beginoutputreadline%28v=vs.90%29.aspx](http://msdn.microsoft.com/en-us/library/system.diagnostics.process.beginoutputreadline%28v=vs.90%29.aspx) Other than that follow tinstaffl advice.

Member Avatar for tinstaafl
0
1K
Member Avatar for rgilmore

> So a work associate told my that if I add the Microsoft Word Object Library to my reference a user would be able to strip the word document text and process the data as a new string. It seems I was misinformed. There is no way my company is …

Member Avatar for adam_k
0
254
Member Avatar for moodylv

@moodylv: You are in the wrong forum. That is VB.Net code. I will ask a moderator to move this. For future reference, this is the correct forum: http://www.daniweb.com/software-development/vbnet/58 Take a look at this article: [How to: Read From Comma-Delimited Text Files in Visual Basic](http://msdn.microsoft.com/en-us/library/cakac7e6%28v=vs.90%29.aspx) In the example change: MyReader.TextFieldType = …

Member Avatar for TnTinMN
0
347
Member Avatar for SpyrosMet

I don't know about using LINQ for this, but I would do it like this. using System.Xml; . . . XmlDocument doc = new XmlDocument(); doc.Load("source.xml"); // if you have the xml in a string use doc.LoadXml(stringvar) XmlNamespaceManager nsmngr = new XmlNamespaceManager(doc.NameTable); XmlNodeList results = doc.DocumentElement.SelectNodes("child::result", nsmngr); foreach (XmlNode result …

Member Avatar for Ketsuekiame
0
3K
Member Avatar for yvrej17

Edit: @Jim, sorry about this. Didn't mean to step on your toes. I got interrupted while posting and did not think to do a refresh before posting. ********** No offence intended, but the logic of yours is very confusing. I'm not sure that this is much better. It does pretty …

Member Avatar for yvrej17
0
190
Member Avatar for developer707

I am interpreting the OP's question to be how to disable those annoying navigation clicks. This looks like much more code than it really is as I just cut it out of my browser class with all the included documentation. Public Class Form1 'Disables Navigation Sound Private Sub btnMuteNav_Click(ByVal sender …

Member Avatar for TnTinMN
0
338
Member Avatar for thewilf

A Datetime variable holds no culture specific information. You can however create a string representation for a specific culture. I'm a bit lost as to whether you are trying to convert a string value from your service or convert to string value to send to your service. Here are some …

Member Avatar for thewilf
0
243
Member Avatar for artemix22

try following this pattern instead, Dim dt As New DataTable Dim r As DataRow '************************* ' simulate Database Load With dt .Columns.Add("FromDataBase", GetType(Double)) r = .NewRow : r(0) = 5 : .Rows.Add(r) r = .NewRow : r(0) = 15 : .Rows.Add(r) r = .NewRow : r(0) = 25 : .Rows.Add(r) …

Member Avatar for TnTinMN
0
409
Member Avatar for Rahul47

For another method see: [Extending the My Namespace in Visual Basic](http://msdn.microsoft.com/en-us/library/bb531245%28v=vs.110%29.aspx)

Member Avatar for Rahul47
0
131
Member Avatar for Begginnerdev

Random is a pseudoRandom generator. You are creating a new instance each time. Without checking the docs, I believe it seeds based on system time. Therefore your seed value on differs only a bit on each creation. Try this: Private rnd As New Random Private Sub Me_Load(ByVal sender As Object, …

Member Avatar for Begginnerdev
0
219
Member Avatar for Pauliuz

> I've also done something with tab controls before and hooking into the draw at run time to hide the actual tabs showing, then programatically hopping between the two This works well if you want to keep all the controls and their handlers under one form. The method I use …

Member Avatar for TnTinMN
0
333
Member Avatar for Bile

@Andre, did you by chance mean to use InstrRev in line 6 of your code? Here's my entry for this mundane function. Function RemoveExt(fname As String, Optional extToRemove As String = "") As String ' if extToRemove = "" then all extensions removed Dim pt_pos As Integer pt_pos = InStrRev(fname, …

Member Avatar for AndreRet
0
139
Member Avatar for major_lost

Here is another option using the FileSystemObject Sub ListDrives() Dim fso As Scripting.FileSystemObject 'needs refernce to: Microsoft Scripting Runtime Dim fsoDrives As Scripting.drives Set fso = New FileSystemObject Set fsoDrives = fso.drives Dim i As Integer Dim letter As String Dim driveType As String For i = Asc("A") To Asc("Z") …

Member Avatar for TnTinMN
0
393
Member Avatar for SyncMaster170

Here is my 2 cents worth for something to check. You mention 64-bit repeatedly. Are you trying to target 64 bit? One of the DLL's may be 32-bit only. I believe that it would run fine under VS as VS is a 32-bit app.

Member Avatar for tinstaafl
0
199
Member Avatar for Rahul47

Are you using the Visual Basic source code editor to enter your code? If so, try paying attention to the IntelliSence prompts. ![intell1](/attachments/fetch/L2ltYWdlcy9hdHRhY2htZW50cy8zL2ludGVsbDEuanBn/500 "intell1") It informs you that you need to specify the column to retrieve for the GetString method.

Member Avatar for Philippe.Lahaie
0
446
Member Avatar for sarman.boyslo

Is the button a Microsoft Forms 2.0 Object Library CommandButton that has a TakeFocusOnClick property? If so, try setting the property to false.

Member Avatar for sarman.boyslo
0
280
Member Avatar for tinstaafl

To make that work you need to have Option Strict Off which is something I personally do not care for, but to each their own. You are forcing a narrowing implicit conversion on the method signature (delegate). Based on [Variance in Delegates (C# and Visual Basic)](http://msdn.microsoft.com/en-us/library/dd233060%28v=VS.100%29.aspx) I believe you are …

Member Avatar for Reverend Jim
0
328
Member Avatar for yvrej17

You played that " I'm just a student starting to learn vb.net and more on searching codes for editing and applying to my app" 3 momths ago. Instead of looking for code to cobble together into something that satifies your instructor, try learning from what you find. If you don't …

Member Avatar for TnTinMN
0
812
Member Avatar for dhatsah

Err is in this line: `g.Graphics.FillRectangle(tBrushArray(imageID), tJunk(a))` Many of the elements (indices: 0, and 9 thru 19) in tBrushArray are set to Nothing (null). So if imageID equals one of those indices, you are passing a null (VB Nothing) brush like your error message indicates is the problem.

Member Avatar for dhatsah
0
250
Member Avatar for Lowchernhwee

Please show a sample of your original xml file. Then manually create and show a sample of how it should look after it has been sorted.

Member Avatar for TnTinMN
0
224
Member Avatar for DyO152

Just a bit of info to add to the discussion. Your original code will give you your expected result if you change `objWriter.Write(editor.RichTextBox1.Text)` to `objWriter.Write(editor.RichTextBox1.Rtf)` Those dang computers always try to do what you tell them to do, not what you want them to do. :) That said, its easier …

Member Avatar for TnTinMN
0
223
Member Avatar for thanzeem7

I guess if you you have it formatted to a short date format, then allowing the user to invoke the dropdown to show the MonthCalndar may be of some use. Anyways, making a readonly DTP control is fairly easy. Public Class ReadOnlyDTP Inherits DateTimePicker Public Shadows Property Value() As DateTime …

Member Avatar for M.Waqas Aslam
0
1K
Member Avatar for Ancient Dragon

To supplement BD's comment on brackets, this is from the documentation; *Any program element — such as a variable, class, or member — can have the same name as a restricted keyword. For example, you can create a variable named Loop. However, to refer to your version of it — …

Member Avatar for TnTinMN
0
714
Member Avatar for randall.graves.37

Is the DGV bound to a datatable? Can you except the DGV showing only rows that match your search criteria? If so, consider using setting the row filter on the datatable's DefaultView or creating a DataView and using it as the DGV's datasource.

Member Avatar for TnTinMN
0
143
Member Avatar for azareth

Is this happening with all your projects or just one particular project? Does it happen if you create a new project?

Member Avatar for azareth
0
157
Member Avatar for lulu79

You are either going to have to transform your table into format that databinding can read, or feed the points individually by looping through your table. Since you are using timespans, you will have to transform the timespan to a numeric value. You have been shown before how to do …

Member Avatar for lulu79
0
4K
Member Avatar for acepeda

This behavior can occur if your source file (yourfilename.vb) somehow become posted dated in comparison to your current system datetime setting. I posted some instructions on how to correct this condition here: [Click Here](http://www.daniweb.com/software-development/vbnet/threads/442525/vb.net-does-not-work-properly#post1908265)

Member Avatar for TnTinMN
0
136
Member Avatar for Rahul47

I believe you are getting the error due to your use of "+" for string concatonation. Since you have a numerical value (cmbSecurity_Ques.SelectedIndex) in your code, the compiler is treating all of it as a mathematical equation. Switch to using "&" and change: `cmbSecurity_Ques.SelectedIndex` to: `cmbSecurity_Ques.SelectedIndex.ToString`

Member Avatar for Rahul47
0
400
Member Avatar for Rahul47

Be advised that setting the class style to CS_NOCLOSE (named CP_NOCLOSE_BUTTON in Doogledude's example) will also prevent Alt-F4 from closing the window. You can achieve the same effect while retaining Alt-F4 closure by PInvoking the RemoveMenu function. Private Const MF_BYCOMMAND As Integer = 0 <DllImport("User32")> _ Private Shared Function RemoveMenu(ByVal …

Member Avatar for Rahul47
0
800
Member Avatar for shermags

You need an ExpandableObjectConverter. It's pretty easy to do. :) Here is the converter: Public Class DatabasePropertiesConverter Inherits ExpandableObjectConverter Public Overrides Function ConvertTo(ByVal context As ITypeDescriptorContext, ByVal culture As Globalization.CultureInfo, ByVal value As Object, ByVal destinationType As Type) As Object If destinationType Is GetType(String) Then Return "" ' this prevents …

Member Avatar for shermags
1
277
Member Avatar for zawpai

> I can't find "Controls.InvokeRequired" in vb.net2003. I want to write a simple data updating from "Mulitple Thread", but I would like to check whether "Controls" are requied "Invoke" or not. I can't say for certain as I never worked with Visual Basic .Net 2003 or the 1.1 .Net Framework, …

Member Avatar for zawpai
0
1K
Member Avatar for VIPER5646

Jim has a minor error in his code: "SELECT * FROM invoiced_filter " & _ " WHERE (Invoiced > #" & fromdte & "# AND Invoiced < #" & todte & "#)" Access also supports the Between statement but it requires the hash mark ("#") as Jim shown. "SELECT * …

Member Avatar for VIPER5646
0
253
Member Avatar for UKnod

For you first question regarding Process. "Process.Start" is a shared function that returns the started process. The correct syntax would be: Dim NewProcess As Process ' No New keyword If Attachment2TextBox.Text <> "" Then NewProcess = Process.Start(Attachment2TextBox.Text) For you second question, I am not going to re-invent the wheel, but …

Member Avatar for UKnod
0
1K
Member Avatar for Mr.M

Perhaps use a checkbox with a button appearance instead? Public Class Form1 Private WithEvents chkButton As New CheckBox _ With {.Appearance = Appearance.Button, _ .CheckState = CheckState.Unchecked, _ .Location = New Point(10, 10), _ .Size = New Size(150, 25), _ .TextAlign = ContentAlignment.MiddleCenter, _ .Text = "I'm really a checkbox", …

Member Avatar for tinstaafl
0
1K
Member Avatar for acepeda

I looked at your previous thread and the advice you were given should have worked if it was implemented correctly. So, please show your actual code where you define your Select query. This should be easy to correct for you if we have the relevant information. Also, what type of …

Member Avatar for tinstaafl
0
134
Member Avatar for Ancient Dragon

Are you using VS2012 Express, if so you may be out of luck. [Click Here](http://forums.mysql.com/read.php?38,546265,570091#msg-570091)

Member Avatar for Ancient Dragon
0
278
Member Avatar for t2nator

The option that I prefer is to extend the "My" namespace. It is designed just for this type of use. I assumed that the config file only would need to be read once. If this is not the case you can easily modify the logic. Just add this like you …

Member Avatar for t2nator
0
1K
Member Avatar for saaz

I am bored and decided to go into a tutor mode. :) First off I believe in strongly typed data, so I recommend that you use an Ingredient class. Public Class Ingredient ''' <summary> ''' Builds a new ingredient from a comma delimited source string ''' </summary> ''' <param name="Source">ex: …

Member Avatar for saaz
0
201
Member Avatar for Mikey12345

I think this pattern should work for you. I'm still learning this XML stuff. ' create a named datatable ' content is irrelevant Dim dt As New DataTable("fredsfamily") Dim r As DataRow With dt .Columns.Add("Name") r = .NewRow : r(0) = "wilma" : .Rows.Add(r) r = .NewRow : r(0) = …

Member Avatar for TnTinMN
0
430
Member Avatar for monching

Perhaps using a TimeSpan instead of a DateTime will give you the effect you are looking for? Public Class Form1 Private WithEvents tmCountDown As New System.Windows.Forms.Timer With {.Interval = 1000} Private tsStartTime As TimeSpan Private lblCountDown As New Label With {.Location = New Point(10, 10), _ .AutoSize = True, _ …

Member Avatar for monching
0
770
Member Avatar for Rachna0309

> Now while adding each row,if database have value for caste field,combobox should show that value as default value else no default value should be selected.Thanks in advance. So if the database value is null (no value set), you want the combobox to reflect this by not selecting one of …

Member Avatar for Rachna0309
0
2K
Member Avatar for ImZick

Perhaps something like this: ' Since all your items are then same, create a list to use as a common DataSource for each ComboBox Dim items() As String = {"Sample 1", "Sample 2", "Sample 3", "Sample 4"} Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load 'Since …

Member Avatar for TnTinMN
0
197
Member Avatar for Rachna0309

Here is one way to handle it. Add a "Moved" (type Boolean) to the underlying datatable and create to dataviews to act as the datasource for the respective datagridviews. Public Class Form1 Private ds As New DataSet Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load ' …

Member Avatar for TnTinMN
0
813
Member Avatar for Minko

I'm not sure I understand your situation correctly, but UI controls must be manipulated only on the thread that created them. Here is an example that flashes Form2. Note the pattern used with the InvokeRequired. Public Class Form1 Private WithEvents bgw As New System.ComponentModel.BackgroundWorker With {.WorkerSupportsCancellation = True} Private Sub …

Member Avatar for Minko
0
2K

The End.