473,761 Members | 2,384 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Tired. Annoyed. Really need help with Control serialization issues. Please...

I coming unglued... really need some help. 3 days chasing my tail all over
MSDN's documentation ...and I'm getting nowhere.

I have a problem with TypeConverters and
storage of expandableobjec ts to attributes in tags (think Style tag -> Style
object).

The problem that I am chasing is:

Html side:

<CC1:MyContro l id=whatever Stuff="A:Some stuff;B:Another value;C:Bad hair
days"/>

The code behind is 3 classes:
* cStuff which is a complex property -- an instance of a 3 string class: (A,
B,C);
* StuffConverter -- a TypeConverter enherited from ExpandableObjec tConverter
that converts an instance of cStuff to "key:value;key: value;key;value "...
(ie: Stuff="A:Some stuff;B:Another value;C:Bad hair days") and back again.
* MyControl -- a generic test control to see how it works.
* Use of the following attributes on various elements, trying to keep it
glued together:
// [NotifyParentPro perty(true)]
//[Serializable(), TypeConverter(t ypeof(StuffConv erter))]
// [PersistenceMode (PersistenceMod e.Attribute)]
//[DesignerSeriali zationVisibilit y(DesignerSeria lizationVisibil ity.Visible)]


It doesn't matter what I do -- this is not working as expected.
There are 2 areas of error:

a) In the IDE, it doesn't serialize the values back to the backend xml/html
attribute. I can edit both the backend tag -- or the IDE's property and it
renders it correctly in realtime. In other words it can string->object fine.
But it won't save it back to the html (serialize).

b) Problem 2 -- when I run it I get a runtime error //Unable to generate
code for a value of type 'XAct.Web.Contr ols.cStuff'. This error occurred
while trying to generate the property value for Stuff.

The closest match I have seen to a post/answer on the web is at
http://www.dotnet247.com/247referenc.../18/94895.aspx -- but I am not
sure if this applies since that was more complex and had to do with data
binding.

Can any kind soul take a look at this? The code below should contain all
parts and be able to be dropped into one *.cs file to compile and test as a
control.





using System;
using System.Web.UI.D esign;
using System.Web;
using System.Componen tModel;
using System.Globaliz ation;
using System.Reflecti on;
using System.Collecti ons;
using System.Componen tModel.Design;
using System.Web.UI;
using System.Web.UI.W ebControls;
//http://msdn.microsoft. com/library/default.asp?url =/library/en-us/dndotnet/
html/vsnetpropbrow.a sp

