|
First problem:
What I have done is, I have put a button "OK" or "Apply" on a form, not on a Tabcontrol but just below the tabcontrol. and made it the acccept button. i was checking that what is the selected control on the tab thru my program. but i had only 2 tabs and was easy to track down.
|
|
|
|
|
I end up with something similar: I put an accept button on the main form and "hide" it (size 1x1, flat, *color = main background) and this "invisible" button will route the Enter according to the active tab page. I can not use a single, normal button for all pages because the actions are quite different (enter, delete, view, load, ...) so the button's name would be a real problem.
This thing works but MUST be some other way
|
|
|
|
|
Hi there,
Having got fed up of constantly picking track lists from large mp3 collections or using crummy auto playlist selectors I was wondering if I could write something better, the only problem is I don't know how to go about getting an mp3's characteristics like it's tempo or pitch etc.
Does anyone have any samples/info on this type of thing?
a million fang-queues in advance for any titbits you can offer
monkey say monkey doo
Uncle Monkey
|
|
|
|
|
If I have this kind of question, I use Google and do a little searching. After a couple of minutes I found this on CodeProject itself
http://www.codeproject.com/useritems/mp3fileinfo.asp
Cheers, Julian
Program Manager, C#
This posting is provided "AS IS" with no warranties, and confers no rights.
|
|
|
|
|
Thanks, I did see that article already however and it is not the ID tags that I'm looking to read but the actual music itself.
I did do quite a bit of rooting around google before I asked but so far I've not found any info on calculating the bmp/tempo of a piece of music which is what I'm looking for.
monkey say, monkey doo
Uncle Monkey
|
|
|
|
|
Since the MP3 music format is copyrighted, I would guess that you'd have to purchase a license to the format. That's why you're not getting any hits.
Cheers, Julian
Program Manager, C#
This posting is provided "AS IS" with no warranties, and confers no rights.
|
|
|
|
|
Ahh I see. Thanks for the tip
Does anyone know how to obtain BMP/tempo and pitch information from an unlicenced or GPL music format such as ogg or is it possible to convert an mp3 to another format for processing which avoids these pesky legal pitfalls?
I'm off to copyright the sound of a telephone ringing then go on a litigation rampage!
monkey say, monkey doo
Uncle Monkey
|
|
|
|
|
HOW Can Run The SQLAGENT WITH Programe?
in the code , that is run progress
ServiceController service = new ServiceController("MSSQLSEVER" );
//here is run sqlserver , but not sqlagent , if i run sqlserver, in the progress
// i can see sqlagent.exe running , how can i do ??
private void Form1_Load(object sender, System.EventArgs e)
{
if ( service.Status == ServiceControllerStatus.Stopped)
{
service.Start();
}
else
{
MessageBox.Show("Right");
}
}
|
|
|
|
|
HI all
I am having problem in accessing an unmanaged dll built in VC++, which is not a COM Component.
Tried:
1. Adding reference
Error: Cannot add reference as it is not a proper dll or COM component.
2. Using DllImport
Problem: Export methods are not defined in the .def file.
Please help how to use this kind of dll in C#.
Thanks in Advance
Ajay
|
|
|
|
|
I have an XML file which has a depth of 4 elements:
-----------------------------------------------
<?xml version="1.0" encoding="utf-8" ?>
<MutualFunds>
..<Fund>
....<FundName>Altamira Fund</FundName>
........<Holdings>
............<Company>
..................<CompanyName>The Procter & Gamble Company</CompanyName>
..................<Symbol>PG</Symbol>
..................<Shares>13500</Shares>
............</Company>
........</Holdings>
....</FundName>
..</Fund>
..<Fund>
....<FundName>Lynch Fund</FundName>
........<Holdings>
............<Company>
..................<CompanyName>Gerber Foods</CompanyName>
..................<Symbol>GF</Symbol>
..................<Shares>13500</Shares>
............</Company>
........</Holdings>
....</FundName>
..</Fund>
</MutualFunds>
-----------------------------------------------
Im trying to read in this XML file and have it parsed so that the contents under <FundName> (Altamira Fund and Lynch Fund) appear in a combobox while its respective <Company>s under <Holdings> are preserved in an ArrayList so that when I select the Altamira Fund from the combobox its respective company's will appear in a ListView.
I've tried tackling this simple problem with:
=[1]=
DataSet ds = new DataSet("MyData");
ds.ReadXml("Holdings.xml");
DataTable t = ds.Tables["Fund"];
=======
=[2]=
XmlTextReader reader = new XmlTextReader("Holdings.xml");
While (!(reader.MoveToContent() == XmlNodeType.Element && reader.Name == "FundName"))
{
reader.ReadString();
}
======
In [1] i tried getting the DataSet to return back a the <Fund> element hoping that it would belong to the Altamira Fund group but it seems the Lynch Fund name was apart of this table. In [2] Im trying to iterate thru the nodes until i get to what I want then begin storing what i need then moving on to the next element. When a </Fund> is reached Ill know the next <Fund> is coming up.
Ideally i want to ask the XML reader to simply return back the <Fund> group of the "Altamira Fund" (which will contain the <FundName>Altamira Fund</FundName>, <Holdings>, and respective <Company> elements). It shouldnt include the other <Fund> in any way. Once I've processed this first fund then i can move on to the next with its respective childern. What Im see from DataSets is its clumping all similar tag contents together, so <Company>'s in both <Fund>s are being placed together. When it comes time to create my ComboBox with respective Company's the presented information will be incorrect. As for the MoveToContent iteration, it seems acceptable but a bit dirty.
Do i "need" to create an XML Schema or use DataRelations in any way?
Thanks.
|
|
|
|
|
Hey guys ,
I have a question . How do we go about adding items to the right click menu of the internet explorer . By right click menu i mean teh menu i get when i right click on a page in the IE .
Srikar Y
NITK Surathkal
|
|
|
|
|
The easy was is adding a registry entry documented here on MSDN that points to a file containing your script code.
Here's an example of both that I wrote long ago
Save this in borders.inf:
[Version]
Signature="$Chicago$"
Provider=%BCDEV%
[DefaultInstall]
CopyFiles=Files
AddReg=Reg
[DefaultUninstall]
DelFiles=Files
DelReg=Reg
[Files]
%BASENAME%.htm
%BASENAME%.inf
[Reg]
HKCU,%IKEY%,,,"%10%\%SUBDIR%\%BASENAME%.htm"
HKCU,%IKEY%,contexts,1,%CONTEXTS%
HKLM,%UKEY%
HKLM,%UKEY%,DisplayName,,"%TOOLTITLE%"
HKLM,%UKEY%,UninstallString,,"%UCMD% %10%\%SUBDIR%\%BASENAME%.inf"
[DestinationDirs]
DefaultDestDir=10,%SUBDIR%
[Strings]
TOOLTITLE=IE4 Addon - Show Table Borders
BASENAME=borders
CONTEXTS=1
IKEY=Software\Microsoft\Internet Explorer\MenuExt\Show &Table Borders
UKEY=Software\Microsoft\Windows\CurrentVersion\Uninstall\ShowTableBorders
SUBDIR=web
UCMD="rundll32 syssetup.dll,SetupInfObjectInstallAction DefaultUninstall 132"
BCDEV=Blake Coverett Development
And this in borders.htm
<script language=javascript defer>
var tables = external.menuArguments.document.all.tags("table");
if (tables != null) {
for (i = 0; i < tables.length; i++)
{
tables[i].borderColor = "red";
tables[i].border = 1
}
}
</script>
Right click on borders.inf and choose Install. The INF file was meant to be reusable by just changing the strings at the bottom, feel free to reuse it.
--
-Blake (com/bcdev/blake)
|
|
|
|
|
Hey, I hope you can help me. I am getting some weird errors when I try to deserialize my object. I can serialize the object without error but when i deserialize i either get an System.OutOfMemoryException or an {"Invalid type code in stream Invalid." }
Here is the serialize and deserialize code:
IFormatter formatter = new BinaryFormatter();
Stream stream = new FileStream(tab.Name + EXT,FileMode.Create, FileAccess.Write, FileShare.None);
formatter.Serialize(stream, tab);
stream.Close();
Deserialize:
IFormatter f= new BinaryFormatter();
Stream s = new FileStream(tableName + EXT,
FileMode.Open,
FileAccess.Read,
FileShare.Read);
ITable obj = (ITable) f.Deserialize(s);
s.Close();
Let me know if you have any suggestions.
Thanks,
Alan Faulkner
|
|
|
|
|
I have a DirectX 3-D engine that I want to create some tools for. The tools must have one or more windows to render my 3-D scenes into plus lots of GUI functionality.
I have a win32 app in C++ that displays a 3-D scene using DirectX (graphics code also in C++) so I know I can go that route, but it's tedious to do.
Is it possible (and recommendable) to create the app using C# and hook in the C++ 3-D graphics engine?
Or am I better off sticking with the Win32 framework?
btw, the DirectX code is NOT managed.
thanks,
Rob
|
|
|
|
|
I created my very first C# application in .NET and trying to run it from the network. Every time when the application is started, I get a popup message from Microsoft .NET Security Information says:
The application is running in a partially trusted context....
Can you help me to avoid this message? I created the application from C#, Windows Application. The application has no added code on it. Thanks.
Eilzabeth
|
|
|
|
|
Hi,
I want to draw a seperator line in a wondows form, exactly the way the MenuBar has or ToolBar have !
How can I do that ? If I actually have to draw the line does anyone know the settings of the brush & pen !?!
Thanks.
|
|
|
|
|
I just made one in photoshop... the ghetto way.
/\ |_ E X E GG
|
|
|
|
|
Use the group box control with no text and height set to 4 or less pixels.
Suhas
|
|
|
|
|
a label of height 2 would be lighter
|
|
|
|
|
How can I obtain and identify a login session token for a user running on Terminal Services?
|
|
|
|
|
Hello.
Thank you very much for series of articles
Image Processing for Dummies with C# and GDI+ .
I have a question that I couldn't find in these articles.
How I can save a high color (16 bit )image as 256 color or fewer.
I want to write this program with C# .net such as previous
articles not with MFC.
I guess the PixelFormat class can be useful. But I don't know how I can use it.
Please tell me how I can write this Program.
Thank you very much.
|
|
|
|
|
I am new to C# and I am developing a small app to read in the contents of the global address list from Microsoft Exchange and then be able to send emails to people off of this list. I am not sure where to begin and dont really know much about C # so I really need a point in the right direction. Thanks!!!!
|
|
|
|
|
Get Microsoft Exchange SDK. CDO and ExchangeOLEDB
Free your mind...
|
|
|
|
|
I'm trying to link a couple of panels that each display a set of fields that extend beyond the visible area, giving rise, of course, to vertical scroll bars. My goal is to arrange it so that moving one panel's scroll bar causes a corresponding action in the other panel. To do so, I need to be able to get a "live" reading on the scroll bar's position. The closest thing I've found is the information in "AutoScrollPosition" which does accurately show a relationship between the current position and the "not moved" position. The problem is, there is no event or other mechanism for getting this information from contact with the scroll bar itself. I can use a click event or mouse-up event to cause the information to be passed to the other control as needed, but it's always disconnected from the actual movement of the scroll bar.
Is there a solution out there that I've just missed? If I have to build a new wrapper control to handle this, I still don't know how to capture the position in real time.
Any ideas, anyone?
Thanks,
David Groves
|
|
|
|
|
Welcome to the Wonderful World of .NET AutoScroll. You will need to subclass the panel so that you can catch WM_HSCROLL, WM_VSCROLL, and WM_MOUSEWHEEL messages. And I actually find it easier to just roll my own scrolling panel, and do the scrolling part myself, rather than basing it on an AutoScroll panel.
"Blessed are the peacemakers, for they shall be called sons of God." - Jesus
"You must be the change you wish to see in the world." - Mahatma Gandhi
|
|
|
|