|
Hi Thomas,
Thanks for this.
I've just been looking at MbUnit v3 and it actually provides the exact functionality I need in order to store and compare test run results. Interesting!
Now if I could only figure out how to use some XML data with it, i'll be fine! It seems that the whole data thing has changed in this version and they haven't written up any docs yet!! Ouch!
|
|
|
|
|
Hi,
I’m new in C#
I need to develop sequence diagram,
Sequence diagram contain arrows, text and column.
It should contain three columns that have arrows with text between them (for example message from module to module, each module is a column)
I would like to be able to stretched the Sequence diagram if the user stretched the form so arrow and text become bigger when the form is bigger.
What is the best way to create Sequence diagram?
Should I use image class and then set in on the form ?
Thanks
Ronen
|
|
|
|
|
I did not understand what you mean exactly, maybe Tablelayout container can help you somehow
|
|
|
|
|
UML Sequence diagram, see example below
column1 column2 column3
msg1 ----> msg2
msg2 ---->msg3
msg1<----------------msg3
Ronen
|
|
|
|
|
i dunno where will you implement it but here is the general solution :
make a custom control, add three panel
Firt panel : set Dock to Left
Second Panel : set Dock to Fill
Third Panel : Set Dock to Right
now, put 3 picture box in panel 2 *
First PB : Dock-Left, BackGroundImageLayout-Stretch
Second PB : Dock-Fill, BackGroundImageLayout-Tile
Third PB : Dock-Right, BackGroundImageLayout-Stretch
*Make sure Dock-Fill object must be full in middle, you can change it by Send Backward and Send Forward.
set arrows tops in First and Third PBs' BackGroundImage property and set a line in second PB's BGI property.
Now when you increase the width of that control, it will increase automatically and you have 2 empty panels where you can put anything you want.
TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L
%^]*IRXD#@GKCQ`R\^SF_WcHbORY87֦ʻ6ϣN8ȤBcRAV\Z^&SU~%CSWQ@#2
W_AD`EPABIKRDFVS)EVLQK)JKSQXUFYK[M`UKs*$GwU#(QDXBER@CBN%
Rs0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-iTV.C\y<pjxsg-b$f4ia>
--------------------------------------------------------
128 bit encrypted signature, crack if you can
|
|
|
|
|
thank you
I will try it
Ronen
|
|
|
|
|
Can chart control be used in VC express edition?
thanks
|
|
|
|
|
|
To reproduce:
1. Run code
2. Press down arrow
3. Click in second form title
4. Click in first form title
5. Enter some characters
Observed:
Entered data appears in first row
Expected:
Entered data should appear in second row
How to fix ?
using System.Collections.Generic;<br />
using System.ComponentModel;<br />
using System.Windows.Forms;<br />
<br />
class TestApplication<br />
{<br />
static void Main()<br />
{<br />
var p = new Form();<br />
p.IsMdiContainer = true;<br />
p.WindowState = FormWindowState.Maximized;<br />
var f1 = new TestForm();<br />
var f2 = new Form();<br />
f2.MdiParent = p;<br />
f1.MdiParent = p;<br />
f1.Show();<br />
f2.StartPosition = FormStartPosition.Manual;<br />
f2.Left = 300;<br />
f2.Show();<br />
Application.Run(p);<br />
}<br />
}<br />
<br />
class TestForm : Form<br />
{<br />
internal DataGridView grid = new DataGridView();<br />
internal List<Customer> list;<br />
<br />
public TestForm()<br />
{<br />
Controls.Add(grid);<br />
BindingSource BindingSource = new BindingSource();<br />
list = new List<Customer>();<br />
list.Add(new Customer() { Name = "test" });<br />
BindingList<Customer> bindingList = new BindingList<Customer>(list);<br />
BindingSource.DataSource = bindingList;<br />
grid.DataSource = bindingList;<br />
}<br />
}<br />
<br />
class Customer<br />
{<br />
public string Name { get; set; }<br />
}
Andrus
|
|
|
|
|
As far as i understood, you wanna say that you are writing something in a DGV's new row then you click on another form and back to that first form now when you write, it should be in second row. Well, if 'Yes' then just write this code in that Form's Deactivate Event
dataGridView1.CurrentCell = dataGridView1[0, dataGridView1.RowCount - 1];
TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L
%^]*IRXD#@GKCQ`R\^SF_WcHbORY87֦ʻ6ϣN8ȤBcRAV\Z^&SU~%CSWQ@#2
W_AD`EPABIKRDFVS)EVLQK)JKSQXUFYK[M`UKs*$GwU#(QDXBER@CBN%
Rs0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-iTV.C\y<pjxsg-b$f4ia>
--------------------------------------------------------
128 bit encrypted signature, crack if you can
|
|
|
|
|
Thank you. Two issues:
1. In real-application second form may be activated when some other form, not this form containing grid is activated. There may be also a lot of forms like first form.
How to use deactivate in this case?
2. If second form is activated, grid in first form visually shows that current row is first row by putting triangle to first row. How to prevent this so that current row triangle remains in second, new row ?
Andrus
|
|
|
|
|
did you tried the code i gave you and i dont get what are you trying to say.
Explain in points
TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L
%^]*IRXD#@GKCQ`R\^SF_WcHbORY87֦ʻ6ϣN8ȤBcRAV\Z^&SU~%CSWQ@#2
W_AD`EPABIKRDFVS)EVLQK)JKSQXUFYK[M`UKs*$GwU#(QDXBER@CBN%
Rs0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-iTV.C\y<pjxsg-b$f4ia>
--------------------------------------------------------
128 bit encrypted signature, crack if you can
|
|
|
|
|
I tried your code and got the following issue:
Observed:
After activating second window grid current record marker jumps to first row:
> test
*
Exprected:
Current row marker should remain in last row:
test
>*
Andrus
|
|
|
|
|
now it wont, you did something wrong. The code i gave you will always set the focus to last row
TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L
%^]*IRXD#@GKCQ`R\^SF_WcHbORY87֦ʻ6ϣN8ȤBcRAV\Z^&SU~%CSWQ@#2
W_AD`EPABIKRDFVS)EVLQK)JKSQXUFYK[M`UKs*$GwU#(QDXBER@CBN%
Rs0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-iTV.C\y<pjxsg-b$f4ia>
--------------------------------------------------------
128 bit encrypted signature, crack if you can
|
|
|
|
|
I'm new to .net, and espacially to CF. I need to have a mouse down event (or simmular). The problem is that there dosen't exist one in CF (It does in the "full" .net version).
I have read serveral pages saying that i need to create my own button form the existing one and add the missing event's.
Can anyone tell me how to do this, or point me to an artcle describing the prosess?
Thanksfull for all help I can get!
Regards
Ola
|
|
|
|
|
Hello everyone,
I have written an EXE. And I want to,
- schedule a job and let the EXE run daily at 12:00pm;
- write a script which could install the job into a computer (i.e. the installation script for the job).
Are there any reference documents or samples which I could make a reference?
thanks in advance,
George
|
|
|
|
|
|
Cool, looks nice!
regards,
George
|
|
|
|
|
Hi Mika,
One more question after reading this script, especially what means "impersonationLevel=impersonate" and "\root\cimv2"?
Set objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate}!\\" _
& strComputer & "\root\cimv2")
regards,
George
|
|
|
|
|
|
Thanks Mika!
You have recommended really good stuff. But dues to my limited skills in vbscript, I do not know how to re-wirte the following script in powershell? Do you have any good ideas?
strComputer = "."
Set objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate}!\\" _
& strComputer & "\root\cimv2")
regards,
George
|
|
|
|
|
George_George wrote: Do you have any good ideas
Sorry to say, but no. I know about nothing of powershell and my knowledge of vbscript these days is very poor.
Try googling around. I found for example this: Accessing WMI From Windows PowerShell[^], at a glance it looks promising.
|
|
|
|
|
|
Cool, Giorgi!
Actually I just want to keep things simple and just want to write a couple of lines script in powershell to schedule a job for an application.
More specically, I want to write script which like this in powershell. But dues to my limited skills in vbscript, I do not know what is the meaning of the statement and how to rewrite it in powershell. Do you have any ideas?
http://msdn.microsoft.com/en-us/library/aa394601.aspx[^]
strComputer = "."
Set objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate}!\\" _
& strComputer & "\root\cimv2")
regards,
George
|
|
|
|
|
My skills are limited in VBScript too I believe googling powershell and task scheduling should bring some results.
The library that I mentioned would allow users to schedule some jobs as they would like to.
|
|
|
|