224 Posted Topics

Member Avatar for sandeepparekh9
Member Avatar for CsharpChico
0
277
Member Avatar for vishalrane

i think you are trying to connect to sqlexress instance of sql 2008 server. do u have sql 2008 installed???

Member Avatar for Netcode
0
114
Member Avatar for apanimesh061

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..

Member Avatar for sandeepparekh9
0
94
Member Avatar for Stangaciu

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 …

Member Avatar for Stangaciu
0
133
Member Avatar for bluehangook629

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 …

Member Avatar for bluehangook629
0
644
Member Avatar for Arjun_Sarankulu

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??

Member Avatar for Arjun_Sarankulu
0
138
Member Avatar for sandeepparekh9

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.

Member Avatar for Fa3hed
0
1K
Member Avatar for codie1125

[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]

Member Avatar for sandeepparekh9
0
110
Member Avatar for webmaisterpro
Member Avatar for Doughng

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, …

Member Avatar for Mitja Bonca
0
237
Member Avatar for leo88

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 …

Member Avatar for leo88
0
275
Member Avatar for ctsmith84

check this: [URL="http://www.daniweb.com/software-development/vbnet/threads/368649"]http://www.daniweb.com/software-development/vbnet/threads/368649[/URL]

Member Avatar for sandeepparekh9
0
82
Member Avatar for TheMightySpud

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.

Member Avatar for TheMightySpud
0
293
Member Avatar for lcfjoertoft
Member Avatar for localp

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]

Member Avatar for sandeepparekh9
0
96
Member Avatar for kelifer84

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.

Member Avatar for kelifer84
0
519
Member Avatar for Imtiyaz
Member Avatar for vishalrane

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..

Member Avatar for vishalrane
0
128
Member Avatar for saj_amo

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 …

Member Avatar for saj_amo
0
292
Member Avatar for pro_learner

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]

Member Avatar for pro_learner
0
1K
Member Avatar for programer25

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 …

Member Avatar for caperjack
0
116
Member Avatar for Romil797

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]

Member Avatar for CsharpChico
0
385
Member Avatar for sandeepparekh9

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]

Member Avatar for vishalrane
0
184
Member Avatar for chris007

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 …

Member Avatar for chris007
0
1K
Member Avatar for WolfShield

watching anime and reading manga ohh ..yes right now watching US tv series like Fringe, Bones , Smallville etc.. and day dreaming :)

Member Avatar for jwmollman
0
209
Member Avatar for ctsmith84

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]

Member Avatar for sandeepparekh9
0
91
Member Avatar for moone009

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 …

Member Avatar for sandeepparekh9
0
388
Member Avatar for hirenpatel53

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]

Member Avatar for hirenpatel53
0
98
Member Avatar for FELIGO

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)) { …

Member Avatar for Bridgekeepers
0
1K
Member Avatar for moone009

try changing statement [CODE] Dim loNode As XmlNode [/CODE] at line 6 to [CODE] Dim loNode As XmlNode = nothing [/CODE]

Member Avatar for sandeepparekh9
0
104
Member Avatar for Joshua Kidd
Member Avatar for Joshua Kidd
0
146
Member Avatar for whodoes21
Member Avatar for ninjatalon

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 …

Member Avatar for debasisdas
0
135
Member Avatar for rminator

check the tutorial on zedgraph here: [URL="http://www.codeproject.com/KB/graphics/zedgraph.aspx"]http://www.codeproject.com/KB/graphics/zedgraph.aspx[/URL]

Member Avatar for rminator
0
386
Member Avatar for saj_amo

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]

Member Avatar for saj_amo
0
103
Member Avatar for deva.v

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]

Member Avatar for codeorder
0
133
Member Avatar for historymaker333

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..

Member Avatar for Ken Peterson
0
543
Member Avatar for leo88

what is the error??? any error code or error text ??????? or screen shot of error??

Member Avatar for sandeepparekh9
0
124
Member Avatar for Arjun_Sarankulu
Member Avatar for saj_amo

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]

Member Avatar for chriswelborn
0
923
Member Avatar for ritesh2190

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) …

Member Avatar for sandeepparekh9
0
161
Member Avatar for deva.v
Member Avatar for ZER09

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 …

Member Avatar for ZER09
0
4K
Member Avatar for sandeepparekh9

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..

Member Avatar for pritaeas
0
88
Member Avatar for Pgmer

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]

Member Avatar for sandeepparekh9
0
149
Member Avatar for bettybarnes
Member Avatar for NETProgrammer
0
284
Member Avatar for vishalrane
Member Avatar for taxmybrain

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]

Member Avatar for sandeepparekh9
0
199
Member Avatar for spectranet
Member Avatar for FELIGO

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] …

Member Avatar for Mitja Bonca
0
108

The End.