|
My filter is set for the column RevenueID, but since it's a primary KEY I am not displaying it in the table. So, I have 4 columns visible out of 6 columns that are in the table.
Could that couse the problem? If yes, how can I manually set the the ramaining columns?
Thank you.
|
|
|
|
|
That is definitely the reason, so when a new row is added, you have to update column RevenueID in your dataview.
To repair, add a ListChanged event handler to your dataview.
Following is a code snipped of the event handler:
<br />
private void dataview_ListChanged(object sender, ListChangedEventArgs e)<br />
{<br />
if (e.ListChangedType == ListChangedType.ItemAdded )<br />
{<br />
DataView dv = (DataView) sender;<br />
DataRowView drv = (DataRowView) dv[e.NewIndex];<br />
if (drv.IsNew)<br />
drv["RevenueID"] = newRevenueId<br />
}<br />
}<br />
|
|
|
|
|
The event handler does not match the delegate.
dataview.ListChanged += new EventHandler(this.dataview_ListChanged);
Apparently the delegate is (object sender, EventArgs e);
|
|
|
|
|
Thanks, I found the solution.
|
|
|
|
|
I want to have an array of colors from blue to red - like a rainbow... How to fill in this array programmatically???
|
|
|
|
|
Start with blue (0/0/255) into first loop. Every turn adds a little green, and when green is 255, subtracts a little blue, until you reach pure green (0/255/0). Then begin a second loop, that adds red and subtracts green, until there is clear red.
Start
000/000/255 (blue)
000/010/255
000/020/255
000/030/255
...
000/255/255 (cyan)
000/255/240
000/255/230
000/255/220
...
000/255/000 (green)
010/255/000
020/255/000
030/255/000
...
255/255/000 (yellow)
255/240/000
255/230/000
255/220/000
...
255/000/000 (red)
As you can see, there are four loops like that:
<br />
for(int green=0; green<256; green++){<br />
colors.Add(new Color( 0, green, 255 ));<br />
}<br />
<br />
for(int blue=255; blue>-1; blue--){<br />
colors.Add(new Color( 0, 255, blue ));<br />
}<br />
DISCLAIMER: This response in not tested, it's simple guesswork.
_________________________________
Please inform me about my English mistakes, as I'm still trying to learn your language!
|
|
|
|
|
I built a console application however, I don't want to recreate this project as a class library. Can anyone show me ow to build as a dll using the the configuration properties?
|
|
|
|
|
Just change the Output Type (Right click on project in Solution Explorer, click Properties) to Class Library.
Regards
Senthil
_____________________________
My Blog | My Articles | WinMacro
|
|
|
|
|
The attributes under configuration properties/build/Outputs are output paths,XML documentation file, Generate Debuggin info, Register for com interop........There's no option for changing to a class library.
|
|
|
|
|
|
I have a big question for .Net Remoting pros:
I use a remote server which watch files and detect when modifications become. The server is a winForm. Then, I have Web clients which subscribe to the event "file modification" and have to do some work when the event fired.
- The remote configuration is ok because if I declare a simple function in the interface (link between server and clients), clients have access to this function and it work well.
- The problem is when the event fired, clients don't execute the code I put in the corresponding method in the WebForm. When I execute with the debug mode, I see that it enter well in the method and execute the code I put into but nothing happens. For exemple, I just test with displaying a message in a textbox when the event fired.
The webClients enter well in the receiveevent function, execute the corresponding code line, but there is nothing in the textbox.
I understood this is because it's the IIS which calls and react at the event and not the html page, the clients. In fact, if I tranform my web clients in WinForm clients, it works well: the code is really executed.
But I don't know what I have to do and I'm very tired and my brain too. Because I have searched on the Web for a week, 8 hours per day and I didn't find anything. There are all .Net remoting solution except this case: Web clients which subscribe to event fired by a server application. There are Web clients which communicate with a server but without event or WinForm clients with event.
So I really need some help, please... I will be very grateful about your help. Tell me if there are information lacks in my explication.
|
|
|
|
|
Hi
I am trying to use the EM_GETLINE message to get the text of a particular line but i am not able to send the last parameter i.e the lpram..for the SendMessage function... anyone plz let me know how to do this... i am doin in the following way
char[] buffer = new char[255];<br />
buffer[0] = (char)255;<br />
Message msg = Message.Create(this.Handle, EM_GETLINE, (IntPtr)Index, (IntPtr)buffer[0]);<br />
base.DefWndProc(ref msg);<br />
return msg.Result.ToInt32();<br />
but it gives me a error like.. "Attempted to read write protected memory. This is often indication that other memory is corrupt." F1! F1!
cheers
Chettu
|
|
|
|
|
I have an MDI application and I want to show/post messages from the child forms. How can I do this? Any examples?
|
|
|
|
|
make form & statusbar public
create object of mdi form
access statusbar's object using mdi form's object
access the properties of status bar like
objMDI.objStatus.Panels[0].Text="message";
thats all,
Atul
|
|
|
|
|
What on earth are you smoking?
You don't have to creat an object of anything... See my reply to the OP.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Easy. Make a public method on your parent MDI Form and call it from your children...
public void StatusMessage(String message)
{
}
this.MDIParent.StatusMessage(@"My status message goes here...");
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Hi,
im stuck here. right now i've a long form with groupboxes in it. when i run and display my app, the form is longer than the height of my window screen. i would like to shorten my form to be shorter than that of window screen. i want to add a vscrollbar in the form so that i can shorten the form and still be able to scroll through all my groupboxes. i've no idea how to reduce the size of my form and yet be able to scroll through all the groupboxes.
also, how do i create a link (say when i click on a button in form 1, it will display form 2).. im not sure whether u call that linking or is there a term for this kind of action?
pls help anyone..
thz.. appreciate your help.. =)
|
|
|
|
|
u can use tab strip control or
just use panels, this will show scrollbar as u want.
atul
|
|
|
|
|
On your Form set the property "AutoScroll" to True.
|
|
|
|
|
Hi!
I have this herculian task of converting an asp.net web application written in classic asp style(Application Logic and Presentation in one .aspx file) to Code-Behind and UI style.
Any tips or strategies with regard to this dirty job are welcome
Best Wishes
|
|
|
|
|
You might want to ask this in the ASP.NET Forum.
But in my humble opinion - scrap it and rewrite the thing from scratch.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
actually, I want to get the mean values of the intensity in each sub and then to get the global value,
so, first I need to classify an image into subimages, and want to store each sub image in separate memory space, and
anybody, knows
thanks!
shakeel
Image Processing & Multimedia Lab.
computer Engi. dept.
pknu. korea
|
|
|
|
|
hi
i need to change Cells[1].ToolTip backColor and foreColor,
is it possible?
|
|
|
|
|
eat your feces and you'll find the solution
damn this site!!!
|
|
|
|
|
You had a monkey throw its crap at you recently, haven't you? Caught you square in the face did it?
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|