|
i wanna display data from a generic xml file to a table view providing a checkbox and while clicking the send button the checked records alone should be taken to the next page...
i need suggestions .. i dont have any idea of how to do tht..........
thanx in advance
sathy
|
|
|
|
|
Hi I'm using a datagridview bound to dataset.
I use the datagridview to be able to add/edit/delete data.
When the user clicks save button, the changes made to the datagridview
will be reflected in the database.
How do I determine if the row/s are newly added rows?
Thanks so much!
|
|
|
|
|
hi
Use
Copy_of_DS=new DataSet();
if(ds.HasChanges(DataRowState.Added))
{
Copy_of_DS=ds.GetChanges(DataRowState.Added);
}
|
|
|
|
|
Can any body tell me how can i do media streaming in C#? Is there any dll available to work with this in C#?
-- modified at 7:41 Wednesday 18th January, 2006
|
|
|
|
|
If only it were that simple!
You might want to start reading stuff in the Windows Media Developer Center[^] on MSDN. Specifically, you'll want to dive into the Windows Media Encoder SDK docs.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Hello everybody.
Today I was thinking about something very easy.
What's more easy por the PC?
My example is based in a ComboBox named "cb"
Case 1:
if( cb.visible == true ){<br />
cb.visible = false;<br />
}
case 2:
cb.visible = false;
The idea is if check the current value of object before set this or set without evaluation.
This maybe has not importance, but if you are building a big application should be considered.
SINCERELY.
ANTHONY ACUÑA
PREFERED PHRASE:
SOMEBODY TELL ME WHY IS MORE REAL WHEN I DREAM THAT I AM WAKE?
-- modified at 1:43 Wednesday 18th January, 2006
|
|
|
|
|
Well if you look at it logically, it is fairly obvious that the second case is faster.
In the first case you must first access the memory to check the get the value and then compare in to the value on the other sisde of ==, and then finnaly assign it a new value. Where in the other case you just have one operation...
Q:What does the derived class in C# tell to it's parent?
A:All your base are belong to us!
|
|
|
|
|
You are forgetting something. The Visible property is not just a memory location, it's a property. It does quite a lot more than just changing a single memory location.
When getting the value, the Visibe property calls Control.GetVisibleCore to get the value from the state of the control. When setting the value, the Visible property calls Control.SetVisibleCore to update the control.
One of the first things that SetVisibleCore does, is to call GetVisibleCore to check if the operation will change the value of the property. If it won't, the method skips changing the visual apperance of the control and just updates the state of the control.
The first case is faster if the property doesn't change value, and the second case is faster if the property does change value. So which method is faster depends on the probability of the property to change value.
If you want it really fast, you'll keep a local copy of the value of the Visible property, and check that value before changing the actual property.
---
b { font-weight: normal; }
-- modified at 3:52 Wednesday 18th January, 2006
|
|
|
|
|
Thanks! it's the same that I was thinking!
Have a nice week!.
SINCERELY.
ANTHONY ACUÑA
PREFERED PHRASE:
SOMEBODY TELL ME WHY IS MORE REAL WHEN I DREAM THAT I AM WAKE?
|
|
|
|
|
Thanks CWIZO! it's the same that I was thinking!
Have a nice week!.
SINCERELY.
ANTHONY ACUÑA
PREFERED PHRASE:
SOMEBODY TELL ME WHY IS MORE REAL WHEN I DREAM THAT I AM WAKE?
|
|
|
|
|
It depends. IF assigning value was some expensive operation (e.g. before you assign value to property some complex check is going on) THEN yes, it would be faster. In case when you simply assign value, second case is obviously faster.
Never forget: "Stay kul and happy" (I.A.)
David's thoughts / dnhsoftware.org / MyHTMLTidy
|
|
|
|
|
Thanks dnh! it's the same that I was thinking!
Have a nice week!.
SINCERELY.
ANTHONY ACUÑA
PREFERED PHRASE:
SOMEBODY TELL ME WHY IS MORE REAL WHEN I DREAM THAT I AM WAKE?
|
|
|
|
|
I am new to C# programming and I am very much interested to develop a firewall which could defy IP SPOOFING. I have not knowledged myself in Network Programming but I intend to develop a firewall though. " My message to all the Coders visiting this site is that - Please give me valuable tips in developing a firewall and some codes to shut an IP which produces avalanche effect on the system. This helps the firewall to have a offensive mode rather than a defensive mode . " I would obliged if I were helped by any coder.
love coders'
|
|
|
|
|
MACODER wrote: Please give me valuable tips in developing a firewall and some codes to shut an IP
Look at developing an NDIS driver. You cannot do that in C#. Although, interestingly, you can develop the basics of the driver and pass information through to a C# service. However, since the driver sits in the kernal and the C# application in the user space it produces many inefficiences. I know, I've tried.
MACODER wrote: I have not knowledged myself in Network Programming
Then I suggest that you read up on the subject before taking on such a task.
ColinMackay.net
"Man who stand on hill with mouth open will wait long time for roast duck to drop in." -- Confucius
"If a man empties his purse into his head, no man can take it away from him, for an investment in knowledge pays the best interest." -- Joseph E. O'Donnell
|
|
|
|
|
A firewall really isn't an appropriate place to put up a defense such as this. An attack like that will knock you off the wire if it gets inside your router. The network card that your firewall is running on will still get inundated with traffic, even though you'll be discarding most of it. The trickle of good traffic will still not be able to get through the ocean of bad.
Borders routers, at the ISP or your corporate network, are the best place to put up filters such as these. You also won't be filtering just one address either, you'll be filtering out hundreds of addresses, and even ports, at a time.
If you want a couple of samples of what a modern-day attack is like, then check out the write-ups from Steve Gibson[^] and what his site got knocked down with.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
-- modified at 11:11 Wednesday 18th January, 2006
|
|
|
|
|
Hi, I'm trying to find out how to create a password protected transparent screen lock using C#. Generally, it should be able to do the following when "locked":
1. disable key combinations like ctrl+alt+del, alt+tab, etc.
2. disable the mouse and hide the cursor.
Thank you.
sw
|
|
|
|
|
I'm kinda new to C#. I'm trying to make a program with a TreeView. My program creates 2 nodes when the program loads and all data appears as children to those two nodes. I also have a context menu that is set to change depending on the type of selection made.
The first issue is when the program starts, the first node is selected and it's context menu comes up automatically. How can I stop that? I tried to see if I could make an exception but nothing worked out.
The second is when I use the ContextMenu Show() function, I give it an ordered pair location to anchor the top-left corner. I tried to use various things inside the control to give a position of the mouse but the context menu always appears at 8,8 from the corner of the tree view. How can I figure out what coordinates the mouse was at when it clicked on the item?
Thanks in advance.
|
|
|
|
|
what is the difference b/w Control and Literal?
Also what is a literal control?
THanks
|
|
|
|
|
Is this ASP.NET ?
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Control is the base class for all web controls. A Literal is a control that will just render as the text that you put in the Text property.
<asp:Literal Runat="server" Text="asdf" />
will simply render as:
asdf
---
b { font-weight: normal; }
|
|
|
|
|
How do I set a window be topmost to only one window handle instead of all windows. Tried using SetWindowPos the hwndInserAfter does not work properly. Any help will be appreciated.
|
|
|
|
|
Make the window that you want your window to be on top of the parent of that window. So if Form1 creates Form2 and sets the Form1 instance to be the parent of the Form2 instance, it will always be above the Form1 instance, as you'd expect from a child dialog.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
I just tried win32 setparent method it works. Can someone validate if this is ok.
|
|
|
|
|
Your Form has a Parent property, you don't need to do anything with Win32.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
The child window is on a separate background thread. If I set the parent property I am getting some exception like "Cannot add top level control". The win32 functions works perfectly. I need this window on the background thread to overlap the main ui thread window. Thereby I can have modal windows which will not block the main thread. We have some legacy applications which are being auto generated into C# code. These apps have lots of modal windows. We have to plug in these apps into a UI framework already deployed. These individual apps will reside on different tabs in the UI framework. When these apps open modal windows we need to be able to other tabs. Hope this explains why we have to run this in a separate thread with its own message loop. Each interaction with the main UI thread will be synchronized via BeginInvoke. There will be minimal interaction with UI thread controls except for getting some static security tokens, cust name etc.
-- modified at 1:11 Wednesday 18th January, 2006
|
|
|
|