I have a rather large DBML file and recently discovered that Visual Studio's MSLinqToSQLGenerator is generating different output than:
SqlMetal.exe All.dbml /code:All.designer.vb /namespace:LINQ2FSE /pluralize /provider:SQL2005
It seems to have dropped an arbitrary (and I think relatively small) set of associations from the generated ...
So I've been programming in C# for the last 6 years or so and now I'm getting my feet wet with VB.net.
The code base I'm working with uses some modules. To me the module looks a lot like a singleton. Only one exists; it can be called anywhere inside the namespace.
Is there something I'm missing here? Does VB not support the normal wa...
i would like to have program a timer that will count the seconds during which there is mouse movement or any keyboard movement.
the point of this application is to record the amount of time an employee has been using the computer (does not matter what purpose or application it has been in use for)
i would like to do this in vb.net for ...
is it possible to adjust the size of the colordialog prompt?
is it possible to adjust the size of the sample color boxes within the colordialog prompt?
these are both for vb.net in winforms
...
I can't get a handle on the syntax. Can anyone give me a simple demo?
...
Hello. I am implementing a tracing mechanism myself. Now what I'd like to know is what is the best way to implement this mechanism(I mean, the architecture). First I thought of creating a class like this:
class Tracer {
public void NewEventRegistered(etc) {...} //this is the method I use to send this class the events I want to regis...
textbox1.text = "6916092, 15195440, 16107657, 1836924, 3758726, 12566463, 7526079, 7405793, 6945974, 241502, 2296476, 5130294, 3102017, 7324121, 14993507"
ColorDialog1.CustomColors = New Integer() {TextBox1.Text}
i am getting an InvalidCastException
how do i insert the value of textbox1.text into those brackets in vb.net?
...
why do i get an error here?
TextBox1.Text = TextBox1.Text & Str(ColorDialog1.Color)
...
colordialog1.color will yield "Color [A=255, R=95, G=33, B=222]", but i would like to return an integer like 2349821 instead. how is this possible?
...
unfortunately my settings do not get saved. please help
If ColorDialog1.ShowDialog() = Windows.Forms.DialogResult.OK Then
Form1.BackColor = ColorDialog1.Color
My.Settings.mytext = My.Settings.mytext & Str(Abs(ColorDialog1.Color.ToArgb)) & ", "
End If
onload i load the settings back into the textbox
...
I doubt anyone has specific experience related to this particular task, but maybe you can spot my problem. I'm trying to make a call to lithium (forum software) to place a vote in their poll, and their docs show this:
Example URL:
http://community.lithium.com/community-name/restapi/vc/polls/id/15/votes/place
Query Arguments:
poll.choi...
Hi,
I am able to get the index of items added to the BindingList. When I try to get the index if the deleted item I get the error
Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index
Here is my code
Private Sub cmdRemove_Click(ByVal sender As System.Object, ByVal e As System.Eve...
Hey,
I am looking for a specific custom control. I am drawing some rectangles to my picture box, now I would like to display a tooltip when someone moves his mouse to one of the rectangles, so a hover rectangle-hover event. Does this sound doable at all? If yes, is there anyone that has made such a control already? If no, how would I go...
Hello. I am using Cecil to try to read my attributes properties:
[AttributeUsage(AttributeTargets.Method, AllowMultiple = false, Inherited = false)]
public sealed class TraceMethodAttribute : Attribute {
public TraceMethodAttribute() {
MethodStart = true;
MethodReturn = true;
MethodMessages = true;
}
...
Hi
I want to make a simple application on Windows XP with a single button which says "Help" - that will launch Windows Messenger's Remote Assistance and connect to my MSN Messenger ID - this is detailed here: (http://www.microsoft.com/windowsxp/using/helpandsupport/learnmore/remoteassist/viaim.mspx)
This is for my Dad or Mom who someti...
hi guys,
I have a web service in c# and its working well in c#.Following is one method i used in it
[WebMethod(EnableSession = true)]
public void abc(BllNew objNew)
{
new DAL.Entity.BllNew().sample();
}
But again i implemented above method in vb and is like this
[WebMethod(EnableSession = tr...
This is probably quite a simple question, but I can't remember how to do it off hand.
I have an e-mail address of "[email protected]".
I want to grab the @ and everything after it and then I'll be adding a prefix to the front of the address as I go.
I'm just wonderng how I get hold of the @bar.com from the string?
I know I should know how ...
Sometimes to make a variable/method/class name descriptive I need to make it longer. But I don't want to, I'd like to have short names that are easy to read. So I thought of a special addin to IDE like Visual Studio to be able to write short names for class, method, field but be able to attach long names. If you need to - you can make it...
I have an application in VB.NET which gets "String" data from the database. This String has data which looks as below:
"This is the update:
I have an issue with the application"
I need only part of the data, that comes after the new line i.e. "I have an issue with the application".
For this I am trying to search the position usi...
So I have an ASP.Net (vb.net) application. It has a textbox and the user is pasting text from Microsoft Word into it. So things like the long dash (charcode 150) are coming through as input. Other examples would be the smart quotes or accented characters. In my app I'm encoding them in xml and passing that to the database as an xml p...