E.T.'s Q&A profile
Windows Forms Why is Form Height 31 pixels when minimized?
hi, i have my main form starting minimized. I programatically increase the size of the form in response to certain events, but unfortunately the "Form.Height" property is only 31 pixels when minimized, instead of about 250 which is what it is when restored. Fair enough the form is not visible on screen and as such may not have a 'height', so this is probably "by design" but i'm wondering is there a way to read what i call the 'true' height of the form, regardless of whether it is minimized or not thanks in advance for any help tim. Yes, check the window state. You can monitor the Resi ...Show All
SQL Server Can't precompile script
Hi, with a script task I get an error "This task is configured to pre-compile the script but the binary code is not found. Please visit the IDE in Script Task editor by clicking Desing Script button to cause binary code to be generated". Well, if I do so the error doesn't disappear. The only chance I have is to switch of precopilation, which is quite a performance issue... I have no idea where this error is comming from... The script is quite easy, just some string and file operations (find out file change date using system.io)... Any idea as i guessed...SP1 solves this problem...worked for me... i had a new local ...Show All
.NET Development I don't understand an SQL statement
I got this code in a program that works I links proper to an SQL server but I got a problem with the SQL statement, theres a Db named : oroNails and a Table named Colors with coloms like : " Id, name , htmlcode , ... " Code ------ Dim oCmd as SqlCommand oCmd.CommandText = sSql the sSql can be : "admin_colorsGetAll" or "admin_colorGetById" anyone who can explain me whats this SQL statement does thx They are stored on the SQL Server that your accessing. You'll need to use the tools that come with SQL Server to view and adjus ...Show All
Visual Basic Console Applications and Event Handling?
I am porting an existing VB .NET application into a console (no-gui) application so that it may be run without any user input other than command line parameters. In doing so I do not seem to get any Event handling mechanism. Is this framework only provided by the Form library For example, I am using a MSComm control for serial port access and I want to handle the OnComm event. When running my console application I do not see any events... Any help would be much appreciated. Thanks in advance. Jay 2003 VB .NET Standard I need to use the following for event handling in console applicaiton main thread: System. ...Show All
Visual Studio Express Editions can't install SQLServer2005express
I tried to install VS 8 and get this error from SQLServer2005 express: Product : Microsoft SQL Server 2005 Express Edition Product Version : 9.1.2047.00 Install : Failed Log File : C:\Program Files\Microsoft SQL Server\90\Setup Bootstrap\LOG\Files\SQLSetup0001_._SQL.log Last Action : InstallFinalize Error String : Failure creating local group SQLServer2005SQLBrowserUser$.. Error Number : 29511 My OS windows xp prof. It was simple.I created local net work. (Network setup wizard.) Then added my account to Network Configuration Operators. That's it. And now I have ...Show All
Windows Forms ListView Question
Hi folks. I've been playing around with ListView's for the first time and I'm having troubles getting my head around ListViewSubItems. Basically, I'm wondering if there's any way to add and/or change a sub-item by just specifying it's column and row numbers listView1.Items[Row].SubItems[Column] Will give you the ListViewSubItem at row/column. Keep in mind that the SubItems[0] actually is ListViewItem itself. To add you will have to do it in the order you want them to appear. listView1.Items.Add("Row1"); listView1.Items[0].SubItems.Add("Sub item 1.1"); listView1.Items.Add(&quo ...Show All
Visual C# Image/Button Pt.2
Ok. I've already had this question answered and I am very grateful. But what I want is still not accomplished. What I want is kind of like putting a square as the background for a form. And changing the transparent key properties to make the form as if it had rounded edges. I want the samet thing with a button. For example, say if I wanted to put a circle for a button. How would I do that. Also, I would like to kind of look like flash. Once the mouse hovers over the button, for it to change color. I've seen many programs like this, and figure it is posible. Please, can someone help. ...Show All
Windows Forms Displaying Int values as Hex in datagridview
Hi all, desperation has forced me to my first post! I am writing a network analyzer and need the option to display my int variables as Hex values for a number of databound datagridviews, (a la) debugger. I can ToString("X") but it would mean having a string equivalent for all my ints! As I am binding to bindinglist of a managed class.(bindinglist<class^>) C++ Started using .Net only 4 months ago so am hoping that my lack of knowledge is the problem to finding an easy solution. While I am asking, how can I force zero filling on conversion to Hex, should ToString("4X") give me 4 Hex Digits. It would ...Show All
Audio and Video Development I need a little help here...
I did not know where to post this, so i posted it here. I am running a Windows 98SE and I only have a 16 bit color thing. I would like it to be better, but I do not know how to do so. I can not get Active X on this comp for some reason, but I would like 256 color. Any help will be greatly thanked. I do not know what kind of graphics or video cards I have. all I know is it is a Standard PCI Graphics Adapter (VGA). I want the 256 color realy bad. Thank you for all of the help. ~Tyler Hi Tyler, The right newsgroup where you should post your question is at http://www.microsoft.com/communities/newsgroups/list/en-us/default.aspx ...Show All
Windows Forms "Cannot find keycodev2.dll or invalid keycode"
Hi, I created winforms and was able to deployed it using NTD. I used VS.Net 2002 and VB.Net. I have crystal reports in my forms. Everything is working except when i tried to view the reports in client (Win 2000, installed w/ .Net framework only not VS.Net 2002). I got this error: "Cannot find keycodev2.dll or invalid keycode" & ...Show All
Windows Forms adding button to PrintPreviewDialog?
Any way i could add my own button to the PrintPreviewDialog class and handel it as soon as clicked. WHOOPS - the above code does work. My sincerest apologies. In addition: thanks. This will solve my problem rather simply. :-) ...Show All
.NET Development How to add a node with prefix?
Hi, I'm a C# newbie, and I'm trying to create an "apsx" file on-the-fly. I had some success, but my code isn't working when I try to add a node with prefix, like "<asp:Menu>". Basically, I am doing something like this: XmlDocument xmlDoc = new XmlDocument(); ... xmlDoc.CreateElement("asp", "Menu", null ); xmlDoc.Save("myAspx.aspx"); The code works fine. No exception appers, and in fact, the file is generated. But, when I open it, it looks like: <Menu> </Menu> It ignores my prefix. What's wrong It's correct to use XmlDocument to do something like this TIA, Bob I think you meant to say you got: &nbs ...Show All
.NET Development TCP Sockets checking aliveness
Hi, I have an app where it is critical that any connection interruption between the server and the client is immediately noticed. Right now I'm using a "ping packet" that I send to the server and the server sends it back. If it's not returned within time x and the server hasn't received a new one within time x the client assumes it's disconnected or the server disconnects the client. However, since I'm sometimes sending large objects over the socket which can take a couple seconds to transmit I can't send a ping packet every 3 seconds or so as it then would time out since the socket might be blocked while sending a larger object. H ...Show All
SQL Server A Connection cannot be made
Hello I try to build my cube on localhost by VS2005, while the data source is on the other machine. When I deploy the cube, it gives me the following error msg: The project could not be deployed to the 'localhost' server because of the following connectivity problems: A connection cannot be made. Ensure that the server is running. To verify or update the name of the target server, right-click on the project in Solution Explorer, select Project Properties, click on the Deployment tab, and then enter the name of the server. I tried to fix it by following the instruction, but it does not work. I think my target server s ...Show All
Visual C# Speech SDK
Can someone point me in the right direction for using the Speech 5.1 SDK You will get some help from following URL http://www.c-sharpcorner.com/SpeechNet.asp ...Show All
