|
Look at his record; earlier this month he listed the same question four times. He has been told several times NOT to post more than once.
Blog link to be reinstated at a later date.
|
|
|
|
|
I do recall pointing it out, in a nice manner in the past. Some folks just don't get it.
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
"Not only do you continue to babble nonsense, you can't even correctly remember the nonsense you babbled just minutes ago." - Rob Graham
|
|
|
|
|
There have been so many of them lately I can't keep track. It seems to go in waves. Might have to restart my "list."
Blog link to be reinstated at a later date.
|
|
|
|
|
maybe you can add tab container, and if you create new child like :
FormChild form1 = new FormChild(); // form Child is configured Child form by you
create new tab page too:
TabPage tab1 = new TabPage();
and then attach your new Child form at that page like:
form1.MdiParent = MyParentForm;
form1.Parent = tab1 ;
I try something like this on many tabbed application, but I don't try at calendar like yours.
No one can prevent me to learn something
|
|
|
|
|
Hi!
I'm part-way through making a control that utilises tab to switch between different panels. I have the code working that when the user clicks on a tab at design-time, it switches to the corresponding panel through the override WndProc in the ControlDesigner class.
I have another option though, using the DesignerActionList and DesignerActionListCollection, where I have an "Add tab" option in the Smart-tag.
In design time, it does actually add the tab. But, each tab is linked directly to a custom panel I made that should get added to the form too.
So when I click "Add tab", it invalidates my control so it writes the tab text on the top, but when I run the application it is promptly removed.
I clicked on my custom panel collection to see whether the tab is added to a collection inside the control when "Add tab" is clicked, and it is. But the problem is, it's simply not adding the control to the form's designer code.
public void AddTab()
{
StylusOption STOpt = new StylusOption();
int i = this.dtc.OptionTabs.Count;
while(this.dtc.ParentForm.Controls["StyleOption" + i] != null)
i++;
STOpt.Name = "StyleOption" + i;
this.dtc.ParentForm.Controls.Add(STOpt);
this.dtc.ParentForm.CreateControl();
this.dtc.OptionTabs.Add((StylusOption)this.dtc.ParentForm.Controls[this.dtc.ParentForm.Controls.Count - 1]);
this.dtc.Invalidate();
this.UIScu.HideUI(this.dtc);
}
That's the current code I have. StylusOption is the name of the control i'm trying to add, StylusBar is the control i'm adding it to, and this.dtc is the StylusBar i've set the handler to work with.
In the code, i've attempt to add the control via this.dtc.ParentForm.Controls.Add(STOpt); but even that doesn't work. I can't figure out how to add the StylusOption to the actual form to remember. If anyone can help, i'd appreciate it a lot.
An example of how i'd like it to work is like the TabControl, where if you click Add Tab, it creates a new TabPage in your form so you can edit any details there.
Thanks
modified on Wednesday, October 29, 2008 11:33 AM
|
|
|
|
|
It seems like you might have to manually serialize the objects that get created when the smart tag is utilized. An article that I wrote for CP might be able to help you with regards to full design-time feature support: Targeting Design-Time Events of UserControls[^]. It doesn't cover serializing specifically, but it still may be able to jog your memory with regards to finding a solution.
Regards,
Thomas Stockwell
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.
Visit my Blog
|
|
|
|
|
I gave it a read through. It did give me a little reminder of somethings I had missed, but unfortunately I can't get it to work :\
Serializing the controls? Hmm, I understand the [Serializable()] ComponentModel, but how to implement it into a declaration from within the ControlDesigner functions I don't know D:
Thanks.
|
|
|
|
|
hi all,
Listview sorting ,with out using "IComparer Class " ,please help me.
|
|
|
|
|
What's wrong with using the IComparer class?
Simon
|
|
|
|
|
His homework assignment specifies to do it another way I presume.
|
|
|
|
|
Yeah, I suspected as much.
Although I'll give him the benefit of the doubt. Maybe he's got a cruel boss. "Write me an XML parser without using anything from the System.Xml namespace, or Strings, or a computer"
Simon
|
|
|
|
|
hi,
we can add another Icomparer class for List view Sorting ,
private void Form1_Load(object sender, EventArgs e)
{
var y = from x in dcontext.CONFIG_CITies
orderby x.str_city descending
where x.bool_active == true
select new { Code = x.int_cityID, CityName = x.str_city };
int i = 0;
foreach (var lst in y)
{
listView1.Items.Add(lst.Code.ToString());
listView1.Items[i].SubItems.Add(lst.CityName);
i++;
}
int j=0;
arr = new string[y.Count()];
foreach (var asd in y)
{
arr[j] = asd.CityName+","+asd.Code;
j++;
}
}
private void listView1_ColumnClick(object sender, ColumnClickEventArgs e)
{
listView1.Columns[1].ListView.Sorting = SortOrder.Descending;
if (listView1.Columns[1].ListView.Sorting == SortOrder.Descending)
{
listView1.Items.Clear();
string[] y;
Array.Sort(arr);
string x;
int j = 0;
for (int i = 0; i < arr.Count(); i++)
{
x = arr.ElementAt(i);
y = x.Split(',');
listView1.Items.Add(y[0]);
listView1.Items[j].SubItems.Add(y[1]);
j++;
}
}
}
i tried this above sample code ,but it is also not working .Please help me.
|
|
|
|
|
Good day,
Any idea how to get what the msagent character is hearing?? Any property/method like the speak but could do the opposite. "speech to text"
Many thanx guys
All generalizations are wrong, including this one!
(\ /)
(O.o)
(><)
|
|
|
|
|
You would have to look into a third-party component for interpreting the sounds that get inputted through microphones, etc on the computer. I do not believe .NET does this natively. Look into SDKs for devices that can already do what you are asking.
Regards,
Thomas Stockwell
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.
Visit my Blog
|
|
|
|
|
Hi All,
I’m looking for a good Unit tester that can test both the UI and the business object models. We are using the DevExpress expressApps framework.
I am aware of NUnit, MBunit, XUnit and TestDriven.net but I’m not sure what ties in the best with DevExpress.
Thanks,
|
|
|
|
|
Have you tried asking at the devexpress forums?
Kevin
|
|
|
|
|
Yes I have and no one has a single solution. Most of them are using a mixture of different unit testing software.
|
|
|
|
|
I use devExress controls and tested it using NUnit. You need to implement some pattern like MVP/MVC and make your views humble. So you can test it easily. It's a huge topic and reading this[^] blog will give you some ideas. Just read his CAB series. It's worth reading.
|
|
|
|
|
Hello,
You can use any unit tester with DevExpress, because they are not specific to any developer tool by design. We even have our own Unit test runner tool[^]
Many of us are using it internally.
As for testing eXpressApp Framework applications, I suggest you have a look at our own functional testing framework - EasyTest[^].
It was specially designed to test XAF applications and we have been successfull using it to test XAF releases internally for more than 6 years. BTW, EasyTest also can be used to test regular non-XAF applications build using DevExpress components.
Please contact our Support Team[^] in case of any questions.
Finally, I suggest you look at the Best practices of creating reusable XAF modules by example of a View Variants module extension[^] blog I recently wrote. You may be interested in it, because it also demonstrates how EasyTest can save you a lot of time.
Thanks,
Dennis
DevExpress Support, R&D, .NET Application Frameworks
|
|
|
|
|
Hi,
How can I pull out the values x, y and z in the below xml string?
"<Type><stringList xmlns=\"http://schemas.company.com/location/[app]/stringList/1.0\"><value>x</value><value>y</value><value>z</value></stringList></Type>"
|
|
|
|
|
Hi,
You could use regular expressions. Or create a XMLDocument-Object and then search for the nodes (traverse the document or use xpath).
|
|
|
|
|
yes, I should have said that I am aware that I can use xmlDocument but not sure how to loop to find <value> nodes.
|
|
|
|
|
Use the SelectNodes method.
|
|
|
|
|
Also, be aware that you have a namespace defined here, so you'll need to take that into account when performing the SelectNodes call.
|
|
|
|
|
Put the string in an XmlDocument, and use .DocumentElement.FirstChild.ChildNodes to get a list with the three value nodes.
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|