|
Mycroft Holmes wrote: Personally I think the guy is nuts to do it this way but it may be (had better be) a learning project
I am willing to bet that, like the moron I just answered in the ASP.NET forum, this clown is being paid for his messy code.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
Christian Graus wrote: answered in the ASP.NET forum
I am forever thankful that I have limited ASP knowledge and almost no interest in the platform.
Christian Graus wrote: this clown is being paid for his messy code
I'm gonna be generous and assume he's in a learning phase. I once had 3 contracts in a row in the 90's following a guy who supplied crappy solutions, he was most lucrative for me, I did feel sorry for the clients though.
[edit] looks like someone did not like your negative response .[\edit]
|
|
|
|
|
Thanks for your attention and good help.
good luck.
|
|
|
|
|
Hi.
There is a HTML file beside of my EXE file, I wanna print it !
Could you please guide me how I can print it ?
Thanks
|
|
|
|
|
What are you asking exactly ? You can use the print verb for process.start to try to print your file, I guess.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
Christian Graus wrote: What are you asking exactly ?
I'm gonna print an external HTML file via a C# Application.
Could you guide me ?
|
|
|
|
|
hi friends
i have done print job monitor using c# i am able to get all the details except the number of copies the user send for the print job. how can i get?. is there any way to get using any API could u plz help me
thanks u
Nishar A.
|
|
|
|
|
|
hi Developers..
I have a Form that contains a DataGridView and a Button and I want to bind this DataGridView to a Custom data source (BindingList) and I want to add a new Item to the DataGridView only when I Click the Button (( so dataGridView.AllowUserToAddRows = false )) , But the problem is that if I Click a Button to add a new row (item ) to the DataGridView , But then I decided to Cancel adding a new Item by pressing ESC the new row will not deleted
so what the solution
Thanks in advance
modified on Sunday, September 6, 2009 11:04 PM
|
|
|
|
|
a few points.
alladeen wrote: Double Click the Button
Single click on a button is the standard - I recommend you not change this.
You are running up against the most common problem with editing a list control, management is a nightmare. I recommend that you pop a dialog form you do the AED functions. I do the following
I have a menu strip with AED buttons.
Add passes 0 as the ID to a dialgo specifically build to manage the table/entity you want to work with.
Edit passes the currently selected rows ID value to the same form
Delete asks the used to confirm delete.
The dialog form allows you to have very fine control on the users input and writes the data back to the database, return dialogresult OK or Cancel to the parent form.
If the result was Ok/Delete (from the delete method) then the form reloads the DGV from the database. This entails some redundant calls to the database but MY DATA ALWAYS REFLECTS THE DATABASE information.
|
|
|
|
|
thanks Mycroft Holmes
that is an error when I wrote double click I meant click .
I want to bind the DataGridView to a custom data source ((BindingList )) not to a DataBase ,so what the solution
|
|
|
|
|
The strategy remains the same, pop a dialog, control the data manipulation in the dialog, make the changes to the source of the bindinglist, have the parent form reload the bindinglist after the dialog/delete makes a change. BindingList is just another data container.
|
|
|
|
|
hi
what's AED buttons .
and please explaine more .
My goal is to delete a newly row added , when pressing ESC .like a DataGridView when the property AllowUserToAddRows is set to True and ,I Add items to the DGV manually, so if focous on the last row and press ESC the row will be deleted but If the focous on another row the row will not deleted
.But the difference is that I want to add items to DGV not manually but programmatically
thanks
|
|
|
|
|
AED = Add Edit Delete
I think your goal is wrong, I think your entire strategy for handling AED is wrong. I do not allow editing in a list control and gave you the strategy I use to avoid that.
|
|
|
|
|
Hi, I'm wondering how to compile entire solution in one exe without any other dll files. There are a few possibilities:
1. Copy all files from dll projects into exe project (yah).
2. Compile all normally with dlls and use ILMerge (doesn't support NET frameworks higher than 2.0) or some shareware software to make it one exe (also you can use Thinstall) quite expensive...
3. Use resources, but managing is very annoying.
but... Is there any possibility to add an external existing dll project (my project) and compile it with other windows forms application (exe) and get only one exe file without dll files? Copying files from dll project is not desirable, because I want to have a possibility to modify dll and get those files synchronized...
Any suggestions?
|
|
|
|
|
No, if you want the code from the dlls, you need to copy it into your project.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
Actually we create multiple projects and compile as dlls because if we need to change in any Business Logic we dont have to modify the presentation layer or any other layer.
If you want everything inside a single exe, then why do you need to create project. You can easily manage source using Hierarchy of folders, each of which will belong to a namespace.
I dont find any reason why you have to create a new project only to manage source codes....
AFAIK, only ILMerge is the process that can merge 2 dlls into single one. You cant have one exe output when you have more than one project using Visual Studio.
|
|
|
|
|
I think he may be having an issue with 3rd party DLLs, I know of no way to include these in an exe.
|
|
|
|
|
Yeah, I would guess you are right.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
hello,
please help me,
actually I have 3 questions:
1. how can I know programatically when a click has occured on the desktop? (or another application, other than mine).
2. how can I perform a click or move the mouse programatically or perform keyboard clicks etc.
3. how do programs like team viewer send the image of the desktop so efficiently?
I know they somehow capture only the changes in the client's screen. do they read the changes made in every pixel and send only those?
or is there something else?
if this is the case, how can I read the information in each pixel on the screen?
Thanks alot in advanced!
-Ben
|
|
|
|
|
asizo wrote: how can I know programatically when a click has occured on the desktop? (or another application, other than mine).
This might help in Getting mouse click outside your application:
Processing Global Mouse and Keyboard Hooks in C#[^]
Wamuti: Any man can be an island, but islands to need water around them!
Edmund Burke: No one could make a greater mistake than he who did nothing because he could do only a little.
|
|
|
|
|
Hiii,
I have a form which contains two dynamic rows in which 1st row contains 2 lebels , 2 text boxes and 2 Buttons namely ADD & REMOVE . now i want to add and delete the dynamicaly created rows Onclicking the perticular ADD and DELETE button that dynamic row shuld b created or deleted .
|
|
|
|
|
Sounds easy enough. What have you tried ? This is not a web project, right ?
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
I have tried the following code....
private void GenerateTable1()
{
Table table = new Table();
table.ID = "Table1";
Page.Form.Controls.Add(table);
const int colsCount = 6;
TableRow row = new TableRow();
for (int j = 0; j < colsCount; j++)
{
TableCell cell = new TableCell();
if (j == 0 || j == 2)
{
Label lbl = new Label();
//lbl.ID = "LabelRow_" + 0 + "Col_" + j;
if (j == 0)
{
lbl.Text = "Acc No";
}
else
{
lbl.Text = "Vol";
}
cell.Controls.Add(lbl);
row.Cells.Add(cell);
}
else if (j == 1 || j == 3)
{
TextBox tb = new TextBox();
//tb.ID = "TextBoxRow_" + i + "Col_" + j;
cell.Controls.Add(tb);
row.Cells.Add(cell);
}
else if (j == 4)
{
Button btn = new Button();
btn.Text = "Add";
//btn.Attributes.Add("onclick", "MyFunction()");
cell.Controls.Add(btn);
row.Cells.Add(cell);
//btn.Attributes.Add("onclick", "this.visible = 'false'");
//btn.Click += new EventHandler(this.Button1_Click1);
}
else
{
Button btn = new Button();
//btn.ID = "ButtonRow_" + i + "Col_" + j;
btn.Text = "Remov";
cell.Controls.Add(btn);
row.Cells.Add(cell);
}
}
table.Rows.Add(row);
}
=====================================================================
now I want that the dynamicaly created button ADD should add next row of same kind and dynamicaly created button REMOV should delete perticular row..
plz help me...
|
|
|
|
|
Hi,
I am unfortunately not familiar with single bits and have now the problem that I have to write single bit values in an integer value.
The bit masks look like:
Value# Bit Mask
1 2-0 00000007H
2 5-3 00000038H
3 8-6 000001C0H
4 15-9 0000FE00H
5 22-16 007F0000H
6 29-23 3F800000H
Bit 30-32 are unused.
Does anyone know how can I set these six values - maybe as short example?
Many thanks! Daniel.
|
|
|
|