I am trying to create a custom wpf control, I'm wondering how I can add some design-time features. I've googled and can't seem to get to my goal.
So here's my simple question, how can I add an entry to the design-time context menu for my WPF usercontrol? The context menu by default has entries View Code,View XAML, etc.
...
On button Click I want to Set the Select command of a Gridview. I do this and then databind the grid but it doesn't work. What am i doing wrong?
protected void bttnView_Click(object sender, EventArgs e)
{
ImageButton bttnView = (ImageButton)sender;
String param1 = bttnView.CommandArgument.Split(',')[0];
String param2 = bttnVi...
When I'm trying to change the default Image of a Control on Windows Forms in Form Designer (no matter where on which control) I get this error:
Error message: An item with the same
key has already been added
I tried to delete and recreate the Resources.resx file.. I assured that only 1 resx file with these keys exist.. (in fact t...
The Java Bean web call is like this
@WebMethod
public void updateComment(
@WebParam(name="Id") int Id,
@WebParam(name="comment") String comment)
{
funct().updateComment(Id, comment);
}
After binding to the web service in visual studio, the call works fine unless you try to pass a null for the string commen...
Hi,
I'm currently writing a little cmd line app that will take an entire visual studio solution, copy it to a new folder and change the namespaces of all the projects.
Looks like its going to take some regex magic to get this working properly (and quite a bit of effort).
Am I reinventing the wheel? - is there anything in visual studio ...
I have to turn in a hard copy of some code with an assignment. Is there any way in Visual Studio 2010 to print C# source code with syntax highlighting?
PS: The assignment is solving a math problem, so the choice of language isn't important and the teacher doesn't need to compile and run the program. She just wants to see our approach an...
When inserting copy into an HTML document I get from sources such as word documents or PDFs I'd like to make sure that the special quotes and apostrophes get replaced with their generic counterparts.
In other words, I'd like to replace things like ’ with ' and then “ and ” with ".
Is there maybe some kind of add on for visual studio t...
Is it possible to get a method's return value in the Visual Studio debugger, even if that value isn't assigned to a local variable? For example, I'm debugging the following code:
public string Foo(int valueIn)
{
if (valueIn > 100)
return Proxy.Bar(valueIn);
else
return "Not enough";
}
Since I'm not setting any...
I have a winform with a combo box thats filled from a query in the database. If I add a field to the database, the new field won't show up in the form until I close it and reopen it.
I was able to put in a MessageBox.Show() and once that popped up, I closed it, and saw the new data in the combo box.
EDIT:
Let me clarify a bit. I hav...
I have type which is just a typedef-ed long which one I would like to display differently in a debugger. Is it possible to do so using autoexp.dat?
namespace MyNamespace
{
typedef long DaysSinceItAllStarted;
}
...
I have a web application project. I am trying to find out why certain DLLs are being copied into the bin directory of the web application. As far as I can see there are no references to the DLLs under the list of references.
Whilst I don't think it should make a difference, I have been through all the DLLS of the projects that the web a...
I am a beginner to webservice concepts. Now I know how to deploy webservice in IIS. I checked the webservice URL
There I can see SOAP protocol contents and WSDL (after url type ?WSDL).
My questions are:
Can I run the webservice by replacing localhost with my IP
address any where outside systems
Do I need to study SOAP and WSDL sepera...
Suppose I have a list of changesets 1 to 10. Is it possible to specify that it build till changeset no. 5, instead of building just for a particular changeset or all the changesets 1-10?
I know It's possible to specify a particular version of the files to build, like changesetId,Date,Label,latest and workspace versions. So how do I spe...
Hi I'm a relatively new student in computer science university program. We're getting into web development now. So far, I've only used Visual Studio. Should I be learning how to work with Apache AND IIS? What is the difference? Can I use Visual Studio with Apache? If I download XAMPP, can I still use IIS on the same machine later on?
...
I'm trying IronPython for asp.net, I got a simple CRUD screen to work. I've read IntelliSense doesnt work for IronPython, but is there any way to get rid of Visual Studio underlining all the lines' starting tokens with blue and a message of "expected declaration"?
...
When creating this query in the SQL querybuilder window in visual studio (2008):
UPDATE outgoing_messages
SET readstatus = 5
FROM outgoing_messages INNER JOIN
connections ON outgoing_messages.connectionid = connections.connectionid
WHERE (outgoing_messages.msgreference = '1...
I'm working on a project in Visual Studio, and I want to create a local database file (.mdf) within the project directory so that it can be checked into SubVersion and have configuration management. Unfortunately, trying to create/attach a database on a network share leads to an error.
All of the resources I have found to enable NAS fun...
I'm writing an XSL transform in Visual Studio. It is reporting that the semicolon in the following is an "unexpected token":
<xsl:param name="delimiters" select=";#" />
Does anyone know how to escape the semicolon? It hasn't shown up on any character lists I've found so far.
...
We frequently use Visual Studio 2008 to connect to and edit live web sites using FrontPage Server Extensions. Very frequently Visual Studio 2008 will hang when we attempt to close it or open a new project if we have an FPSE project open. Also, sometimes it hangs when opening a file. This happens on XP, Vista, and Windows 7 (3 separate ma...
Can any one tell me how to turn off automatic outlining in Visual Studio? Outlining is the feature that collapses code into programmer defined regions.
In my opinion, there are precious few circumstances where outlining is useful. Yes, it makes large files easier to navigate, but mostly it obscures complexity. My preference would b...