 |
 |
Index ‹ DotNet ‹ Winforms
|
- Previous
- 1
- Winforms >> Problem with forms not properly disposedTo be able to explain what's happening, I will use a short example:
The example is created in VB.Net 1.1.
I have a form with a combobox on it. The datasource is set to a global
datatable object which is instanciated on a vb module.
I instanciate the form, set the datasource, valuemember and displaymember on
the combobox. Then i dispose the form. After the form is disposed and I do
any changes to the global datatable (e.g. clear all rows), the
SelectedIndexChanged event on the combobox is still triggered.
How is that possible?
Any help would be appreciated.
Regards, Rolf F.
- 2
- ADO >> Extra DataColumn's in DataTableHave a strange problem using a sproc to populate a DataTable.
The sproc itself is fairly simple and returns a selection of columns from
three tables, a master table and two additional tables which are joined via
a LEFT JOIN.
The resultant DataTable schema after a fillschema looks good however after
a 'fill' the DataTable has two extra columns at the end which represent the
unselected columns from the two LEFT JOIN tables. These columns do not form
part of the SELECT statement yet are appearing in the DataTable with all
values set to null.
I have tried the same query with a DataReader and see the correct columns
(obviously executing the same sproc from query analyser shows the correct
column set) therefore it appears to be a DataAdaptor issue which is somehow
pulling down these unselected columns. This problem is a right pain as the
I am binding a DataGrid to the DataTable via a DataView and the extra
columns appear at the end of the grid.
I know I could remove the columns via TableStyles however I might change
the database schema at some point and I would need to know dynamically at
run-time which columns were garbage and at the moment I can't see any
properies on these columns which I could process against.
This looks like a bug to me therefore interested if anyone has come across.
Can post sample code (c#) and sproc if anyone would like to see.
Regards
Paul
- 3
- Dotnet >> Smart Client DeploymentI am trying to deploy my Smart Client (it accesses a Web Service) on to a server.It works fine in my machine and also works when others access it from my machine.
But when deployed to another server it does not run and opens the debugger.I tried with Full trust yet it does not work.
Please help me out.
- 4
- Visual C#.Net >> linking to enumeration members in xml commentsi often see in MSDN and third party component providers link to enum
members in their docs. but if i try to do something like <see
cref="MyEnum.Member1"/> i always get an error from the compiler, that
the member doesn't exist or something. how can i link to members of an
enumeration, like i link to methods in other classes?
- 5
- Winforms >> Click Event HandlerI have a C# .net 2003 program that has a processing loop in a click event
handler for one of the form's controls. The loop has a DoEvents
and a Thread.Sleep for each iteration to simulate a lengthy process. I want
to be able to have the user click a cancel button to set a flag to stop the
looping but I have found that the first click on another control while in
the click event of the first control is not caught by the program. Sometimes
takes many clicks to work at all. Does anyone know what is happening here ?
- 6
- ADO >> Serialized Typed DataSet VersioningHello all,
I'm working on a smart client application for my company. The client
uses .NET 2.0 typed datasets to store it's data. It works both in
'online' and 'offline' mode. When the application starts in online
mode it gets a new dataset diffgram from a web service. When it shuts
down in online mode it sends the changes made to the dataset to the
server and gets a new dataset. In offline mode it, when shutdown,
persists the typed dataset to disk as encrypted XML. The next time the
application starts it reads, decrypts, and sends any pre-existing
changes to the server and gets a new dataset.
My problem:
If there are schema changes made to the typed dataset in, say, version
2.0 it may make the locally persisted dataset written in version 1.9
unable to be loaded into the new version and data could be lost.
Because losing data is totally unacceptable to the business in this
case, I've got to find a way to load that older version's dataset and
then convert it to the new version then send it to the server as the
new version's type.
Any ideas on typed dataset versioning?
Thanks for your help,
Scott R. Jones
Coventry Health Care,
sxjones2NOSPAM@cvtIXNAYONTHESPAMAYy.com
- 7
- Microsoft Project >> Microsoft Works 7.0Whenever I click on the "close" button under File, my version of Microsoft
Works 7.0 application closes.
Is there a way, when I click on "close" that the application itself
would remain open ? Especially when I just want to "end" the letter I
was working on, and
start something else (another letter, a cover sheet for fax, etc.....).
Right now, the application closes and I end up on my DeskTop.
Gary@garyst@bellsouth.net
- 8
- Visual C#.Net >> [OT] NUnit QuestionI have a solution containing two projects. Each is a class library. One
is an actual library, while the other merely contains unit tests.
The unit testing project references the library project. It all compiles
fine.
But when I run NUnit specifying the unit testing project DLL as input, all
the tests fail with an error message reading that my library (which the
unit test project references) could not be found.
How do I work around this?
- 9
- Visual C#.Net >> Conservar estado control personalizadoHola a todos:
Estoy intentando hacer un control y necesito mantener el
estado de la siguiente colección que he creado:
public struct ColumnaGrid
{
public string TituloCabecera;
public int LongitudCabecera;
.........
}
[Serializable()]
public class ColeccionColumnasGrid:System.Collections.CollectionBase
{
public ColumnaGrid Item(int indice)
{
return (ColumnaGrid) List[indice];
}
public void Add(ColumnaGrid objColumnaGrid)
{
List.Add(objColumnaGrid);
}
.......}
La estoy intentando guardar en el viewstate pero no hay
forma, uso lo siguiente.
public ColeccionColumnasGrid ColumnasGrid
{
get
{
ColeccionColumnasGrid columnasGrid;
columnasGrid=(ColeccionColumnasGrid) ViewState ["columnasGrid"];
return columnasGrid;
}
set
{
ViewState["columnasGrid"]=value;
}
}
He leido algo de que hay que serializarla pero no se como
hacerlo.
A ver si alguien me puede echar una manita.
Muchas gracias.
.
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
- 10
- Winforms >> Access to the internal property grid combo box controlAbybody knows how the PropertyGrid manage the ComboBox control?
I know to use the TypeConverter so the ComboBox are used if the user clicked
in the property. But I want the access to window control so I can use the
void WndProc(ref Message m) method of the ComboBox.
Thanks
Thomas
- 11
- Winforms >> No Touch Deployment Error QuestionHI,
I am getting this error when I try to create a new instance of one of my
forms.
--
System.Security.SecurityException: Security error.
--
This error is thrown in the CTOR on the MyBase.New() call.
At this stage I have already created and displayed several other forms right
before this step, so it doesn't make sense why this particular form would
fail it is just a Standard windows form, with Menus/toolbars on it. It
doesn't even tell my what kind of security error
TIA,
--
Paul
- 12
- Dotnet >> How do I interface Exchange 5.5 with VB.NETI've searched and searched, but I can't seem to find any documentation on how
to hit Exchange 5.5 with VB.NET. I need to simply log into Exchange and
read the appoinments of the user currently logged into the workstation.
- 13
- ADO >> SqlDataAdapter and DataSetWhen you call Fill method passing a DataSet object and table name, is that
table name associated with the SQL Server table name or just the moniker
that will be attached to the generated table inside thee DataSet's
TableCollection? What if you call Fill() without passing a table name, does
SqlDataAdapter generate some name?
- 14
- Visual C#.Net >> Cannot call Invoke or InvokeAsync on a control until the window handle has been createdHi
I am having this InvalidOperationException with message Cannot call Invoke
or InvokeAsync on a control until the window handle has been created
This is raised when i try to invoke a method with arguments
I need to do this as the method is being called Asynchronously from
elsewhere using delegate's BeginInvoke method.
The form is well created/initialized yet the messages states otherwise.
Cant extract a sample code out of my app.
Let me know if the code is needed for the problem.
All controls on the form are in a panel. The form itself isnt show, but the
panel is shown as a child control of some other panel. Can this be the
problem.
Thank you
rawCoder
- 15
- Visual C#.Net >> string arrayHow to get a list of names from database into string array?
variable name should be string array...
This is the code I use...
public string GetFunctionName(Guid UserID)
{
sSelect = "";
string name="";
if (db!=null)
{
if (nGroupID.Length !=0)
{
for ( int iIndex = 0; iIndex < nGroupID.Length; iIndex++ )
{
if ( iIndex != 0 )
sSelect += " OR ";
sSelect += "GroupID ='" + nGroupID[ iIndex ].ToString () + "'";
}
DataRow[] FGrows = db.dataSetUsers.FunctionsGroups.Select(sSelect);
foreach (DataSetUsers.FunctionsGroupsRow row in FGrows)
{
DataSetUsers.FunctionsRow function =
db.dataSetUsers.Functions.FindByFunctionID( row.FunctionID );
name = function.Name ;
}
}
}
return name;
}
|
| Author |
Message |
aitcha1

|
Posted: Tue Apr 05 15:01:02 CDT 2005 |
Top |
Winforms >> New to WindowsForms
Hi I am learning windows fomrs and started with the sample in the quickstart
tutorials and I am not able to display the control on my aspx page.
I created a control library with one simple control having a panel and a
button. panel's visible property is false by default and I added color to
panel.
On the button press event , I set the visible property of the panel to true
to show the panel.
This control is created as test1.dll and then added to a web application and
added to aspx page as an object and calling with the classid property to
display the control. I have also set the objects property "VIEWASTEXT' .
The problem is that the aspx page does show the placeholder but does nto
display the control.
what am I doing wrong?
Please advice.
thanks
sam
DotNet79
|
| |
|
| |
 |
Michel

|
Posted: Tue Apr 05 15:01:02 CDT 2005 |
Top |
Winforms >> New to WindowsForms
Would that be possible that you mixed up Windows Forms and Web Forms?
The subject talks about windows forms but your message seems to talk about
web forms (aspx).
"Sam" <EMail@HideDomain.com> wrote in message
news:%EMail@HideDomain.com...
> Hi I am learning windows fomrs and started with the sample in the
> quickstart tutorials and I am not able to display the control on my aspx
> page.
> I created a control library with one simple control having a panel and a
> button. panel's visible property is false by default and I added color to
> panel.
> On the button press event , I set the visible property of the panel to
> true to show the panel.
> This control is created as test1.dll and then added to a web application
> and added to aspx page as an object and calling with the classid property
> to display the control. I have also set the objects property "VIEWASTEXT'
> .
>
> The problem is that the aspx page does show the placeholder but does nto
> display the control.
> what am I doing wrong?
>
> Please advice.
>
> thanks
> sam
>
|
| |
|
| |
 |
Sam

|
Posted: Wed Apr 06 08:45:07 CDT 2005 |
Top |
Winforms >> New to WindowsForms
I don't think so.
I went to Quickstart tutorials and there is a main menu section called
winforms.
I started reading that and there is section called "Controls in Internet
Explorer" in the left hand menu.
and if I understand it correctly, they do the exactly same thing as I did
but I am still facing issues and it does not work for me.
Also I went through lot of other sites related to smart client application
development and use in web browser.
I think I am in right track but need some help to get success.
Please guide me if i am doing any thing wrong.
Sam
"Michel Prévost" <EMail@HideDomain.com> wrote
in message news:EMail@HideDomain.com...
> Would that be possible that you mixed up Windows Forms and Web Forms?
>
> The subject talks about windows forms but your message seems to talk about
> web forms (aspx).
>
>
> "Sam" <EMail@HideDomain.com> wrote in message
> news:%EMail@HideDomain.com...
>> Hi I am learning windows fomrs and started with the sample in the
>> quickstart tutorials and I am not able to display the control on my aspx
>> page.
>> I created a control library with one simple control having a panel and a
>> button. panel's visible property is false by default and I added color to
>> panel.
>> On the button press event , I set the visible property of the panel to
>> true to show the panel.
>> This control is created as test1.dll and then added to a web application
>> and added to aspx page as an object and calling with the classid property
>> to display the control. I have also set the objects property "VIEWASTEXT'
>> .
>>
>> The problem is that the aspx page does show the placeholder but does nto
>> display the control.
>> what am I doing wrong?
>>
>> Please advice.
>>
>> thanks
>> sam
>>
>
>
|
| |
|
| |
 |
| |
 |
Index ‹ DotNet ‹ Winforms |
- Next
- 1
- 2
- Microsoft Project >> "resource usage"- view errorHi..
I open a Project and use the reource-usage view. I choose a resource and
look at the actual work by other enterprise Projects. The actual work of
all the other projects is 0 although I am sure thet they are not .
What is the reason for this problem?
Thanks..
- 3
- 4
- Visual C#.Net >> MSMQ triggerApart from designing a timer to examine the queue, I know
that the new version of MSMQ over XP/2003 platform
provides a way called 'MSMQ trigger', anyone had some
experience of using it from programmer's point of view?
thanks in advance
- 5
- Net Framework >> Wrong Byte order when writing with a binary writerHi!
I have the following problem:
I want to write an integer value (e.g. 14) with a binarywriter.
The written file contains the following entry:
0E 00 00 00
I want the entry to be the following:
00 00 00 0E
Does anybody know how to get the desired result (Language vb)?
Thanks in advance,
Marko
- 6
- Microsoft Project >> Project 2007 Not Enough Memory to PrintOur schedule won't print more than once at a time. If we do a print preview,
it won't print at all. The message, "There is not enough memory to complete
the operation. To free up available memory, close programs, projects, or
windows you aren't using, and then try again." I can close all but Project,
and it still won't print. The only thing that works is to close Project,
reopen it, then open the project without previewing it. It prints fine, but
cross your fingers. If it is two pages wide, you won't know until you waste
a ream of paper.
- 7
- Dotnet >> icon for desktop shortcut not workingHi all,
I am attempting to deploy a vb.net application. That is working fine.
I also configured the installer so shortcuts for the application
would appear on the desktop and the user program menu. That's working
too. What isn't working is the icon that I am setting for these
shortcuts. The icon is a .ico file that works fine for the program
itself, and for any shortcuts that I manually create. After I created
the shortcuts of the primary output in the file system editor, I set
the icon property to my .ico file. However but the shortcut s that
result from installation still show your basic, generic "file" icon.
Anybody have any idea why the icon isn't appearing on the shortcuts
created by installer? I followed the .net help file instructions
exactly!
thanks,
Mike Cooper
- 8
- Visual C#.Net >> Windows Services and System.Web.UI.Page.RequestHi.
I am wondering how to handle AbsoluteUri values inside windows
services?
It seems that the absoluteuri is called from the System.Web.UI.Page
namespace
which is not allowed inside a windows service (that I am aware of).
But, I need to call the following inside my service:
Request.UserAgent,
Request.UserHostAddress,
Request.Url.AbsoluteUri
Since I can't use the Request object (in the sense of
System.Web.UI.Page),
how do I access the above values from within my service??
Thanks for your help.
Peter
- 9
- ADO >> Tablemappings and join?Hi,
I have this sql command:
Select recommendation, timescale from audits, auditItems where
AuditItems.ParentAuditID = Audts.AuditID and Audits.SupplierId = '" &
ComboItem.Value & "'"
So what do i set tablemappings to?
I usually do this:
myDataAdapter.TableMappings.Add("Table", "Audititems")
but that doesnt work... Any ideas?
Thanks,
Dan
- 10
- Net Framework >> Updating a windows forms control from a threadI've gotten this question a couple of times in interviews and I don't know
what they are looking for:
How do you update a control's property, such as a textbox.text property,
from a thread, in .NET? It seems to me you just update it normally. What
are the interviewers looking for here? Thanks.
- W
- 11
- ADO >> Column Expression questionHello!
After filling table into DataSet (ds), I added following line ...
ds.Tables(0).Columns("MyColumn").Expression = "<MyFormula>"
... and calculation is working fine - but I need to save this calculated
field value into database also because it makes easier to make SELECT
queries later and it's quite often needed value in many cases too. This
"MyColumn" is as a field in database too, and is used too when making
DataAdapter in SELECT-query.
When trying to save, I'll get error message ...
"The column mapping from SourceColumn 'MyColumn' failed because the
DataColumn 'MyColumn' is a computed column."
Is it possible to save computed column values into database table at all?
--
Thanks in advance!
Mika
- 12
- Microsoft Project >> Printing in MS Project 2007Does printing in MS Project 2007 just not work like it did in 2003.
I am having a terrible time getting all my info on my gantt chart to print
and it will not do a "fit to" at all.
Starting to wonder if I should just go back to 2003.
Extremely frustrated.
- 13
- Visual C#.Net >> Running code compiled in Framework 1.0 with Framework 1.1Hello,
We have an application written using Framework 1.0 (VS2002), we have
deployed it to a server that only has Framework 1.1 installed, the
client does not want to Install Framework 1.0 because it might have an
impact with other .Net applications written using Framework 1.1, so
rather not getting into a debate with the client I have agreed to
investigate if we could get our application to run using Framework 1.1
without recompiling it. Is this possible, if so how?
Thanks,
- 14
- 15
- ADO >> Convert System.Transactions.Transaction.Current to System.Data.Common.DbTransaction?I have been trying to figure out a way to convert
System.Transactions.Transaction.Current to System.Data.Common.DbTransaction
with no luck so far. Is this even possible? I am using the Enterprise
Library, and several of their calls take in a transaction, but it is of type
DbTransaction. I have tried straight casting, but it is not compileable.
DbTransaction transaction = (DbTransaction)Transaction.Current;
Error 1 Cannot convert type 'System.Transactions.Transaction' to
'System.Data.Common.DbTransaction'
|
|
|