namespace XAct.Web.Contro ls {
//=============== =============== ========
//'STUFF' CLASS DEF
//=============== =============== ========

[Serializable(), TypeConverter(t ypeof(StuffConv erter))]
public class cStuff{
private string _A=string.Empty ;
private string _B=string.Empty ;
private string _C=string.Empty ;
[NotifyParentPro perty(true)]
public string A {get {return _A;}set{_A=valu e;}}
[NotifyParentPro perty(true),Def aultValue("Fish ")]
public string B {get {return _B;}set{_B=valu e;}}
[NotifyParentPro perty(true)]
public string C {get {return _C;}set{_C=valu e;}}
}
//=============== =============== ========
//TEST CONTROL CLASS
//=============== =============== ========
public class MyControl : WebControl {
public MyControl(){
this.Controls.A dd(new LiteralControl( "ANGRY TODAY:<br/>"));
}
private cStuff _Stuff = new cStuff();

//Variation Tried:
// [PersistenceMode (PersistenceMod e.Attribute)]
[DesignerSeriali zationVisibilit y(DesignerSeria lizationVisibil ity.Visible)]
// Accepts changes from IDE -- updates PropertySummary , updates
// Rendering -- fails to save as serialized attrib.
// Fails in IDE: "Unable to generate code for a value of type
// XAct.Web.Contro ls.cStuff'.
// This error occurred while trying to generate the
// property value for Stuff."

//Tried:
//[DesignerSeriali zationVisibilit y(DesignerSeria lizationVisibil ity.Visible)]
// Synchs IDE to Render -- doesn't Serialize, and Fails in RunTime

//Tried:
//[PersistenceMode (PersistenceMod e.Attribute)]
// Synchs IDE to Render -- doesn't Serialize, and Fails in RunTime

//BTW: Works if I remove the stuff="" tag from the HTML it doesn't complain.
//In other words, it is failing in runtime when trying to parse the tag. Why
//it is failing to serialize in the ide, I don't know.
[DesignerSeriali zationVisibilit y(DesignerSeria lizationVisibil ity.Visible )]
public cStuff Stuff {get {return _Stuff;}set{_St uff=value;}}

protected override void Render(System.W eb.UI.HtmlTextW riter output) {
//To see what it THINKS it should be:
StuffConverter oSC = new StuffConverter( );
string tSerialized =
(string)oSC.Con vertTo(null,nul l,_Stuff,typeof (string));
output.Write("O nscreen Changes: " + this._Stuff.ToS tring() + ":" +
this._Stuff.A + ":" + ":[" + tSerialized + "]");
base.Render(out put);
}
}
//=============== =============== ========
//TYPE CONVERTER CLASS
//=============== =============== ========
public class StuffConverter : ExpandableObjec tConverter {
System.Type _Type = typeof(cStuff);
public override bool CanConvertFrom( ITypeDescriptor Context context, Type t)
{
if (t == typeof(string)) {return true;}
return base.CanConvert From(context, t);
}
//Convert From String:
public override object ConvertFrom(ITy peDescriptorCon text context,
CultureInfo info,object value) {
if (value is string) {
try {
//_Type = context.Propert yDescriptor.Pro pertyType;
string[] tParts;
tParts = SplitPlus((stri ng) value, ";");
object o = _Type.Assembly. CreateInstance( _Type.ToString( ));
string tKey = string.Empty;
string tValue = string.Empty;
int tPos = 0;
foreach (string tPart in tParts){
if (tPart == string.Empty){c ontinue;}
tPos = tPart.IndexOf(' :');
if (tPos == -1){
tKey = tPart;
tValue = string.Empty;
}else{
tKey = tPart.Substring (0,tPos);
tValue = tPart.Substring (tPos+1);
System.Reflecti on.PropertyInfo oPI =
_Type.GetProper ty(tKey,Binding Flags.Instance | BindingFlags.Pu blic |
System.Reflecti on.BindingFlags .IgnoreCase);
if (oPI != null){
oPI.SetValue(o, tValue,null);
}
}
}
return System.Convert. ChangeType(o,_T ype);
}
catch (Exception E){
throw new Exception("MERD E!:::" + E.Message );
}
}
return base.ConvertFro m(context, info, value);
}
public override object ConvertTo(IType DescriptorConte xt context, CultureInfo
culture, object value, Type destType) {
//Works in IDE _Type = context.Propert yDescriptor.Pro pertyType;
object o=null;
try {
o = System.Convert. ChangeType(valu e,_Type);
}catch{}
if ((o !=null) && (destType == typeof(string)) ) {
string tResult = string.Empty;
/*
tResult += "a:" + context.Instanc e.GetType().ToS tring() + "|";
tResult += "b:" + context.GetType ().ToString() + "|";
tResult += "c:" + context.Contain er.ToString() + "|";
tResult += "d:" + context.ToStrin g () + "|";
tResult += "e:" + context.Propert yDescriptor.Con verter.ToString () + "|";
tResult += "f:" + context.Propert yDescriptor.Pro pertyType.ToStr ing() + "|";

a:XAct.Web.Cont rols.LoginPanel |
b:System.Window s.Forms.Propert yGridInternal.P ropertyDescript orGridEntry|
c:Microsoft.Vis ualStudio.Desig ner.Host.Design erHost|
d:System.Window s.Forms.Propert yGridInternal.P ropertyDescript orGridEntry
Captions|
e:XAct.Web.Cont rols.StuffConve rter|
f:XAct.Web.Cont rols.LoginPanel +cCaptions
*/

string tDivChar = string.Empty;
PropertyInfo[] oPIs = _Type.GetProper ties();
foreach(Propert yInfo oPI in oPIs){
string tKey = oPI.Name;
try {
object oVal = oPI.GetValue(o, null);
string tValue = string.Empty;
if (oVal != null){
tValue = oVal.ToString() ;
if (tValue != string.Empty){t Result += tDivChar + tKey + ":" + tValue;}
if (tDivChar == string.Empty){t DivChar = ";";}
}
}
catch{}
}
return tResult;
}
return base.ConvertTo( context, culture, value, destType);
}

public override bool
GetStandardValu esSupported(Sys tem.ComponentMo del.ITypeDescri ptorContext
context){
return false;
}

/// <summary>
/// Split function that only splits if not within brackets or quotes.
/// </summary>
/// <param name="qString"> </param>
/// <param name="qDivChar" ></param>
/// <returns></returns>
public static string[] SplitPlus(strin g qString, string qDivChar) {
if (qDivChar== String.Empty){q DivChar = ",";}
ArrayList tResults = new ArrayList();
string tChar="";
string tWord = "";
bool tEscaped=false;
string tLastChar = "";
System.Collecti ons.Stack tQuotes=new System.Collecti ons.Stack();
for (int i=0;i<qString.L ength;i++) {
tChar = qString[i].ToString();
if (tQuotes.Count == 0) {
//We are outside of quotes, so look for quote beginnings...
if ((tChar == "(") ||
(tChar == "{") ||
(tChar == "[") ||
(tChar == "'") ||
(tChar == "\"")) {
tQuotes.Push(tC har);
tLastChar=tChar ;
}
if ((tChar == qDivChar)) {
tResults.Add(tW ord);
tWord="";
tChar = "";
}
}
else {
//We are within quotes...need to look for close chars:
if (tEscaped ==false) {
if (tChar == "\\") {tEscaped=true; }
else {
tLastChar =(string)tQuote s.Peek();
if ((tChar == "\"") && (tChar == tLastChar)) {
tQuotes.Pop();
}
else if ((tChar == "\'") && (tChar == tLastChar)) {
tQuotes.Pop();
}
else if ((tChar == "]") && (tLastChar == "[")) {
tQuotes.Pop();
}
else if ((tChar == "}") && (tLastChar == "{")) {
tQuotes.Pop();
}
if ((tChar == ")") && (tLastChar == "(")) {
tQuotes.Pop();
}
}
}
else {
tEscaped = false;
}
}
tWord = tWord+tChar;
}
if (tWord!= String.Empty) {tResults.Add(t Word);}
return (string[])tResults.ToArr ay(typeof(strin g));
}
}//Class:End


}

