vgrigor's Q&A profile
Windows Forms StatusStrip - SizingGrip problem
Hi I've added a StatusStrip control to a form. Within this I added a ToolStripProgressBar , and set it's Alignment to "Right". Now I have the progress bar next to the SizingGrip. If I now set "SizingGrip = False", the sizing grip is removed, but there still is an empty area left. I now have an ugly space between the progress bar and form border. How do I get rid of this area Kind Regards If I set the RightToLeft to true, I get the empty area to the left (where I have a Label control). So it RightToLeft does not solve the problem. If you turn on 1. RightToLeft = False (StatusStrip) 2. SizingGrip = False (StatusStrip) 3. LayoutStyle = HorizontalStackWithOverflow (StatusStrip) 4. ...Show All
SQL Server Earlier question on ODBC compatibility
Hi Chris: I am sure as you are aware only data adpaters in SQL 2005 out of the box are .NET Frameworks, in your answer to Stoobs, you state the ADO.Net framework does not have all the APIs. We're experiencing the same problem with the product and ODBC. Unfortunately we have a legacy MUMPs DB (that KBSQLODBC layer sits on top of, its a flavor of SQL from Knowledge Based systems) that our vendor is not going to update. Given that, how can we address the ODBC driver problem with SQL 2005 Is there going to be an update to ADO.NET Thanks, dfreshman ADO.Net v2.0 hs new APIs to support metadata retrieval. Note that you can transfer data via your existing ODBC driver and the .Net managed provider ...Show All
Visual Studio Express Editions trivial question : passing data between application forms ?
i am using this approach to pass data and variables between application forms ----------------------------------------------------------- form2 class public Form2( string strTextBox) { InitializeComponent(); string strPass = strTextBox; } form1's button click event handler private void button1_Click( object sender, System.EventArgs e) { Form2 frm= new Form2(textBox1.Text); frm.Show(); } ------------------------------------------- In form2 how to make the variable strPass visible by other methods and fucntions in this form so i can use it i tried to use "public" keyword as i know but it produces an err ...Show All
.NET Development The best way of storaging images on server
Hi i am beginner in net developing, and since what have a common question. Supposed what my web page have an set of images, which will be displayed in browser for user. Also intended what to this set will be supplied other images enough frequently. And the question is in which manner i should store this images on server part - in database, or simplesmente in separated files together with pathes to those files in database. What is the best solution. And other question if i yet sorage image data in database, what the best practice for one retriving from database and showing one for user (best for me supposed more convenient and rapid for developing). I mean is existed an asp control, which admit to show image from database directly (w ...Show All
Visual Basic "like statement" to compare file directories
(broke hand, excuse the typing) i have a text file being read by our data management software that is written in vbscript. i have a set of "if thens" that determines what type of id each of our records recieves in the database. these work properly, but i need to add to it and narrow thing down based on a file path. if the file i am entering exists in a certain folder, or any subfolders, i need it to assigne an id based on that, and if not, then it would go on to the next elseif. below is what i have, and i know that the first two lines are written wrong (written in sql), but it might help to clarify what i am trying to accomplish. the rest of it i know works and is what i currently have running, i just need to add this one other option to ...Show All
SQL Server Grand Total Needed
I have two subreports (Revenue and Expense) that each have subtotals. This works just fine, but I need a Grand Total that would sum the two subtotals. How would I go about doing this So it looks something like this: Revenue Report (matrix) Subtotal Expense Report (matrix) Subtotal <~~~~ Need Grand Total here. Greg, Your order and group by use by like to following: select BLAH,BLAH,BLAH FROM BLAH,BLAH WHERE BLAH AND BLAH AND BLAH UNION ALL select BLAH,BLAH,BLAH FROM BLAH,BLAH WHERE BLAH AND BLAH AND BLAH GROUP BY BLAH, BLAH, BLAH ORDER BY BLAH ...Show All
Windows Forms How to create Automated E-mail in asp.net
hi all, In PHP there is ready made function is available to send the mail code in PHP is This is mail code in php $to = "xyz@yahoo.co" // who is sending mail. $from = "abc@rediffmail.com" $sub ='subject of the mail' $message = 'message of the mail'; $headers=$from; mail($to,$sub,$message,$headers); Do we have certain functions in C# or we have to use SMTP server for that. code in detail.... Use the MailMessage class in the System.Web namespace for VS.Net 2002 & 2003. For VS 2005 use the MailMessage class in the System.Net namespace. ...Show All
Visual C# Understanding Threading
I am trying to understand threading... its been hunting me ever since c and pythong.. and now c# and I can't hide from it anymore... I was wondering if some one can show me a really simple threaded snippet and explain it to me if ok... as we speak Im creaing a pdf file about threads.. but It's being a pain. I need some baby steps here.. and this is one of the only place to look for help.. besides other forums that I know. Hi, First to make u clear, threading is a mechanism by which many processes run simultaneously. For example in windows we can run word,excel and many more programs at the same time. This is possible because of threading. But in your case i dont see any necessity of threading. ...Show All
.NET Development how to update , insert , delete in ODBC dataset ( foxpro database file )
I wrote a Visual Foxpro application, using VFP database file. success to publish the data in web using Visual Web Developer 2005 Express, but it can only Read those data ( but do not know how to delete or update or insert the data ) pls help me to explain how to work with this .. Hi! I've seen your file and found that you are not passing any parameters. You must pass parameter for insertion,deletion and updation. That can be done by selecting the DataSource and look for Insert,delete and update query in property windows and there you add query and its parameters. Cheers. Sohail. ...Show All
Windows Forms Disable AutoScroll for MDI Window
Hi, I am setting the AutoScroll property to false, for a form which has IsMdiContainer property set to true. I am coding in c# and whenever any of my controls move out of client area, the parent automatically displays a horizontal/vertical scrollbar. Could anyone please suggest on how to disable scrollbars for the MDI parent window. Thanks in advance. With regards, ...Show All
Windows Forms Printing DatagridView
Hi, I'd like to print only certain columns of a DataGridView. How would something like this be done I couldn't find any code examples. Thanks The MSDN library provides the following guidance for printing a DataGrid... This example demonstrates printing a DataGrid control. Example private void printGrid_Click(System.Object sender, System.EventArgs e) { printDocument1.Print(); } private void printDocument1_PrintPage(System.Object sender, System.Drawing.Printing.PrintPageEventArgs e) { PaintEventArgs myPaintArgs = new PaintEventArgs(e.Graphics, new Rectangle(new Point(0, 0), this.Size)); this.InvokePaint(dataGrid1, myPaintArgs); Is it planned to have this work for the DataGridView I have tried to ...Show All
SQL Server Linking Access to SQL Server
Hi, I have an existing Access DB with many Tables, Forms, Queries and Reports. I need to put a SQL Server Back end on this database. Do I need to code a mirror images of these objects or is there some way to export these into SQL Server Also, where do I deal with assigning usernames and passwords Access or SQL Server. I need to have different views for different users based upon their rights (user, admin) Thanks, Mark There is a full upsizing process that will handle all this for you. Read more here: http://www.microsoft.com/sql/solutions/migration/access/default.mspx ...Show All
Visual C++ Doubt about build
Hello, i have been using visual c++ from 2 weeks, and this have been my first time using. I have alwas write c++ code with other aplication, and i have this doubt: what it’s the meeanig of buil a proyect this debug or release configuration, i want to know what it’s the difference between these two. Can someone tell me debug build has compiler optimizations turned off, and you can step through the code in the debugger. release build is what you will ship to your customers once you finish your product. ...Show All
SQL Server My Query is broken and I don't know how to fix it...
I am trying to set up a filtered paging ObjectDataSource for a gridvoew control. My code works, my query doesn't... This is OK: Get all rows of data: "SELECT UCO, country_code, country_name, enabled, concurrency FROM CountryCodes " Returns all records as expected This is OK: Getting rows of data with no Filter: "SELECT UCO, country_code, country_name, enabled, concurrency FROM (SELECT ROW_NUMBER() OVER (ORDER BY country_name ) As Row, UCO, country_code, country_name, enabled, concurrency FROM CountryCodes ) As TempRowTable WHERE Row >= 0 AND Row <= 10" Returns expected data This is OK: Making sure my WHERE filter works: "SELECT UCO, country_code, country_name, enabled, concurrency FROM CountryCode ...Show All
Visual Studio Express Editions Getting user permissions from a SQL Express database?
Hi, First of all, good year to everyone. Secondly, is there a way to read the users permissions from the database In my app there are areas who are to be only visible to admins, the rest of the users shouldn't see them. I wanted to avoid creating a table for keeping the users and their permissions. Is there a function in C# that allows for such a thing Cheers, Tiago Hi Figo Mei, thanks for your reply. In SQL Express you assign users to different roles or permissions. Basically I have users that can read the data in the DB and I have users who can read AND write (who are the "system" admins). I wanted to know if there was a way that when you create the Connection (using OleDB, SQL native or wh ...Show All
