224 Posted Topics
simple Code Snippets to Convert Image to Byte Array and Vise Versa | |
Re: i think you are trying to connect to sqlexress instance of sql 2008 server. do u have sql 2008 installed??? | |
Re: go to this link :[URL="http://www.microsoft.com/downloads/en/details.aspx?familyid=B5D1B8C3-FDA5-4508-B0D0-1311D670E336&displaylang=en"]http://www.microsoft.com/downloads/en/details.aspx?familyid=B5D1B8C3-FDA5-4508-B0D0-1311D670E336&displaylang=en[/URL] and you will find powershell for vista in system requirements section.. | |
Re: try this: [CODE] SELECT codMP, SUM(Cantitate) AS 'SUM' FROM dbo.continut GROUP BY codMP [/CODE] output: 1 | 20 2 | 112 3 | 25 or [CODE] SELECT * FROM dbo.Materii JOIN ( SELECT codMP , SUM(Cantitate) AS 'SUM' FROM dbo.continut GROUP BY codMP ) AS a ON dbo.Materii.codMp = a.codMP … | |
Re: ok.. let's assume that you have a table "[B]tblInvNo[/B]" which stores your invoice numbers.. (just for demo) there is only one column in this table , and that is [B]invno [/B](of type nvarchar) Let's say the content of Table "[B]tblInvNo[/B]" are [B]AA12345678 AA12345679 AA12345680 BB12345680[/B] As you can see the … | |
Re: do you want to ask user something like "Are you sure?" ????? [QUOTE]If user enter the query in textbox and click on Query Button i want to prompt for use input to get key for validating purpose[/QUOTE] and what does the above mean?? | |
Function to Convert Dataset to Excel. It will export all the table of the given dataset to the given excel. Example: [CODE]ExportDatasetToExcel(dsFinal, "d:\\my.xls") [/CODE] where dsFinal is my Datase and second parameter is the excel file location. Make sure the excel file exist. | |
Re: [URL="http://www.genkivideogames.com/games/marchen-awakens-romance-arm-fight-dream-konami-ps2/slpm66156"]http://www.genkivideogames.com/games/marchen-awakens-romance-arm-fight-dream-konami-ps2/slpm66156[/URL] [URL="http://www.konami.jp/gs/game/mar/ps2/"]http://www.konami.jp/gs/game/mar/ps2/[/URL] | |
Re: here is a small demo of what you can do: [CODE] string[] arrData = new string[5]; arrData[0] = "This"; arrData[1] = "is"; arrData[2] = "a"; arrData[3] = "Demo"; arrData[4] = "Test"; string tempString = ""; foreach (string str in arrData) { tempString += str + ","; } tempString = tempString.Substring(0, … | |
Re: here is a solution: There is a timer class specifically for console or rather non ui app. which is SYSTEM.THREADING.TIMER , you will have to use it. [CODE] Module Module1 Sub Main() Dim tmr As System.Threading.Timer Dim tmrCallBack As New System.Threading.TimerCallback(AddressOf DoFuntion) tmr = New System.Threading.Timer(tmrCallBack, Nothing, 0, 1000) 'do … | |
Re: check this: [URL="http://www.daniweb.com/software-development/vbnet/threads/368649"]http://www.daniweb.com/software-development/vbnet/threads/368649[/URL] | |
Re: i think your InitializeComponent() method in designer is not being called correctly , that's why there is no controls in your form.. check the method. | |
Re: check on work server if proper fonts are installed.. | |
Re: try this: [CODE] ProcessStartInfo ps = new ProcessStartInfo("cmd.exe"); ps.WindowStyle = ProcessWindowStyle.Hidden; //will hide the process Process p = Process.Start(ps); p.WaitForExit(); //wait for process to complete [/CODE] | |
Re: if you are trying to play the game by pressing the start button then it wouldnt update the attemts because on the start button click you are making the attemts =0 statement.. so when you start a new game the attemt will always be 1. | |
Re: you can write a join query on the database .. then store the data in a dataset. then browser this dataset rather than the Database itself.. its called disconnected database.. | |
Re: you will have to make a formula field for it.. create a formula field in you crystal report.. lets say the column in which you want to perform the operation is in Table named Column2. Then [CODE] Replace( Replace( Replace ({Table.Column2}, "-", "") , "*","") , "^","") [/CODE] This will … | |
Re: check here: [URL="http://www.connectionstrings.com/sql-server-2008"]http://www.connectionstrings.com/sql-server-2008[/URL] [URL="http://www.sqlteam.com/article/sql-server-connection-string"]http://www.sqlteam.com/article/sql-server-connection-string[/URL] | |
Re: Hard Drive RPM Speeds You will often see hard drives advertised as being capable of a certain RPM (Revolutions Per Minute). This figure (as the name suggests) refers to how many times the spindle makes a complete 360º turn in any single minute. The higher the RPM, the faster the … | |
Re: check here: [URL="http://www.codeproject.com/KB/audio-video/dshowencoder.aspx"]http://www.codeproject.com/KB/audio-video/dshowencoder.aspx[/URL] [URL="http://wrb.home.xs4all.nl/Articles_2010/Article_WPFWavToMP3_01.htm"]http://wrb.home.xs4all.nl/Articles_2010/Article_WPFWavToMP3_01.htm[/URL] | |
Listing All The Installed Softwares In Computer Using .Net Don't Forget To add [B]using Microsoft.Win32 [/B] For Complete thread with screen shots see here:[snipped] | |
Re: it looks like you are only search the sub directories.. change you code to the following and it will work..(i have tested it) [CODE] Private Sub getMyCoolFiles(ByVal selectedDirectoryToSearch As String, ByVal ListBoxForFoundFiles As ListBox) ListBox1.Items.Clear() Dim myCoolFolder As New IO.DirectoryInfo(selectedDirectoryToSearch) 'Change For Each myfile As IO.FileInfo In myCoolFolder.GetFiles("*.txt", IO.SearchOption.TopDirectoryOnly) 'Notice … | |
Re: watching anime and reading manga ohh ..yes right now watching US tv series like Fringe, Bones , Smallville etc.. and day dreaming :) | |
Re: take a look here. it will give you an idea.. [URL="http://www.daniweb.com/software-development/vbnet/threads/368649"]http://www.daniweb.com/software-development/vbnet/threads/368649[/URL] | |
Re: change your code to this : [CODE] Dim sql As String Dim xlApp As Microsoft.Office.Interop.Excel.Application Dim xlWorkBook As Microsoft.Office.Interop.Excel.Workbook Dim xlWorkSheet As Microsoft.Office.Interop.Excel.Worksheet xlApp = New Microsoft.Office.Interop.Excel.Application xlWorkBook = xlApp.Workbooks.Open(txtExcelFile.Text) xlWorkSheet = xlWorkBook.Worksheets("sheet1") sql = "SELECT * FROM [Sheet1$]" For i As Integer = 1 To xlWorkSheet.Rows.Count - 1 If … | |
Re: you can display that on a webbrowser control in .net just add a webbrowser on form. and use something like this: [CODE] WebBrowser1.DocumentText = TextBox1.Text; [/CODE] | |
Re: try something like this: [CODE] static void Main(string[] args) { int[,] numbers = {{1, 2, 0, 6 }, {5, 6, 7, 0 }, {9, 3, 6, 2 }, {6, 4, 8, 1}}; int count = 0; List<int> checkedNumbers = new List<int>(); foreach (int t in numbers) { if (!checkedNumbers.Contains(t)) { … | |
Re: try changing statement [CODE] Dim loNode As XmlNode [/CODE] at line 6 to [CODE] Dim loNode As XmlNode = nothing [/CODE] | |
Re: what is the error? i mean wat kind of error are you getting ? | |
Re: what error do you get?? can you clarify it further? | |
Re: if you loop through the whole records then you will have to get all the records from database and it will take a lot of time( as your database is on internet). i suggest you write the query such as it retrieve as much less records as possible. Let's Say … | |
Re: check the tutorial on zedgraph here: [URL="http://www.codeproject.com/KB/graphics/zedgraph.aspx"]http://www.codeproject.com/KB/graphics/zedgraph.aspx[/URL] | |
Re: you will just have to change the connection string of you sql server database in you client application. let's say your server's ip is : 192.168.0.100 then you can do someting like this: [CODE] Data Source=\192.168.0.100 ;Initial Catalog=myDataBase;User Id=myUsername;Password=myPassword; [/CODE] check here: [URL="http://www.connectionstrings.com/sql-server-2005"]for more connection strings [/URL] | |
Re: i think you should use Process [with arguements] in vb.net check here: [URL="http://www.dotnetperls.com/process-start-vbnet"]http://www.dotnetperls.com/process-start-vbnet[/URL] also here: [URL="http://www.daniweb.com/software-development/vbnet/threads/84069"]http://www.daniweb.com/software-development/vbnet/threads/84069[/URL] | |
Re: here is a complete guide for protocol and firewall settings.. [URL="http://support.microsoft.com/kb/914277"]http://support.microsoft.com/kb/914277[/URL] and [B]Initial Catalog[/B] is your database name.. | |
Re: what is the error??? any error code or error text ??????? or screen shot of error?? | |
Re: use this: [CODE] Dim p As New Process() p.StartInfo.FileName = TextBox1.Text ' your url, ex: "www.google.com" p.Start() [/CODE] dont forget to imports: [CODE] Imports System.Diagnostics [/CODE] | |
Re: hi.. use these function to find code between /* and */. public static List<string> FindStringBetween(string strData,string strFindWhat) { List<string> lstFound = new List<string>(); int startIndex, EndIndex; startIndex = strData.IndexOf(strFindWhat); EndIndex = strData.IndexOf(strFindWhat, startIndex + strFindWhat.Length); if (EndIndex > 0) { lstFound.Add(strData.Substring(startIndex+strFindWhat.Length ,EndIndex - startIndex-strFindWhat.Length )); } while (EndIndex > 0) … | |
Re: codeorder's solution seems the best .. | |
Re: ok.. i have solved it.. i have use the northwind database of microsoft here.. i hope you will understand from it. Please try the Below: 1. Put a combobox on form. 2. now use following code accordingly: [CODE] Imports System.Data.SqlClient Public Class Form1 Private Sub Form1_Load(ByVal sender As System.Object, ByVal … | |
hi..guys and gals. i was hoping if anyone could guide me on how can i create a tutorial in c#.net forums on daniweb.. i cant seem to find a way to do so.. | |
Re: you should use Docking, Anchoring Properties of the controls. see here: [URL="http://www.codeproject.com/KB/vb/pflvb7.aspx"]http://www.codeproject.com/KB/vb/pflvb7.aspx[/URL] [URL="http://www.homeandlearn.co.uk/net/nets13p1.html"]http://www.homeandlearn.co.uk/net/nets13p1.html[/URL] [URL="http://www.startvbdotnet.com/forms/form4.aspx"]http://www.startvbdotnet.com/forms/form4.aspx[/URL] | |
Re: SELECT DATEADD(MONTH,2,'06/08/2011') will give you your answer... | |
Re: use following: [CODE] Call Form1_Load(Nothing, Nothing) [/CODE] | |
Re: use the ExecuteScalar Method.. here check this out: [URL="http://msdn.microsoft.com/en-us/library/system.data.sqlclient.sqlcommand.executescalar.aspx"]http://msdn.microsoft.com/en-us/library/system.data.sqlclient.sqlcommand.executescalar.aspx[/URL] [URL="http://vb.net-informations.com/ado.net-dataproviders/ado.net-executescalar-sqlcommand.htm"]http://vb.net-informations.com/ado.net-dataproviders/ado.net-executescalar-sqlcommand.htm[/URL] | |
Re: according to you coding for diagonal element i and j will be equal.. lets say i have following matrix: 1 2 3 4 1 2 3 4 1 2 3 4 1 2 3 4 sum will be = 1+2+3+4 = 10 Coding for above: [CODE] int[,] matA =new int[4,4] … |
The End.