I have Product table and Officer table as follow:
Product
ProductID | ProductName | Officer1ID | Officer2ID | Officer3ID
--------- | ----------- | ---------- | ---------- | ----------
12 | Mouse | 123 | 124 | 125
13 | Keyboard | 234 | 235 | 0
Officer
OfficerID | OfficerName
-------...
I have form. I have enabled the transparency on the form and I have removed it's Title Bar and Border. Inside that i have created a Custom UI, Which have the same features like a window. Basically, my idea is to create custom window.
Everything is working as expected but only the windows dragging is not working. I am not sure how to ena...
hi,
i have use iframe for the submit of the form in aspx page,
now i have one div outside the from and i use this div to display message if any
server side error is come. but after submitting the form i have assign the message to this
div, but cant see the text in the browser.
actually is there a different way to access that div when ...
In my C# code, I have to run some external processes. These could be batch files or executables. I redirect the output to a window of my own by having RedirectStandardOutput of the ProcessStartInfo be true. This allows the user to review the output even after the external process has finished. I also redirect the input so the user can pr...
Hi there,
With my C# VS add-in how can I add a menu to the "Test Result" panel and hook the event handler up to code that displays a message box or writes to the output menu or anything really, just to get things started
I can access the window with:
Window win = _applicationObject.Windows.Item("Test Results");
But I don't know how ...
Hi.
There are a lot of questions already made here about what to do when session expires when doing a Ajax request. One of the workaround is place a header in the response that makes a redirection to the login page.
My site only does the first page postback, then it's all ajax request, that makes that the session expires in the determi...
Hi, I have a problem with resource file...
I have a solution with two projects. The first project contains ImageResource.resx file with my images what I use. Every Form in this project can access to this file from designer. But I can see in the designer ImageResource.resx file to use it from second project (Reference to second project i...
Hi,
we are facing the following problem and we are trying to come up with the best possible solution.
We are using SQL Server 2008. We have a table that has more than 600 millions records, and has about 25 columns. One of the columns is an ID and is indexed. We need to get a subset of records from this table. There are mainly 2 cases:
...
Hi
I built an auto-update feature to my program. It polling an xml in some http url, and in case there is new version is notifies the user and downloading the new files.
I want to allow redistributing of those updates in closed networks without internet connections. The administrators can download all update files and host in some HTTP...
...when a job is still being executed when its next execution time occurs?
For example, if I have a job that occurs every 30 seconds, and after the 30 seconds it is still operating, would the next instance come into play or would it wait?
...
I have dynamically created DataGridView control on form, with DataSource specified as:
((DataGridView)createdControl).DataSource = (IList)(p.GetValue(editedClient, null));
where IList is defined as generic collection for following class:
public class CDocumentOperation
{
[DisplayName(@"Time")]
public Da...
I have started using WPF a short while back, and I'm in the progress of reading the book Pro WPF in C# 2008.
Here they are using P/Invoke to "DmwApi.dll" to create Aero glass effect on windows, and they use the VistaBridge created by MS to create the new Task Dialog boxes.
So basically what I'm curious about is if WPF 4 (that is not c...
Hi guys.
I guess this is trivial but not for me.
I have a collection MembershipUserCollection. I wanted to perform some Linq query over it so I've used OfType<MembershipUser>() method and then applied Where() on it. However, I do not know how to cast back my results to MembershipUserCollection?
This is my code:
MembershipUserCollectio...
Hi!
I have a WCF Service that runs over TCP with Certificate security like this :
<binding name="netTcpUserNameMessageSecurity" portSharingEnabled="True" transactionFlow="false" transferMode="Buffered" transactionProtocol="OleTransactions" hostNameComparisonMode="StrongWildcard" listenBacklog="10" maxBufferPoolSize="2147483647" maxBuf...
If I compile a .NET satellite assembly with localised resources, does the assembly itself know which language it is for, or is this implied in the folder in which it appears?
If I decide to create a localised assembly where all strings are enclosed by '@' symbols for testing if all of my app is localised and then install that on an EN-G...
I have a dialog box which I programatically alter the height of. The problem now is that I'd like to allow the user to expand it horizontally if they want to see more information.
How can I stop the dialog from resizeing vertically if I allow the user to resize it?
...
I think making code self-explanatory, without need for comments all around the place, is a big advantage. But could you suggest methods and techniques how to reduce the amount of code, make it more readable and understandable.
Also what do you think are the good techniques for reducing big if statements and nested for loops and other st...
i want the mouse to freez (cant move) when mouse down
thanks
...
I would like to create a method that returns an XmlReader. Depending on the circumstances the XmlReader may be fed different types of streams, either a StringReader or a MemoryStream.
Normally I dispose a StringReader or MemoryStream with a using block, but since I want to return an XmlReader instead, I cannot do that if I want to go wi...
I'd like to write and read TCP Streams directly without any modifications by ASP or IIS. Is this possible?
Edit: Goal is to provide communication between a program and a server. Data exchange between them is less then 25 bytes per connection (in default case). So Headers will cause more traffic then the real data. I need to use ASP.Net ...