Nov 18 '05 #1
3 1938
"Sky Sigal" <as*******@xa ct-solutions.remov ethis.com> wrote in message
news:%2******** *******@TK2MSFT NGP12.phx.gbl.. .
I coming unglued... really need some help. 3 days chasing my tail all over
MSDN's documentation ...and I'm getting nowhere.

I have a problem with TypeConverters and
storage of expandableobjec ts to attributes in tags (think Style tag -> Style object).

The problem that I am chasing is:

Html side:

<CC1:MyContro l id=whatever Stuff="A:Some stuff;B:Another value;C:Bad hair
days"/>

The code behind is 3 classes:
* cStuff which is a complex property -- an instance of a 3 string class: (A, B,C);
* StuffConverter -- a TypeConverter enherited from ExpandableObjec tConverter that converts an instance of cStuff to "key:value;key: value;key;value "...
(ie: Stuff="A:Some stuff;B:Another value;C:Bad hair days") and back again.
* MyControl -- a generic test control to see how it works.
* Use of the following attributes on various elements, trying to keep it
glued together:
// [NotifyParentPro perty(true)]
//[Serializable(), TypeConverter(t ypeof(StuffConv erter))]
// [PersistenceMode (PersistenceMod e.Attribute)]
//[DesignerSeriali zationVisibilit y(DesignerSeria lizationVisibil ity.Visible)]

It doesn't matter what I do -- this is not working as expected.
There are 2 areas of error:

a) In the IDE, it doesn't serialize the values back to the backend xml/html attribute. I can edit both the backend tag -- or the IDE's property and it renders it correctly in realtime. In other words it can string->object fine. But it won't save it back to the html (serialize).

b) Problem 2 -- when I run it I get a runtime error //Unable to generate
code for a value of type 'XAct.Web.Contr ols.cStuff'. This error occurred
while trying to generate the property value for Stuff.

The closest match I have seen to a post/answer on the web is at
http://www.dotnet247.com/247referenc.../18/94895.aspx -- but I am not
sure if this applies since that was more complex and had to do with data
binding.

Can any kind soul take a look at this? The code below should contain all
parts and be able to be dropped into one *.cs file to compile and test as a control.


