2,245 Posted Topics
Re: Hey serkan :) I would offer to help but it looks he doesn't need it Please mark this thread as solved if you have found an answer to your question and good luck! | |
Re: I posted a code snippet of a login screen: [url]http://www.daniweb.com/code/snippet217409.html[/url] That code will address retrieving and comparing passwords. | |
Re: [QUOTE=William Hemsworth;995623]Haha :D anyway, I don't have a problem with it at all, couldn't you allow the user to choose whether he/she wants to show up as a visitor on somebody's page? I personally found it interesting to see who had visited my page, so I liked it.[/QUOTE] How would … | |
Re: If you're deleting it visually then there is no need to call .Update() and .Fill() on the table adapter. Just call .Delete() on the row and then .AcceptChanges() on the dataset to finalize the delete without persisting the changes. | |
Re: You can also embed it as a resource file in your project | |
Re: Upload a sample project demonstrating this behavior | |
Re: [QUOTE=serkan sendur;995700]No i posted it to here to have Scott involved in the conversation. [COLOR="Red"]Today he is in good mood[/COLOR]. And also i really wonder how c# deals without having header files, if that can be done, why c++ has them, of course it cant be for bothering the programmer.[/QUOTE] … | |
Re: [code] private void dataGridView1_CellPainting(object sender, DataGridViewCellPaintingEventArgs e) { if ((e.RowIndex == -1) || (e.ColumnIndex == -1)) return; Brush b; if (!dataGridView1.Columns[e.ColumnIndex].DefaultCellStyle.ForeColor.IsEmpty) b = new System.Drawing.SolidBrush(dataGridView1.Columns[e.ColumnIndex].DefaultCellStyle.ForeColor); else b = new System.Drawing.SolidBrush(Color.Gray); e.PaintBackground(e.ClipBounds, true); e.Graphics.DrawString(Convert.ToString(e.FormattedValue), e.CellStyle.Font, b, e.CellBounds.X, e.CellBounds.Y - 2, StringFormat.GenericDefault); e.Handled = true; } [/code] [edit] DoubleD's way to go … | |
Re: This should do it: [code] using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; namespace daniweb { public partial class frmReservations : Form { const int PRICE_PER_DAY = 115; public frmReservations() { InitializeComponent(); } private void frmReservations_Load(object sender, EventArgs e) { textBoxDepart.Text = … | |
Re: 1. That could be many things but likely they're talking about source control so you have a copy of the exact source code at each version 2. In the old days when you had a DLL named "file1.dll" that had to reside in C:\windows\system32\file1.dll you were screwed if Application A … | |
Re: Why not just take a picture of what is behind the form and show that, mimicing transparency? | |
Re: No, it is not required to have and depends on the shell you're using. For example bash uses .bash* prefixed files: [code] sk@sk:~$ ls -al .ba* -rw------- 1 sk wheel 148196 Sep 24 14:18 .bash_history -rw-r----- 1 sk wheel 509 May 9 2005 .bash_profile -rw-r----- 1 sk wheel 1093 Oct … | |
Re: What about if you made the datetime picker invoke the popup date selector on the first click of the cell instead of showing the editor glyph on all of the columns? I use a third party set of controls that provides the behavior you're describing -- but implemented the way … | |
Re: Why don't you call [icode]Process.Start()[/icode] instead of using their interop for opening it? If all you're doing is executing it then just start the process. | |
Re: Please use code tags when posting code: [noparse] [code] ...code here.... [/code] [/noparse] As far your question -- I have posted a C# Windows Form login screen code snippet at: [url]http://www.daniweb.com/code/snippet217409.html[/url] You can port the logic over to VB.NET and away you go :) | |
Re: >> I have created XYZ.com zone and added two NS RRs which are secondary servers. I am forced to give my primary NS details when creating SOA record. Whether the primary NS RR, which we have given in the SOA RR will be safe for the internet (threats) or not? … | |
Re: Try using this: [code=text] <asp:SqlDataSource ID="shownMovie" runat="server" ConnectionString="<%$ ConnectionStrings:MovieTix %>" SelectCommand="SELECT movie.title, movie.category FROM [movie],[session],[theatre],[cinema] WHERE cinema.cinemaLocation=theatre.cinemaLocation AND theatre.theatreNumber=session.theatreNumber AND session.movieID=movie.movieID AND (movie.[movieID] = @movieID)"> <SelectParameters> <asp:ControlParameter ControlID="GridView1" Name="movieID" PropertyName="SelectedValue" Type="String" /> </SelectParameters> </asp:SqlDataSource> [/code] | |
How do you report a group as spam? [URL="http://www.daniweb.com/forums/group8.html"]Guia de Campinas[/URL], [URL="http://www.daniweb.com/forums/group9.html"]Guia de Santos e Litoral Sul[/URL], [URL="http://www.daniweb.com/forums/group7.html"]Guia Rio de Janeiro[/URL] were all started by [URL="http://www.daniweb.com/forums/member477267.html"]caldascaio[/URL] with zero posts. The group [URL="http://www.daniweb.com/forums/group6.html"]mass product distribution[/URL] was started by [URL="http://www.daniweb.com/forums/member610697.html"]makingideas[/URL] who is banned. | |
Re: Invert the match: [code] awk '{ FS="\n" ; RS="define" } $RS !~ /check_chris/ { print }' file [/code] | |
Re: Why don't you use built in .NET encryption routines instead of Org.Mentalis.SecurityServices? Unless there is a specific reason then you could change it over to Microsoft's... I have a sample login form code snippet posted at: [url]http://www.daniweb.com/code/snippet217409.html[/url] The method contains encrypt and decrypt routines that I have deployed to hundreds … | |
Re: Post the output of [icode]find ./ -type d[/icode] so I can see some sample data | |
Re: Create a [icode]List(Of Integer)[/icode] with values 1-100 and get a random number 0-List.Count-1, and when you pull out the number, remove it from the list. This way you will be accessing a random index of the list and after you consume the question remove it from the list. | |
Re: You can use the optimistic concurrency option of typed datasets in .NET which will throw an exception if any of the data has been modified since you performed a Select on the table which stops concurrent modifications. I have also done what you have with manually locking a record by … | |
Re: Another good article: [url]http://www.c-sharpcorner.com/UploadFile/rmcochran/csharp_memory01122006130034PM/csharp_memory.aspx[/url] | |
Re: Test the value before you use it [code] if (Session["UserName"] != null) userName = Convert.ToString(Session["UserName"]); [/code] | |
Re: That depends on how you are binding the controls. If you used a typed [icode]DataSet[/icode] it retains the original value for the field so you could compare those. What are you binding with? | |
Re: Use an error provider! [code] using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; namespace daniweb.validation { public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void textBox1_TextChanged(object sender, EventArgs e) { errorProvider1.SetError((sender as Control), string.Empty); } private void … | |
Re: Change the locale setting in your machine via the control panel :) | |
Re: Open up the designer file for your user control. The head of the file will look like: [code] <Global.Microsoft.VisualBasic.CompilerServices.DesignerGenerated()> _ Partial Class UserControl1 Inherits System.Windows.Forms.UserControl [/code] Paste the contents here. It should let you do what you are describing. I created a user control, added a panel, and put a … | |
Re: I cant distinguish between first, middle, and last names in the sample you provided so I can't answer your question. Please use code tags when posting queries: [noparse] [code=sql] ...query here.... [/code] [/noparse] Also use this for pasting text: [noparse] [code=text] ...text here] [/code] [/noparse] Use the text paste to … | |
Re: "Hospital Management System" or "Document Management System" Those should be fun! :) | |
Re: How do you want to store the array? CSV? XML? Binary? | |
Re: I don't understand the Circle X,Y, and Radius. Don't you just need a single center point and the radius, then draw the circle from there? | |
Re: If you ship your application with source code and debug symbols you can get the callstack from [icode]Environment.StackTrace[/icode] which will contain the file name and line number. With that information you could open it up in your favorite text editor. | |
Re: C# can do image manipulation just the same as any other language. You can use [icode]unsafe{}[/icode] blocks and get down to the image bits and do what you will with the image. However, I would have to agree that using C is a better choice if performance is an issue … | |
Re: This sounds like a deployment issue. How are you currently deploying the website? You should use the "Publish" option and publish the site. Also be sure to [b]DELETE[/b] all *.dll files in your bin\ directory before publishing. Old versions hanging around will cause problems. | |
Re: Also if you're using bitmasking it is very importanting to have a specific data type size. IE if you shift left the bits one place on a 32 versus a 64bit data type they will have very different results. I wouldn't worry about using the smallest-possible-datatype for the most part. … | |
Re: You shouldn't be using .asp pages to store login credentials, and you probably shouldn't be opening the page source for your project at runtime in a web environment. Why not just use a database? You could also hard-code in the user information in to the program (another bad approach). | |
Re: Are you sure you want to do that? What if they already have an SQL server installed on the network and do not want to install it? I recommend keeping them separate. | |
Re: [icode]DataCommand[/icode] is defined in [icode]Microsoft.ManagementConsole.Internal[/icode] but you could use an [icode]SqlCommand[/icode] which is defined in [icode]System.Data.SqlClient[/icode] | |
Re: Why don't you post the HTML in a .txt file on the thread so we can see what you're looking at? Line breaks, white space, etc all affect how you scrape the file. | |
Re: Once you have followed danny's recommendation and organized your members in to a class/struct you can use the [icode]XmlSerializer[/icode] also to persist your class to disk. | |
Re: Macarded=? I don't know that either would make me screaming mad. I would say "*** *** ******** ** * * ******* *****" then call for a replacement phone and get over it. My iPod already died about two months ago and I haven't gotten around to replacing it yet. I … | |
Re: I believe we have a new resident Daniweb C# Drawing master :) Danny: Anything math/science related Serkan: Deployment Projects (if he answers!) Diamonddrake: Drawing & Controls Adatapost, Ramy and myself: More random Q&A than anything. I'll create a roster in the [URL="http://www.daniweb.com/forums/group1.html"].NET Developers groups[/URL] after I submit the idea to … | |
Re: This should do the trick: [code] private void button1_Click(object sender, EventArgs e) { List<Rectangle> lst = new List<Rectangle>(); Rectangle rect; rect = new Rectangle(1, 2, 3, 4); lst.Add(rect); rect = new Rectangle(1, 2, 3, 4); lst.Add(rect); rect = new Rectangle(4, 3, 2, 1); lst.Add(rect); lst = lst.Distinct().ToList(); } [/code] Please … | |
Re: You can catch the shutdown message with [icode]Microsoft.Win32.SystemEvents[/icode]: [url]http://blogs.msdn.com/jaredpar/archive/2006/10/20/responding-to-windows-shutdown.aspx[/url] [url]http://discuss.joelonsoftware.com/default.asp?dotnet.12.528750.10[/url] | |
I think there should be a user title in the social groups. For example the programming groups could have the title as their specialty, and the social groups could have .. something funny .. It would make the groups more interactive. As it stands the groups are pretty lacking in … | |
Re: You should use a trigger on the insert to generate the id instead of a sproc to get the next value. Even then your sproc should probably be a UDF. In your case if the transaction is rolled back the ID will still be incremented even if the record is … | |
Re: It depends. If your application installs the SQL Server instance and maintains it then you can do what you need to ensure the application functions. If you allow users to use any network instance of SQL then you're best off not to automate any security modifications as you risk pissing … |
The End.