|
Buy proper hardware if you are writing a proper CTI/IVR application.
If it's not targeting consumer market, opt for some of Dialogic's cheap hardware, such as the D4/PCI board.
If you are writing software to work with modems, you should know the limitations and not use features that most definetly won't be supported by the driver(and TSP). Silence detection, positive answering machine detection, positive voice detection and more are all domain of more advanced hardware boards. Anyway Brooktrout and Dialogic are leaders in the field at the moment, so that's where you should be looking.
|
|
|
|
|
Hey,
I have a Windows Application for showing some pictures.
I'm using a Listview / LargeIcon to show the picture thumbnails. I hope I can use a background image for the ListvieItem.So I can change the background iamge to indicate if the item is selected. Is that posible? If yes, how?
|
|
|
|
|
|
Hi,
I want to edit just a cell or a row in a DataGrid.
I think that I have to set Readonly property to true, but when I change this property to false all cells and rows will be editable.
I know I can have it easily in web application, but I want to know how can I do it in C# windows application.
|
|
|
|
|
Edit the data itself and update the DataGrid . This works different than in ASP.NET because it is different that in ASP.NET. In Windows Forms, it's a control. In ASP.NET, it simply generates different HTML based on state. There's a big difference.
Once you've edited the data (like a DataSet , which you should use the DataTable.DefaultView to take into account any re-ordering), you can re-data-bind your control either by setting the DataSource property to null and then back to the DataSet (or whatever), or refresh the CurrencyManager like so:
CurrencyManager cm = (CurrentyManager)
dataGrid1.BindingContext[dataGrid1.DataSource,
dataGrid1.DataMember];
if (cm != null) cm.Refresh();
Microsoft MVP, Visual C#
My Articles
|
|
|
|
|
I have seen this done before but am still not clear on exactly how it is done cause for some reason its not working for me. Here are the steps I have taken.
1) Make a DataGrid 2) Make the DataAdapter 3)Make the Dataset 4) set the properties of the datagrid Source=dataSet11 Member=Movie 5) then the code
I have 2 columns in my dataset one title the other information. I want to add a checkbox so I try to do something like the following.
oleDbDataAdapter1.fill(dataSet11);
DataGridTableStyle tablestyle = new DataGridTableStyle();
tablestyle.MappingName = "Movie";
DataGridColumnStyle boolCol = new DataGridBoolColumn();
boolCol.MappingName = "Current";
boolCol.HeaderText = "Info Current";
boolCol.Width = 70;
tablestyle.GridColumnStyles.Add(boolCol);
dataGrid1.TableStyles.Add(tablestyle);
All i get is a datagrid with no fields, or rows. It should be simple to fix but I'm drawing a blank.
Thanks for the help in advance.
Win32newb
"Programming is like sex, make one mistake and you have to support it for a long time"
|
|
|
|
|
Don't declare your DataGridBoolColumn as it's base class: declare it as a DataGridBoolColumn and set the FalseValue and TrueValue members. Then add your DataGridBoolColumn to the DataGridTableStyle.GridColumnStyles property (no need to cast it - it's a derivative class).
In general, declare your variables as the type you instantiate so you can access members declared by the type. It's still an instance of its base classes.
Microsoft MVP, Visual C#
My Articles
|
|
|
|
|
Is there anyway I can handle click event on a MenuItem which has sub menu. The default behaviour is the click opens up the submenu.
I want to handle the click in two different ways in different circumstances.
In one circumnstance I want to go for default behaviour to open submenu
in other I want to go to the click event handler on this MenuItem.
For some (good?) reason MenuItem is not derived from Control so I can't override WndProc. Does someone know how to catch mouse events on Menu ?
Also is it possible to figure out exactly which Point on the MenuItem did the user click ? I can use this to draw a OwnerDrawn Menu and achive what I want.
waiting eagerly for some suggestion
|
|
|
|
|
|
Why should a MenuItem derive from Control ? A MenuItem simply encapsulates an HMENU (menu handle) and the related Windows APIs - it is not a control nor does it even act like the control. There's no good reason that it should derive from a control.
Read the Platform SDK for more details.
Microsoft MVP, Visual C#
My Articles
|
|
|
|
|
i am working on n tier application and got 3 projects on my soloution.
in the end i just supply dll file.
the upper layer is a test one and its not part of the dll that i have to supply. i want to use the App.config file and i dont want him to be at the test layer(because its not part of my dll), i want to create the app.config file at the middle layer(which is my Data access layer).
The problem is that when i am creating the App.config file at a project that is not set as startUpProject i cant read from him or write.
the only way i can read from the App.config is when i am creating him under the StartUpProject.
How can i use an App.config file for my entire Project(3 projects) and not to put him under the StartUpProject and after all i will be able to use it ofcoures
thanks
Dudi
Be Good...
Dudi
|
|
|
|
|
Only .exe's and ASP.NET web applications automatically read from a .config file. The app.config file has to be in the same directory and named the same (plus .config at the end) as the executable file. DLLs do not automatically have their own .config files unless you create your own executable loader (not an easy thing) or create a new AppDomain with a separate .config file just for a DLL.
Microsoft MVP, Visual C#
My Articles
|
|
|
|
|
Hey,
So i'm working on this form that fades in and out depending on when it's active or not. Essentially it's a for loop that just iterates the opacity value of the form up to the desired value.
for(float f = 0.0f; f < 0.5f; f += 0.05f)
{
this.Opacity = f;
}
The problem is, this is really slow and flickery. I'm hoping to get something around the speed of the fading in and out of Winamp 5, if you all have seen that. something along the lines of 100-500ms, or even < 1s, but still have it look smoothe and not flicker so much. Any suggestions? I mean will DirectDraw do what I want? Thanks.
-- Adam
"If you can't beat your computer in chess, try kickboxing"
|
|
|
|
|
Through a Thread.Sleep in the loop taking into account the duration of the effect and the number of iterations required.
Microsoft MVP, Visual C#
My Articles
|
|
|
|
|
Wouldn't that make the fade longer?
-- Adam
"If you can't beat your computer in chess, try kickboxing"
|
|
|
|
|
Right now your loop doesn't take any time into account and depends upon the speed of your machine. You need to control the opacity. Right now, the loop would probably run so fast that it would appear to jump from 0.0 to 0.5 (or whatever it was) immediately. You need to control the duration. When you're talking about 10 ms or so, the naked eye typically won't catch it. Just think of movies you watch. In the use, it's only 29.97 fps (NTSC) where in other parts of the world it's like 30 fps (PAL) or something. Do you notice each individual frame? if you need 10 iterations and use Thread.Sleep(50) to sleep for 50 ms between each iteration, your fade effect will take only 500 ms like you mentioned a desire for in your first post.
Microsoft MVP, Visual C#
My Articles
|
|
|
|
|
Heath Stewart wrote:
Just think of movies you watch. In the use, it's only 29.97 fps (NTSC) where in other parts of the world it's like 30 fps (PAL) or something.
Movies are usually 24fps, while PAL is 25fps. Animations like Simpsons are tradionally 15fps, but I suspect that was before CG and computer animation came into play.
top secret xacc-ide 0.0.1
|
|
|
|
|
|
Heath Stewart wrote:
you had one right
Sorry, with movies, I meant film as in the theater, thats 24fps, NTSC (never the same color) is 29.97fps
top secret xacc-ide 0.0.1
|
|
|
|
|
It would, but that would make the fade more 'realistic'. Also call Application.DoEvents() after each call, so the UI seem to 'respond'.
top secret xacc-ide 0.0.1
|
|
|
|
|
You could handle this using a timer in your form. Handle its elapsed event and make gradual changes with each tick, stopping the counter when the opacity reached its min or max. I have done this and it produces no flicker.
Happy Programming and God Bless!
Internet::WWW::CodeProject::bneacetp
|
|
|
|
|
I'm looking for a .NET control that implements a "sideways" tab strip or tab control. Basically, like the tab control in Windows Forms, but on the side of the form rather than at the top or bottom. Ideally, text orientation and colors, fonts, styles, etc. should be flexibile.
Anyone know of any such control (free or commercial)?
--Tim
|
|
|
|
|
|
Carlos H. Perez wrote:
Here are some screen shots.
The website is not very friendly for people running on 17" monitors or less.
top secret xacc-ide 0.0.1
|
|
|
|
|
Yes, it is true. The web site will be rewritten in a couple of months.
Carlos.
|
|
|
|