If I were you, I'd try simplifying the cStuff class down to a single string,
and with the TypeConverter attributes removed. If that works, try adding the
TypeConverter attributes, but change the TypeConverter to handle only a
single string. If that works, add one more string...
--
John Saunders
johnwsaundersii i at hotmail
Nov 18 '05 #2
Fair enough answer :-) ...although I thought that the example I posted WAS
the simpler version of what I am trying to get at in the long run...:-)

To rephrase(?) -- what I think I am fishing around for is a definite answer
to the following question:

a) I've seen that
[PersistenceMode (PersistenceMod e.InnerProperty )]

[TypeConverter(t ypeof(StuffConv erter))]
[PersistenceMode (PersistenceMod e.InnerProperty )]
[DesignerSeriali zationVisibilit y(DesignerSeria lizationVisibil ity.Content)]

will work, putting into the html/xml of the control stuff like:
<mycontrol
<MyProp
MySubPropA="Uno "
MySubPropA="Dos "
/>
....
/>

And I've seen that this can be set to .Attribute
[PersistenceMode (PersistenceMod e.Attribute)]

if the propery is a non-complex type (string/int, etc).
But can it -- for SURE (ie bug is definatly on my side rather than a
limitation of the Framework) be that a complex type can be stored as an
attribute?

That's what I am trying to see. I think...(Could be a totally different
thing).

For example -- I am very mystified as to why the error happens at run-time.
Almost as if it is trying to serialize/send this to the outgoing HTML,
rather than take care of it in the IDE. Or is that it is hitting the
exception in the IDE -- but not flagging it as it is a different thread --
but that is why the IDE is not saving the changes back to the XML/HTML of
the control?
Voila.

If so -- could it be that the [Serialize()] attribute has nothing to do with
what I am working with and should be removed? Or am I missing a second half?
Some method that Serialize() will be looking for at run-time?
But yes -- today or this weekend I will try once again -- with an even
simpler TypeConverter -- something that parses a simpler string
"X=100;Y=20 0" or something like that...

Thanks for getting back to me btw :-)
Sky


"John Saunders" <jo************ **@notcoldmail. com> wrote in message
news:um******** ******@TK2MSFTN GP10.phx.gbl...
"Sky Sigal" <as*******@xa ct-solutions.remov ethis.com> wrote in message
news:%2******** *******@TK2MSFT NGP12.phx.gbl.. .
I coming unglued... really need some help. 3 days chasing my tail all over MSDN's documentation ...and I'm getting nowhere.

I have a problem with TypeConverters and
storage of expandableobjec ts to attributes in tags (think Style tag -> Style
object).

The problem that I am chasing is:

Html side:

<CC1:MyContro l id=whatever Stuff="A:Some stuff;B:Another value;C:Bad hair days"/>

The code behind is 3 classes:
* cStuff which is a complex property -- an instance of a 3 string class:

(A,
B,C);
* StuffConverter -- a TypeConverter enherited from

ExpandableObjec tConverter
that converts an instance of cStuff to "key:value;key: value;key;value "... (ie: Stuff="A:Some stuff;B:Another value;C:Bad hair days") and back again. * MyControl -- a generic test control to see how it works.
* Use of the following attributes on various elements, trying to keep it
glued together:
// [NotifyParentPro perty(true)]
//[Serializable(), TypeConverter(t ypeof(StuffConv erter))]
// [PersistenceMode (PersistenceMod e.Attribute)]

//[DesignerSeriali zationVisibilit y(DesignerSeria lizationVisibil ity.Visible)]


It doesn't matter what I do -- this is not working as expected.
There are 2 areas of error:

a) In the IDE, it doesn't serialize the values back to the backend

xml/html
attribute. I can edit both the backend tag -- or the IDE's property and

it
renders it correctly in realtime. In other words it can string->object

fine.
But it won't save it back to the html (serialize).

b) Problem 2 -- when I run it I get a runtime error //Unable to generate
code for a value of type 'XAct.Web.Contr ols.cStuff'. This error occurred
while trying to generate the property value for Stuff.

The closest match I have seen to a post/answer on the web is at
http://www.dotnet247.com/247referenc.../18/94895.aspx -- but I am not
sure if this applies since that was more complex and had to do with data
binding.

