|
for (int ii = 0; ii < 1200; ii=ii+25)
Console.WriteLine("{0,4}", ii);
see string formatting[^]
Yusuf
Oh didn't you notice, analogous to square roots, they recently introduced rectangular, circular, and diamond roots to determine the size of the corresponding shapes when given the area. Luc Pattyn[^]
|
|
|
|
|
Great , thank you.
I was using Console.WriteLine("{1,4}", ii); , and it throws an exception
|
|
|
|
|
Mohammad Dayyan wrote: I was using Console.WriteLine("{1,4}", ii);, and it throws an exception
of course, index is zero based.
Yusuf
Oh didn't you notice, analogous to square roots, they recently introduced rectangular, circular, and diamond roots to determine the size of the corresponding shapes when given the area. Luc Pattyn[^]
|
|
|
|
|
Hi...
Im using the MSFlexiGrid library in a C#.Net Project. Im using a FlexiGrid control. Until yesterdey, everything seemed to work fine but now I have an error when I try to see a form which has the flexigrid control.
<br />
Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG))<br />
I can't compile anything either and looking for this error in google, I found that I need to register something with/in the ATL.dll library, which is part of Windows System.
I know that I could use the DataGrid control but I would like to know why this dont work if this was working without problems.
I don't have a clue of what to do. Any help would be apreciated and excuse me about my English if I made a mistake.
Ivan
|
|
|
|
|
Why would you use the flexgrid ? Not registered means it's not registered with COM, I would expect.
Christian Graus
Driven to the arms of OSX by Vista.
"I am new to programming world. I have been learning c# for about past four weeks. I am quite acquainted with the fundamentals of c#. Now I have to work on a project which converts given flat files to XML using the XML serialization method" - SK64 ( but the forums have stuff like this posted every day )
|
|
|
|
|
Check your refrences and Component of MSFlexigrid is exist. then add refrences and Component of MSFlexigrid.
Best Regard
Anubhava Dimri
mailto: anubhava.prodata@gmail.com
|
|
|
|
|
How does one regenerate a form?
I had a form up and running, did a save and then nothing. The form reapeared with no controls on it. I checked the Code view and all the code was there. I checked the form.designer.cs, all the descriptors for all the boxes, control, and everything else were there. So why isn't being seen. This is the second this has happened.
I dont want to recreate the whole project.
How can I "turn on" or recreate this form?
I'm using VS2005 Standard
Thanks
|
|
|
|
|
Check the constructor of your form, it should contain a call to InitializeComponent(); .
I are troll
|
|
|
|
|
Lecutus1 wrote: I dont want to recreate the whole project.
Get the version of the form immediately prior to your latest change from source control.
You are using source control. Right?
Today's lesson is brought to you by the word "niggardly". Remember kids, don't attribute to racism what can be explained by Scandinavian language roots.
-- Robert Royall
|
|
|
|
|
hi all
i can't figure out the difference between
urlIdentityPermission and SiteIdentityPermission
they both point to a site url
|
|
|
|
|
Hello Everyone,
I really need help from all of you and that too as soon as possible
My requirement goes like this
1. I am supposed to display live video using two different cameras placed at two different Angles with one camera ON at a time of instance(both cameras attached to a single pc)
Earlier I had displayed live video in a panel control using Avermedia capture card and a camera attached to it using the sdk provided with the Avermedia capture card
I am thinking of using Two capture cards with two cameras now but i am facing with a problem of how to detect the two capture cards and close one camera and start another camera at a click of a button
i have been searching net for help but was not succesful .
i am new to this and.
Any sort of help or reference would be really beneficial from me to proceed ahead with the requiremnet
System Details:
O/S Winxp withservice pack 2
coding Language C#
Framework used 2.0
Ide Vs2005
Capture card Avermedia Ezcapture
|
|
|
|
|
Hi,
i m having a project related to Avermedia capture card and a camera. I must capture image by those devices but i don't know how to capture a image by using c# language
U can help me !
thanks
|
|
|
|
|
Is there a way to display a treeview with the root on bottom?
|
|
|
|
|
Yes and no, it depends on how much effort you're willing to put into it. There's not a toggle that you can switch, but you can extend a treeview to suit your own needs. That would be done through owner-drawing[^].
It might be that one of the prebuilt-trees out there support an upside-down view
--edit--
I doubt that owner-drawing let's you change the position of the item. Another option would be a Panel where you add UserControl s as childitems with the docking set to the bottom of the control. Scrollbars should appear when the items grow beyond the size of the panel.
I are troll
modified on Friday, April 3, 2009 3:14 PM
|
|
|
|
|
|
|
I am working on a small project in which i need to get the info about other users that i would like to see the profile of who come under the criteria i want.
so lets say i want come one slim and from height 5-6 and between the age of 18 21.. i have the xml file of people.. so should i convert xml into array first and then do something with it.. or should i find the stuff i need take it out of xml and then put it in the array and then show it out.. either way how can i do it good and best without alot of headache.. thanks alot
<Clients>
<Username>Username</Username>
<Password>Password</Password>
<Alias>MyAlias</Alias>
<BodyType>Athletic</BodyType>
<Height>5</Height>
<DisplayHeight>5'9''</DisplayHeight>
<Age>19</Age>
<Gender>Male</Gender>
<Income>$45,000 to $ 60,000</Income>
<CriteriaBodyType>Slim / Selender</CriteriaBodyType>
<CriteriaHeightfrom>5</CriteriaHeightfrom>
<CriteriaHeightto>6</CriteriaHeightto>
<CriteriaAgesfrom>18</CriteriaAgesfrom>
<CriteriaAgesto>20</CriteriaAgesto>
</Clients>
<Clients>
<Username>User2</Username>
<Password>sheepy</Password>
<Alias>TJ</Alias>
<BodyType>Athletic</BodyType>
<Height>5</Height>
<DisplayHeight>5'9''</DisplayHeight>
<Age>20</Age>
<Gender>Male</Gender>
<Income>$45,000 to $ 60,000</Income>
<CriteriaBodyType>Slim / Selender</CriteriaBodyType>
<CriteriaHeightfrom>5</CriteriaHeightfrom>
<CriteriaHeightto>6</CriteriaHeightto>
<CriteriaAgesfrom>18</CriteriaAgesfrom>
<CriteriaAgesto>20</CriteriaAgesto>
</Clients>
<Clients>
<Username>Claudia</Username>
<Password>pass</Password>
<Alias>ALIASCLAUDIA</Alias>
<BodyType>Body Builder</BodyType>
<Height>5</Height>
<DisplayHeight>5'</DisplayHeight>
<Age>20</Age>
<Gender>Female</Gender>
<Income>$30,000 to $45,000</Income>
<CriteriaBodyType>Some Extra Baggage</CriteriaBodyType>
<CriteriaHeightfrom>5</CriteriaHeightfrom>
<CriteriaHeightto>5</CriteriaHeightto>
<CriteriaAgesfrom>18</CriteriaAgesfrom>
<CriteriaAgesto>25</CriteriaAgesto>
</Clients>
</ClientData>
|
|
|
|
|
faizych wrote: so lets say i want come one slim
You want "come one slim"? Really? You think we know what that means?
faizych wrote: how can i do it good and best without alot of headache
That depends on what all that means. If it means no headache for you because someone here does it for you then good luck, not me. I help people that do the work themselves. Part of doing the work of software development is learning the technologies you need to use so that you can understand how they work. The reason we want to know how they work is because when we know that, we know how to proceed with our work using them. See how that all comes together?
|
|
|
|
|
lol sorry about that what i was trying to do was give the situation. That let's say i am looking for someone with a body type: slim and height: from 5 to 6.. and age from: 18 to 20.. so should i go into xml and filter all that out and then put it in the array or should i convert to whole xml into array and then filter the data out.. of the people who come under all those criterias. because what i am trying to do is that i need a control or whatever i can do to make it into a box which shows the info about one of my match.. and then i can click the next button to show me the next match.. so i thought the easiest way to do that is put all the results in array and then go through them and that control will work easier..
and what i mean by how can i do it good and best without alot of headache is not that i want someone else to do it for me.. i just want the way so i don't end up doing something totally wrong and end up no where.. i just want the directions.
thanks
|
|
|
|
|
faizych wrote: so i thought the easiest way to do that is put all the results in array and then go through them and that control will work easier
Sure, that sounds fine, unless of course you have 100 million of them, or maybe even other considerations that we have no way of knowing they exist. But otherwise, all things being, um, something that sounds so peachy.
|
|
|
|
|
If you can use .NET 3.5, I suggest you to give a try to LinqToXml[^]
|
|
|
|
|
Helo,
I need to create a dynamical organization chart using visio from C# code.
Currently im using the following code only to test nothing special.
if (openFileDialog1.ShowDialog() == DialogResult.OK)
{
axViewer1.SRC = openFileDialog1.FileName;
Microsoft.Office.Interop.Visio.Application app = new Microsoft.Office.Interop.Visio.Application();
Microsoft.Office.Interop.Visio.Page currentpage = app.Documents.Open(openFileDialog1.FileName).Pages[1];
Microsoft.Office.Interop.Visio.Document stencil = app.Documents.OpenEx("Basic_U.vss", (short)Microsoft.Office.Interop.Visio.VisOpenSaveArgs.visOpenDocked);
Microsoft.Office.Interop.Visio.Shape shape2 = currentpage.Drop(stencil.Masters["Square"], 10, 7.50);
Microsoft.Office.Interop.Visio.Shape connector = currentpage.Drop(stencil.Masters["Dynamic connector"], 4.50, 4.50);
}
now the problem is here. On my computer the application is working fine because i have Visio 2007 installed and shapes are added etc.. but when the application is going to be used by the clients and they dont have visio installed the whole applicaiton wont work. Is there a way which i can create the charts dynamicaly at runtime without visio being installed??
|
|
|
|
|
I don't think so, it's like getting on a train where you didn't buy a trainticket.
If the app doesn't work, try the 'try-catch' method around the area's where you are trying to do something with the visio files.
edit: wtf... I wrote around with a T, I'm soo ashamed of myself
|
|
|
|
|
No the application works fine on my computer where i have visio installed but it dosent work on the other computer im testing it on that dosen't have visio installed. Is there some other librariy that i can use to draw charts. Because to be honest the main reason im using this is to create a family tree.
|
|
|
|
|
If you just want to draw charts you can
1. make your own library
2. use an external library.
You could use Dundas Charting (you've got to pay for this)
or you can use something like this: charts[^]
|
|
|
|