hello,
i am adding an text while i press enter in the rich text box after that the cursor is in the top of the string how to make it at the end of the string
If e.KeyCode = Keys.Enter Then
RichTextBox1.Text = RichTextBox1.Text + "enter"
End If
can any one tell me how can i do that
...
Hi
i am running a Sub which takes as arguments a Datatable and a String.
Private Sub Populate(ByVal dttemp As DataTable, ByVal strWhichPart As String)
At one point there is a combobox which is populated with some of the data in the datatable. The name of the combobox is cmd plus the name of the string for example when the string is ...
In Visual studio 2008, I am not able to see Batch Build option for vb.net projects as c++ projects.
I am new to VB.Net. but do it have any other options to do batch buld rather than creating Batch file?
...
I dont get following desired output from a DateTime-Object:
2010-03-29 13:15:00
My default localization is de-DE, so a simple ToString gives me:
29.03.2010 13:15:00
What I've tried is to create a DateTimeFormatInfo Object from US-Culture and use its DateTimePatterns but without success:
Dim usDateFormat As Globalization.Date...
Question: How to shorten this array creation ?
I need to create an array of type ReportingService2005_WebService.Property with one property.
Something like:
Dim PropertyArray() as new ReportingService2005_WebService.Property(1)
I have to do this:
Dim PropertyArray As ReportingService2005_WebService.Property() = New Reportin...
I would like to bind a DataGridView to the results of a query generated as text at runtime.
How can I send a query as text to Microsoft Access and bind the results to the DataGridView?
When the user clicks the button (ok_btn), I want the contents of the textbox (query_txt.Text) sent to Microsoft Access, then I want the results of the q...
Hi all,
I'm programming a Microsoft Word plugin in VB.Net, and I have a code that calls a function to save the document as PDF (Office 2007).
I use two functions:
Public Sub SaveLandscape_CallBack(ByVal Control As Office.IRibbonControl)
SaveEbook(True)
End Sub
And
Public Sub SaveEbook(ByVal ForceLandscape As Boolean)
Try
...
Hello, I have been perusing the internet in search of the best way to accomplish this, but have had no luck.
If someone here has experience with Office add-ins, I would really appreciate any help, I'm not asking for a solution by any means, just assistance with which direction to take.
The software I'm working on is primarily in VB.Net ...
I have a date like 27-12-2010 ( day-month-year ) .I need the following value back.
31-12-2010 ( Last day of that month )
30-12-2010 ( For last day of that month )
...
My product owner has asked me to make some comparision logic configurable so the process engineers can change things without making code changes. Currently the code is a SELECT CASE statement with various IF THEN statements that are fairly standard. The problem I can't seem to find a way around is that he wants through configuration to A...
I have a Xml file, ( actually HTML tags ) , I want to use the SelectNodes method to get ANY node/tag containing a keyword. The node name can be anything <td> , <div> <p>. What is the XPath to get any node which contains a keyword?
...
I'm using a stored procedure to update\insert data into a table using MERGE.
One of the items being inserted is a VarBinary file. Now if I wish to add a new file it's just a case of using ReadAllBytes as below, to remove the file I pass DBNull.
Now what if other fields are being updated but the file is not being changed? I want the fiel...
I was trying to use the MouseLeave event to hide a Popup control that contained a TreeView object. It didn't take long to stumble upon the first nuance, that the Popup control doesn't emit a MouseLeave event. So I went with the prescribed hackaround and captured the events from the Child object. Then I came across the second nuance. ...
If I try to call my extension method which is defined like this:
Module LinqExtensions
<System.Runtime.CompilerServices.Extension()> _
Public Function ToSortableBindingList(Of TSource)(ByVal source As IEnumerable(Of TSource)) As IBindingList
If (source Is Nothing) Then
Throw New ArgumentNullException("source")
End If
...
What it is the option Enable application framework that I found in Visual Studio under VB.NET WPF projects Application settings?
I found it enabled by default and the "Shutdown mode" configured as "On last windows close". But for me is not really clear what does it mean that setting and also the other settings listed in that combo box.
...
Possible Duplicate:
In C#, should I use string.Empty or String.Empty or ?
I just don't understand the benefits of using String.Empty over "". Aside it being strongly typed its longer.
So please, why should I be using this?
...
Is it possible to set clientcredentials for an WCF in App.config?
I would like to avoid doing this:
Using svc As New MyServiceClient
svc.ClientCredentials.UserName.UserName = "login"
svc.ClientCredentials.UserName.Password = "pw"
...
End Using
Rather the login and password should be part of the configuration.
...
I don't like wide code, especially when it forces me to scroll. So having written this:
If _item.SubItems(pd.perioddate).Text = "N/A" Or _item.SubItems(pd.perioddate).Text = String.Empty Then
dtpDeadlineforAP.Checked = False
End If
Is there a decent way to thin it down, make it more elegant?
...
What is the most commonly used convention (in C# and VB) to name object, when I want to emphesize that it is an instance of class that implements some interface. Like here:
//is iDisp correct name?
protected void Dispose(IDisposable iDisp)
{
iDisp.Dispose();
Console.WriteLine("Disposed");
}
...