Can any kind soul take a look at this? The code below should contain all
parts and be able to be dropped into one *.cs file to compile and test

as a
control.
If I were you, I'd try simplifying the cStuff class down to a single

string, and with the TypeConverter attributes removed. If that works, try adding the TypeConverter attributes, but change the TypeConverter to handle only a
single string. If that works, add one more string...
--
John Saunders
johnwsaundersii i at hotmail

Nov 18 '05 #3
"Sky Sigal" <as*******@xa ct-solutions.remov ethis.com> wrote in message
news:ui******** ******@tk2msftn gp13.phx.gbl...
Fair enough answer :-) ...although I thought that the example I posted WAS
the simpler version of what I am trying to get at in the long run...:-)

To rephrase(?) -- what I think I am fishing around for is a definite answer to the following question:

a) I've seen that
[PersistenceMode (PersistenceMod e.InnerProperty )]

[TypeConverter(t ypeof(StuffConv erter))]
[PersistenceMode (PersistenceMod e.InnerProperty )]
[DesignerSeriali zationVisibilit y(DesignerSeria lizationVisibil ity.Content)]

will work, putting into the html/xml of the control stuff like:
<mycontrol
<MyProp
MySubPropA="Uno "
MySubPropA="Dos "
/>
...
/>

And I've seen that this can be set to .Attribute
[PersistenceMode (PersistenceMod e.Attribute)]

if the propery is a non-complex type (string/int, etc).
But can it -- for SURE (ie bug is definatly on my side rather than a
limitation of the Framework) be that a complex type can be stored as an
attribute?

That's what I am trying to see. I think...(Could be a totally different
thing).

For example -- I am very mystified as to why the error happens at run-time. Almost as if it is trying to serialize/send this to the outgoing HTML,
rather than take care of it in the IDE. Or is that it is hitting the
exception in the IDE -- but not flagging it as it is a different thread --
but that is why the IDE is not saving the changes back to the XML/HTML of
the control?
Voila.

If so -- could it be that the [Serialize()] attribute has nothing to do with what I am working with and should be removed? Or am I missing a second half? Some method that Serialize() will be looking for at run-time?
But yes -- today or this weekend I will try once again -- with an even
simpler TypeConverter -- something that parses a simpler string
"X=100;Y=20 0" or something like that...
Try simpler than that. Just a single string, no parsing or anything else.
First find out if a single string can be persisted, then get fancier from
there.
--
John Saunders
johnwsaundersii i at hotmail

"John Saunders" <jo************ **@notcoldmail. com> wrote in message
news:um******** ******@TK2MSFTN GP10.phx.gbl...
"Sky Sigal" <as*******@xa ct-solutions.remov ethis.com> wrote in message
news:%2******** *******@TK2MSFT NGP12.phx.gbl.. .
I coming unglued... really need some help. 3 days chasing my tail all over MSDN's documentation ...and I'm getting nowhere.

I have a problem with TypeConverters and
storage of expandableobjec ts to attributes in tags (think Style tag ->

Style
object).

The problem that I am chasing is:

Html side:

<CC1:MyContro l id=whatever Stuff="A:Some stuff;B:Another value;C:Bad hair days"/>

The code behind is 3 classes:
* cStuff which is a complex property -- an instance of a 3 string class:
(A,
B,C);
* StuffConverter -- a TypeConverter enherited from

ExpandableObjec tConverter
that converts an instance of cStuff to "key:value;key: value;key;value "... (ie: Stuff="A:Some stuff;B:Another value;C:Bad hair days") and back again. * MyControl -- a generic test control to see how it works.
* Use of the following attributes on various elements, trying to keep
it glued together:
// [NotifyParentPro perty(true)]
//[Serializable(), TypeConverter(t ypeof(StuffConv erter))]
// [PersistenceMode (PersistenceMod e.Attribute)]

//[DesignerSeriali zationVisibilit y(DesignerSeria lizationVisibil ity.Visible)]


It doesn't matter what I do -- this is not working as expected.
There are 2 areas of error:

a) In the IDE, it doesn't serialize the values back to the backend

xml/html
attribute. I can edit both the backend tag -- or the IDE's property and
it
renders it correctly in realtime. In other words it can string->object

fine.
But it won't save it back to the html (serialize).

