|
I am working on an application, in which I have to draw a lot of diagram (almost 500000 rectangles) on the screen and link them through line. And I need view functionalities like movement of the diagram, zoom in/out and save options. Can anyone tell me, DirectDraw can help me in this regards. I mean DirectDraw is best option to develop this application. Or anyone knows about another tool plz let me know. I will b thankful u.
|
|
|
|
|
You might want to look into the new XNA framework from Microsoft.
|
|
|
|
|
i have here textbox for comments- it is generated if it is needed.
TextBox text = new System.Web.UI.WebControls.TextBox();
text.ID = "TextBox" + i;
text.Text = "komentar...";
PlaceHolder1.Controls.Add(text);
Button knof = new Button();
knof.ID="Knof"+i;
knof.Text="Vnesi";
PlaceHolder1.Controls.Add(knof);
string komentar=text.Text;
How can i send komentar in 1 function so i could write it to database?
I think i should use onclick or click method
-- modified at 8:56 Tuesday 6th February, 2007
|
|
|
|
|
Yes. Register a handler for the button and extract the text from the textbox and insert it into your database using whatever method is appropriate for you.
only two letters away from being an asset
|
|
|
|
|
Aloha,
Our poor users doesn't have the rights necessary to access files in the program files dir, so we need to move a few configuration files to their "documents and settings" folder.
Accessing it from the program is easy: Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData), but how do we create some example files when the user install our program.
For each of the files in the setup project we can set a folder, but documents and settings is not an option (we can only choose between: application folder, user's desktop and user's programs menu.
Any idea how we tell the installer that we want to write our files to the user's documents and settings folder?
Thank you,
|
|
|
|
|
I think the way it's typically done is put them in the application folder. Then, default the install location to the user's documents and settings area somewhere.
Come to think of it, the standard way it's done is this: install almost always requires an administrator. However, running your software should not require an administrator. For example, installing the .NET framework requires an admin, but running any of the .NET framework tools or running .NET applications do not require an admin. So, if that's an option for them, install the software as an admin, run the software as limited user.
|
|
|
|
|
Thank you for your reply.
I choose the simple option. Simply copy the files from the app. directory to the local application directory when the app. starts
|
|
|
|
|
Hello,
I have a crystal report that I use to print a customized bill format (I managed the special locations of the feilds to match the actual bill data locations), without displaying it to the user.
My question is how can I make the database path valid to any system while i can show the data fields in thier proper locations to match the actual bill paper?
Regards,
Butterfly
|
|
|
|
|
Butterfly_h wrote: how can I make the database path valid to any system
I'm not sure what you mean. Are we talking an .mdb file here?
|
|
|
|
|
yes an Access database.
I added the access database to my crystal report and located the feilds as it is on the actual form and the printing result is great. But how can I make the program dynamicly find the database for the crystal report if I installed it on the user system?
Regards,
Butterfly
|
|
|
|
|
As the subject says, I need to change the column width in a DataGrid. The problem is that I'm using .net framework 1.1 (Visual Studio 2003). The code is this:
this.dataGrid.DataSource = myDataTable;
//here should come something like: this.dataGrid.Columns["Col1"].Width = 0 or whatever
It's driving me crazy... I can't seem to find a collection of columns...
And another thing: is there a way to set some auto sizing propery for all columns to fit the DataGrid? In VS 2005 that's set easily, but in VS 2003... I just can't seem to find it...
Thanks!
|
|
|
|
|
go for method like this....
private void datagrid_itemdatabound(object sender, system.web.ui.webcontros.datagrideventars e)
{
.....
.....
e.items.cells[column number].width= value;
....
}
and for the datagrid events write this method name for itemdatabound event.
Hope this works!!!
Gautham
|
|
|
|
|
I forgot to say.. I'm creating a Windows Forms application, not a Web one... And I can't get that Items collection... That's the whole problem... But thanks, anyway
|
|
|
|
|
Ok, I solved it... After you set the DataSource property, you have to create a TableStyle, and DataGridColumnStyles. Each column style has to be mapped to a DataColumn from DataTable, and there you can set Width property... So that's it...
Still haven't figured out how to auto size the columns so that they fit into the grid...
|
|
|
|
|
I have been told to write a windows service which 'periodically' checking for messages and application updates from the web service.
The user has the choice to download updates and messages automatically or to be prompted to download them when they are available.
Note: A Message may contain documents.
Now my question is is it the right approach to do this using a windows service or windows app/form.
Please help me out on this.
Thanks
kash
|
|
|
|
|
wrote: Now my question is is it the right approach to do this using a windows service or windows app/form.
I would say a windows forms application that sits quietly in the system tray until it needs to tell the user something. When there is no user logged into the system a windows service will have no one to tell, so its continual checking would be redundant.
|
|
|
|
|
Hi,
I need to develop a PCB(Process Control Block) datastructure managed by OS for applications. I need some info or code regarding this.
Regarding this I need to find out turnaround time, starting time, state etc of two applications.
Thanks in advance
Ali Raza
|
|
|
|
|
Some of that information can be retrieved from a System.Diagnostics.Process class instance.
|
|
|
|
|
I´m working with XML at VS2003.
I have a file called Escola.xml
I´m covering it, i´d like to take the "Text" everytime that it found the element <name>.
Example:
<name>Charles
I want to show "Charles"
Can anybody help me?
Thanks
|
|
|
|
|
From memory, the property is InnerText. How are you iterating over the nodes ?
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
I´m jrvelloso..
i just changed my name!
take a look
XmlTextReader xmltr = new XmlTextReader("Escola.xml");
while (xmltr.Read())
{
switch(xmltr.NodeType)
{
case (XmlNodeType.Element):
{
if (XmlNodeType.Element == "Name") lstLeitura.Items.Add(xmltr.Value);
break;
}
It´s wrong.. but that´s the idea that I had.
Thanks for helping!
|
|
|
|
|
I guess this is what you're looking for:
XmlTextReader xmltr = new XmlTextReader("Escola.xml");
while (xmltr.Read())
{
switch(xmltr.NodeType)
{
case XmlNodeType.Element:
if (xmltr.Name == "Name")
lstLeitura.Items.Add(xmltr.ReadString());
break;
}
}
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook www.troschuetz.de
|
|
|
|
|
That´s it man!
Thank you so VERY much!
Cheers!
|
|
|
|
|
I would personally use a XmlDocument and search for the nodes instead of iterating over the entire document, but if the doc is small, your way might be fine.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
Hi,
I am new to C# and .Net Framework, can any one please tell how to find index of character in string.
for example: string myteststring = "abc,def";
then here can i find the index of char ",".
Warm Regards,
Mushq
|
|
|
|