|
Infragistics Controls can do this...
|
|
|
|
|
|
Hi,
I wish to develop a WEB control in .NET ( or know of any such existing control) which works similar to the SQL Server table's data entry sheet.
to be more elaborate:
i will be specifying number of colums for that control.
2 rows with those many columns appears.
i fill in the data. and when i start filling the 2nd row
a 3rd empty row should appear.
|
|
|
|
|
|
i want to install visual studio .net, but i have a problem, i can`t install ie service pack, i don`t have connection to the internet. is it really true that u need to connect to internet. i`m running the update, copying from a friend. thanks
|
|
|
|
|
System requirements for VS.NET, full page here: http://msdn.microsoft.com/vstudio/productinfo/sysreqs/default.aspx[^]
Visual Studio .NET 2003 can be installed onto any of the following systems:
Microsoft Windows® Server 2003
Windows XP Professional
Windows XP Home Edition¹
Windows XP Media Center Edition
Windows XP Tablet PC Edition
Windows 2000 Professional (SP3 or later required for installation)
Windows 2000 Server (SP3 or later required for installation)
The install can update some packages from the Internet, but it is not required.
R.Bischoff .NET, Kommst du mit?
Great Freeware -> Abilon - Rss Reader | Zip Genius | SmartFTP
|
|
|
|
|
Hello guys,
Say, i need a little cheering up here...
I've been programming in .NET for over two and a half months now. And at this point i've come to the conclusion that i doubt .NET more than i doubt myself. IMHO a pretty dangerous situation. Back in mfc-days i used to spend two days on a problem before turning to internet to see if a MFC bug was involved. Now, in .NET, i turn to internet to see what bugs i can expect before i even put as little as a textbox on a form. Is this normal??
I absolutely adore C#. No doubt. And I must admit that .NET can be an incredibly powerful platform. Moreover, i'm convinced that it once WILL be. So, i will try to hang on to it as long as possible. But then again... boy... am i glad i skipped version 1.0!
Please tell me i'm wrong!
Ok, a few examples:
- A textbox without a border cuts off the lower parts of characters like y, p and g. Mainly in fontsize 11 with AutoSize turned ON.
- Listviews don't display item images when put on a usercontrol in a usercontrol. And the headers have serious painting errors.
- Listboxes don't always fire their click events.
- Tabpages cannot be disabled or hidden.
- When i move a project to another location, i always do a complete rebuild. Of the project itself and of any other projects involved. Compiles with no errors. Two weeks later, for no apparent reason, the program crashes on the exception that there are no appropriate resources compiled into the control. Rebuild all... no errors! Run it... and crash!!
- Every now and then controls dissapear from the designer. Takes a few rebuilds and IDE restarts to get them back on... most of the time... yet not always.
- I need a virtual listview... nope. The solution? Unwrap the .NET control piece by piece until it is stripped to the bare Win32 control and use the API and messages like we used to. Only... this time lookup the old header files to get all the constants, change "defines" into "const int", don't forget the WndProc and spend another hour packing all the structs into the right marshalling format. ALL my controls have at least two platform invokes!! And this is the only solution that is proposed over and over again. Everywhere you look for answers, they always boil down to "strip the .NET part and start programming like you used to...". But is that a future-stable solution?
- Some scrollbars are XP, while others stay Win95. Or was that Win3.11? And scrollbars tend to lie if you ask them if they are visible or not.
- A simple picturebox has no scrollbars!!
- When i start my old MFC software, ALL the controls and dialogs obey to the XP themes and colours. But not my .NET application!!?? I know, i know...
Application.EnableVisualStyles();
I DO that! Nevertheless, textbox backgrounds fail, and some dialogs too! While the least i had expected was to have visual consistency!
And these are only a few among many.
.NET is supposed to be the platform that rockets you into writing stable and gui-intensive software. Well... maybe... once it's debugged.
Ok, i'll stop nagging. Just please, tell me i'm wrong!
Thanx for bearing with me
Grtz,
Philippe
Philippe Dykmans
Software developpement
University of Antwerp
|
|
|
|
|
I think you have some valid complaints, I have some similar. However, .NET has really evolved programming in terms of having a really nice library (BCL) and OOP friendly way to design/develop n-tier applications.
I would bet that Microsoft will address many bugs/issues in future releases.
Happy coding.
R.Bischoff .NET, Kommst du mit?
Great Freeware -> Abilon - Rss Reader | Zip Genius | SmartFTP
|
|
|
|
|
Yes, that's true. .NET is a giant step in the good direction. When i wrote my complaint message i just had a terrible "buggy" and frustrating evening and felt the need to ventilate. Thanx for your reply!
Happy coding too,
Phil
Philippe Dykmans
Software developpement
University of Antwerp
|
|
|
|
|
I'm creating a prototype and have a simple control that I've derived from System.Windows.Forms.UserControl. I intend to be able to use this control in both a windows form client as well as to imbed it in a web page.
In order to get data into the control, I'm opening a tcp connection to my app server and requesting data, I am very familiar with tcp and have no problems there. Everything is working perfectly when I put the control into a windows form app.
My issue comes up when I plug the control into a web page. Now, I have configured the .NET CAS properly to grant appropriate permissions to the code using strong name evidence so I don't think I have a security problem with CAS.
But, I send in the tcp request from the web page, I am able to connect (I see the syn - syn/ack - ack in my sniffer) but then several requests are issued from my host to NETLOGON and some to port 445 (Microsoft directory services). Eventually (over 90 seconds later), my request completes (with my host sending psh-ack and getting fin-psh-ack) as expected. I just can't understand why the control is querying port 445 or what is going on. I don't see why my request is taking 90+ seconds from the time my connection opens until my request goes to the server...??
Any of you run across this before or have any suggestions?
thanks
Tim
|
|
|
|
|
Hello,
the Windows Service Manager provides some recovery options. In the properties of a service, you can select the computer's response if the service fails. For example, First failure >> Restart the Service. How can I announce the Windows Service Manager, that my own service fails, so that the recovery options start the work? Has anyone a code example?
Thanks in advance
Best regards,
Jan Lehmann [Germany]
|
|
|
|
|
If your service throws an unhandled exception, the SCM will handle it.
If your service terminates abruptly (such as it's process being killed), the SCM will handle it.
Process.GetCurrentProcess().Kill();
A really good way to get Windows to know your app failed most heinously is to use Interop and RaiseException and pass EXCEPTION_NONCONTINUABLE for the dwExceptionFlags parameter.
Ian Mariano - Bliki | Blog
"We are all wave equations in the information matrix of the universe" - me
|
|
|
|
|
It's also probably a very good idea to log the service failure in the Windows Event Log, or publish it to WMI.
EventLog log = new EventLog(...);
log.Write(message, EventLogEntryType.Error);
Process.GetCurrentProcess().Kill();
It should be noted that forcibly terminating an application without at least attempting a graceful shutdown / release of resources is a bad idea. If possible, cleanup what you can before Kill ing the process.
Ian Mariano - Bliki | Blog
"We are all wave equations in the information matrix of the universe" - me
|
|
|
|
|
Hi, I'm using the following code to get the Machine name in an app
System.Environment.MachineName
On most computers this works fine but on one of our testers computers (machine is a windows 2000 desktop pc, not a networking share either), it's throwing the following exception.
Request for the permission of type System.Security.Permissions.EnvironmentPermission, mscorlib, Version = 1.0.50000.0, Culture = neutral, publicKeyToken = blahblahblah failed.
I have no idea what is causing this. I tried messing around with the .Net Configuration. Figured mscorlib didn't have permission rights.
also.........
I can't get any computer information in general. Trying to do some WMI core queries as well from code and getting a "Security Error" Exception. Below is the code that gets the disk size.
public string GetsDiskSize(){
ManagementClass cimobject;
ManagementObjectCollection moc;
cimobject = new ManagementClass("Win32_DiskDrive");
moc = cimobject.GetInstances();
try { // BIOS INFO
foreach(ManagementObject mo in moc){
this.m_sDiskSize = GetSystemValue("Size",mo);
mo.Dispose();
break;
}
}
catch(Exception ex){
System.Windows.Forms.MessageBox.Show("GetsDiskSize " + ex.Message);
cimobject.Dispose();
moc.Dispose();
return ex.Message;
}
cimobject.Dispose();
moc.Dispose();
return this.m_sDiskSize;
}
|
|
|
|
|
Hi,
Try using
[ Assembly:EnvironmentPermission(SecurityAction.Assert)]
attribute for your class...
regards,
Aryadip.
Cheers !! and have a Funky day !!
|
|
|
|
|
|
Decided to make the jump and have my next product be entirely .NET, and want to try to utilize best practices throughout.
One thing that sounds promising is the Enterprise Instrumentation Framework, several of the .NET application blocks build on or interface with it. But I can't find any overview guide, just the help file and a few webcast type things on MSDN. It seems strange... does anyone know if there is a guide out there that I just can't find like for the other application blocks?
Thanks!
|
|
|
|
|
If any one knows about install shield please help!
I am using Install shield developer 8 SP2 evaluation. I need to create setup such that it checks for the version of IE6, updates if necessary and reboot. After reboot the setup continues in the normal fashion. Then it checks for DotNet Framework 1.1 and MDAC 2.8, Install in necessary. If os is win 98/ME it should reboot before continuing in the same manner as above.
Please assist,
Its Urgent.
Regards,
Rahul.
|
|
|
|
|
i think ur question would be better suited on the InstallShield forums over at their website. Surely they have forums?
|
|
|
|
|
Hello ..
I am Omar Ismal from Egypt
I think that what you need are existing options in the installshield ..
The advantage you will have in installshield is its nice new XP interfaces but if you failed to find it
I advise you to use "Inno Setup" or "Setup Factory"
- Inno setup is more controllable because you write its script using PASCALE language so you can search for the .Net FrameWork by your self as a folder in the program files or search for the .Net framework Registry key
- in Setup Factory these are options you can do it by the wizard
I did the two samples before if you are interested send me again and i will send you the samples
But I wanna know from you what the .Net application needs to work in Windows 98 environment known that IE6 is installed and the .NetFrameWork installed ?
|
|
|
|
|
Hi,
My problem is as follow:
I want to show a dialogbox in Modeless mode from a callback function which is registered for an event with my own-defined eventhandler. This event handler maintains a queue and processes on the FIFO basis. I am using following code for creating/showing dialogbox:
Testing ss = new Testing(); // Where Testing is tht Dialogbox class
ss.Visible = true;
ss.Show();
ss.Focus();
ss.Refresh();
But what I get is a NotResponding form which is not even completely drawn. The content of the dialog box (buttons) are also not drawn on it.
If I use the same code from any other method of the class for instance Main(), this dialogbox shows up properly and works fine in modeless mode. Also, when I make this dialogbox modal in the callback function, it works fine. I have also tried making this dialogbox instance global but din work.
Can some one help me in this regrad?
Thanks
Bilal Farooq
Bilal Farooq
|
|
|
|
|
Hi,
As far as I guess this is happening because .Show() method is not a blocking call. Thatz why the control doesn't remain in the new form. Before the form gets completely painted the control of the application comes back to the place from where it had called the new form and continues execution.
The probable solution may be ,
a) Make the form a modal dialog.
b) Execute the queue related stuff in a seperate thread and use inter thread notification to invoke the modeless dialog from the main thread.
Hope this helps you...
regards,
Aryadip.
Cheers !! and have a Funky day !!
|
|
|
|
|
Thanks a lot for help.
I'll try this second solution because modeless dialogbox is my requirement
Thanks
Bilal Farooq
|
|
|
|
|
Hi,
I wish to develop a control ( or know of any such existing control) which works similar to the SQL Server table's data entry sheet.
to be more elaborate:
i will be specifying number of colums for that control.
2 rows with those many columns appears.
i fill in the data. and when i start filling the 2nd row
a 3rd empty row should appear.
|
|
|
|
|
hi,
I guess you can use GridView control for doing the same job without reinventing the wheel. Instantiate GridView control with the specified number of rows and columns. You can go thru the article :
http://www.c-sharpcorner.com/Code/2002/May/EditableGridView.asp
You may also use DataGrid control for doing the same. I guess itz editable by default.
regards,
Aryadip.
Cheers !! and have a Funky day !!
|
|
|
|