b) Problem 2 -- when I run it I get a runtime error //Unable to

generate code for a value of type 'XAct.Web.Contr ols.cStuff'. This error occurred while trying to generate the property value for Stuff.

The closest match I have seen to a post/answer on the web is at
http://www.dotnet247.com/247referenc.../18/94895.aspx -- but I am not sure if this applies since that was more complex and had to do with data binding.

Can any kind soul take a look at this? The code below should contain all parts and be able to be dropped into one *.cs file to compile and test

as
a
control.


If I were you, I'd try simplifying the cStuff class down to a single

string,
and with the TypeConverter attributes removed. If that works, try adding

the
TypeConverter attributes, but change the TypeConverter to handle only a
single string. If that works, add one more string...
--
John Saunders
johnwsaundersii i at hotmail


Nov 18 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

11
3382
by: Ceri Williams | last post by:
I followed the excellent MSDN article "Code Generation in the .NET Framework Using XML Schema" to build a substitute for the limited xsd.exe. My code works fine under .NET framework 1.1, but after installing .net framework service pack 1, my code breaks. Below are trivial example files that demonstrate the problem: XSD FILE aaa.xsd ---------------------- <?xml version="1.0" encoding="UTF-8"?>
1
4489
by: Maheal | last post by:
I have been trying to Serialize an object that is the child of another object which is also serializable. Here is the simplified scenario (assume missing code is correct): class One : ISerializable { int x; int y; One() {}; // constructor One(SerializationInfo i, StreamingContext c) { // deserialization
3
3175
by: Aaron Clamage | last post by:
Hi, I'm not sure that if this is the right forum, but any help would be greatly appreciated. I am porting some java serialization code to c# and I can't figure out the correct way to do it. It seems that either I can use default serialization or implement ISerializable. Is there any way to do both (e.g. extend the default serialization). In other words, I want to be able to implement my custom serialization code but call the...
6
1589
by: Larry Serflaten | last post by:
Acording to Bob Powell, serializing an object should be a breeze: http://groups.google.com/groups?hl=en&lr=&safe=off&selm=%23TR3qvCcCHA.2544%40tkmsftngp11 But its not happening, and I can't see why not. When I save the file, it does not have near enough data to contain the object, so, no way will I be able to deserialize it. Can anyone see where I went wrong? No errors are reported, but I see no image being saved, or loaded in. ...
8
7191
by: Marc | last post by:
Hi! I'm calling a web service using C# and a wrapper class generated by wsdl tool. The web service specification contains some nillable parameters which types are Value Types in .NET (long, int, Decimal, ....) and I must to send them as null, and not their default value. It is possible? Is there any trick to succeed it? Thanks in advance,
4
1922
by: Chris | last post by:
I don't know if it's me or .net is just getting more complicated. I am trying to call a sp and pass a parameter and return the data using VB2005. First I couldn't find any docs with samples. Second I tryed this <%@ WebService Language="VB" Class="GetList" %> Imports System.Web Imports System.Web.Services Imports System.Web.Services.Protocols Imports System.Data Imports System.Data.SqlClient
1
1605
by: nickjaffe | last post by:
Hi all, I've spent literally hours trying to figure this one out. I'm re-developing an app from vb6 to vb.net, and I cannot get my XML code working. I've just started using .NET. I'm tired, highly annoyed and this is my problem (I know it is very easy for someone who has done this before): My entire XML file is here - The '<CALL_12260>' tag name is dynamic (the XML file is generated by something else), everything else stays
3
6990
by: LW | last post by:
Hi! I am getting the following error message for my fairly simple web service. I have classes and have two DataSets that reference the same classes. The error is: The XML element named 'GetCustNoResponse' from namespace 'http://mydomain/' references a method and a type. Change the method's message name using WebMethodAttribute or change the type's root element using the XmlRootAttribute.
3
2642
by: Dean Craig | last post by:
I'm working with the new ASP.NET AJAX Control Toolkit. I have a map that has several key areas (hot spots) where when the user hovers over them, I want to pop up a small window with information in it (text, graphics, whatever). I am using the asp:ImageMap control and I can use the asp:circlehotspot control, but that only allows me to have a single hotspot. What I want to do is create a new custom control that derives everything from...
0
9522
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9336
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10111
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
9902
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9765
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8770
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7327
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5364
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
2738
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.