2,245 Posted Topics
Re: Welcome to DaniWeb hkb261! Please use code tags when posting code on daniweb. [noparse] [code=sql] ...query here... [/code] [/noparse] But your answer was correct :) | |
Re: NargalaX, Please use code tags when pasting code: [noparse] [code=csharp] ...code here... [/code] [/noparse] | |
Re: That is a base64 encoded string. Decode it and you get a 48byte array: [code=vb.net] Convert.FromBase64String("7CDE8F64DB88782E4EEEBF5DF6B84F034FEEBD54EBB1551E44F3BF5088C93E6B") [/code] | |
Re: If you have "A Small Description of the page" then the title would vary page by page, right? Are you just wanting to ensure the titles are consistent? | |
Re: Take a look around google...: http://www.dreamincode.net/forums/showtopic51374.htm http://ondotnet.com/pub/a/dotnet/2002/03/18/customcontrols.html You should create a class called something like "ButtonEx" and start overriding members. To do your own graphics you will want to manually paint the button yourself. This doesn't work right but it should get you started: using System; using System.Collections.Generic; using System.Linq; … | |
Re: Have you tried a different monitor? Those can go bad as well. I have seen some instances where this happens and powering all of the hardware off for a few seconds and turning it back on has solved the issue. I would remove the power cable when doing this to … | |
Re: That is a unintelligible post. Please use complete sentence and explain your needs one more time :) | |
Re: I went on the cliffhanger at whitewater over the weekend. Its a nine story water slide: [url]http://www.sixflags.com/whiteWater/rides/cliffhanger.aspx[/url] | |
Re: Try this: [code=csharp] Ax.Origin = new PointF(50, 50F); [/code] | |
Re: Zip your project and post it. Nobody has responded to the thread so i'm guessing it was the same reason I didn't --- too much work to duplicate your test environment to provide an answer :) | |
Re: Use an interface or a delegate. Here is an interface example: [b].EXE Application[/b] [code=csharp] using System; using System.Windows.Forms; using daniweb.callbackDLL; namespace daniweb { public partial class FormCallback : Form, IClearTextBox { public FormCallback() { InitializeComponent(); } private void button1_Click(object sender, EventArgs e) { CallbackDLL.DoWork(); //this will clear the textbox } … | |
Re: DataSets offer a number of things. * They are strongly typed * They can hold many DataTables and their relationship so you can have an ORM in memory. * They implement a lot of interfaces for working with data so you can easily use them with report writers or data … | |
Re: I'm with adatapost on this .. everything looks OK so you might be missing a value. Does the code throw an error or does it simply not update the data as expected? | |
Re: Please ask questions specific to VB.NET in this forum. You can generic computer science questions in other forums. Check out computer science and IT Professionals Lounge | |
Re: If the column is an identity the value can be retrieved by calling [icode]SCOPE_IDENTITY()[/icode] [code=sql] Declare @ID int Insert Into aTable (aColumn) Values (aValue) Set @ID = Cast(SCOPE_IDENTITY() as int) [/code] | |
Re: Have you installed the drivers? [url]http://www.microsoft.com/downloads/details.aspx?FamilyID=7554F536-8C28-4598-9B72-EF94E038C891&displaylang=en[/url] Also are you running on a 64bit or 32bit OS? | |
Re: Can you post the full string evaluated by the debugger so we can see the actual text you are trying to send? Also indicate where the message is being cut off. You may have a control character in the buffer you're attempting to write. | |
Re: Use parameterized queries to avoid date formatting issues. Example: [code=vb.net] Private Sub DisplayPersonData(ByVal first_name As String, _ ByVal last_name As String) ' Open the connection. connUsers.Open() ' Make a Command for this connection ' and this transaction. Dim cmd As New OleDb.OleDbCommand( _ "SELECT * FROM People WHERE FirstName=? AND … | |
Re: Hello etm9413 and welcome to daniweb! :) Please use code tags when you paste your code: [noparse] [code=c#] ...code here [/code] [/noparse] As far as your question the subject is a leading misleading as this is not streaming XML. Here is how you can convert a string to a stream. … | |
Re: It looks like your closing tag is formed improperly: [code] <Text>=E2=80=9Clighting is everything=E2=80=9D</T=ext> [/code] | |
Re: I'm afraid your post does not make any sense. Could you please elaborate on what you are doing and what language(s) you are using? | |
Re: [quote]I also have good time 2 do dis project[/quote] In addition to adatapost's suggestion another key factor is the ability to spell and form sentences properly. This may not have an impact on the development of your project but it certainly will make or break the quality of it. | |
Re: Do you really want the buttons [b]in[/b] the row? It seems like you should have buttons on the page near the grid to do customizations as you don't want to repeat these buttons for every row on the grid. | |
Re: Try this: [code=sql] --Create a simulation table IF OBJECT_ID('ParcelTest', 'U') IS NOT NULL DROP TABLE ParcelTest Create Table ParcelTest ( ID int identity(1000, 1) PRIMARY KEY, ShipDate DateTime, Name varchar(30) ) GO --Create test data Declare @DateTime DateTime Set @DateTime = Floor(Cast(GetDate() as float)) Insert Into ParcelTest (ShipDate, Name) Values … | |
Re: That really isn't enough information to indicate what the error might be other than the page does not exist. Will you elaborate on your issue? | |
Re: Welcome to daniweb avirag! Please use code tags when posting your code Next could you upload your project where we could see what is going on here. I cannot duplicate this behavior: 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 … | |
Re: [QUOTE=Pacman21;935812]If you use the SELECT * FROM make WHERE make LIKE '"& honda & "%'" That should do the trick[/QUOTE] Please do not [b]ever[/b] build queries like that. Take a look at this thread: [url]http://www.daniweb.com/forums/thread208266.html[/url] You should use parameters when constructing queries. | |
Re: Please post the relevant code so we can see where the wires are getting crossed. | |
Re: You need to declare your Timer outside the scope of the constructor or else it goes out of scope and is no longer accessible, as you are seeing currently. Try this: [code=c#] Timer Clock; public GUI() { InitializeComponent(); //This is the part needed to create a custom shaped Form this.FormBorderStyle … | |
Re: No problem | |
Re: [code=sql] Select Name, (IsNull(Week1, 0) + IsNull(Week2, 0) + IsNull(Week3, 0)) As Total From TableName Order By Name [/code] | |
Re: Boot off your XP installation CD and use the recovery console. Copy the file over to your harddrive in the directory its supposed to go in. | |
Re: I guess you could just kill the application when any form shuts down. This sounds like a bad idea but its what you asked: [code=vb.net] Private Sub FormDragDrop_FormClosed(ByVal sender As System.Object, ByVal e As System.Windows.Forms.FormClosedEventArgs) Handles MyBase.FormClosed Application.Exit() End Sub [/code] | |
Re: That depends. If the type is aware on how it should format itself then you have one issue versus if you want to let users decide how to format the object. Take for example a decimal being formatted with F2 or F0 -- that just controls the number of decimals. … | |
Re: Click next ... ? I don't understand how a warning is halting the installation. | |
Re: Start -- Run -- services.msc and hit enter. You can also right click on the empty area in your "start bar" at the bottom. This will be the area to the right of where your last open window is running. Right click and hit properties. In the dialog select the … | |
Re: This sounded fun so I wrote a little RPG :P [code=c#] 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 frmGame : Form { public frmGame() { InitializeComponent(); } private void TestProbability() { //We are using 1-10 … | |
Re: To be honest I use a form entry point when calling other forms to ensure they are set up properly. I always call .ShowDialog() from within the forms own class and this also lets me have return types when using modal forms and I completely ignore the DialogResult of the … | |
Re: What do you mean by it doesnt work? Looking at your code you are handling an exception when creating the parameter and adding it to the command's collection. Are you raising an exception there, when you fire the [icode].ExecuteNonQuery()[/icode], or is there no error it just doesn't update the data? … | |
Re: Take a look at [url]http://msdn.microsoft.com/en-us/library/system.windows.forms.sendkeys.aspx[/url] It is probably case sensitive so try "{ENTER}" | |
Re: Please use code tags when posting code on daniweb To answer your question you have a few problems. First is the constructor for the Weapons class. The method having the same name as the class is called the constructor and returns an instance of the class. You do not declare … | |
Re: Your OleDbDataAdapter is creating the OleDbDataConnection for you under the hood. You're still using it. Help file: [quote] OleDbDataApater Class Represents a set of data commands and a database connection that are used to fill the DataSet and update the data source. [/quote] | |
Re: [QUOTE=kerek2;933074]Tq bro, but still got problem...i cannot change or update that value in this textbox...anyone can guide me please...tq in advance[/QUOTE] Is the textbox set [icode]ReadOnly = true[/icode] or [icode]Enabled = false[/icode] ? | |
Re: That doesn't make sense. You say you have edited the code but the changes make no effect? Step through the code with the debugger and see if it is running the code. You may have changed the wrong method? | |
Re: Please post web related questions in the ASP.NET forum. Secondly I do not understand what you are saying here. Could you please provide enough code to demonstrate the issue? | |
Re: I don't have a compiler in front of me but this should be close enough to answer your question: [code=c#] private void checkbox_CheckChanged(sender s, EventArgs e) { if (checkBox1.Checked) this.BackgroundColor = Color.Red; else this.BackgroundColor = Color.Blue; } [/code] | |
Re: I don't understand what you're asking. Load the property array in to a List of generics, modify it, then call [icode].ToArray()[/icode] if you are having problems working with an array. Other than that I can't understand what you are asking. | |
Re: Check out [url]www.codeproject.com[/url] for articles with full code samples. I find it much easier to follow the article when you have a local version of the application you can test as you go. | |
Re: Are you looking at using an MDI application or a single "Main Form" and swapping out the right panes content? Also -- can you post the code you have tried so far and show us where you are having difficulties? | |
Re: No need to use the URL as it will already be in your local browser cache. [code=vb.net] Public Class FormDragDrop Private Sub FormDragDrop_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Me.AllowDrop = True End Sub Private Sub FormDragDrop_DragEnter(ByVal sender As System.Object, ByVal e As System.Windows.Forms.DragEventArgs) Handles MyBase.DragEnter If … |
The End.