638 Posted Topics

Member Avatar for walid86

After you create the objGraphics object, maybe you need to fill it with som content. An example from Jayman in dreamincode.com: [CODE]Dim bmp As New Bitmap("bitmap filename") Dim gr As Graphics = Graphics.FromImage(bmp) Dim p1 As New Pen(Color.Blue) gr.DrawLine(p1, x1, y1, x2, y2) Dim bmp As New Bitmap(width, height, gr) …

Member Avatar for walid86
0
1K
Member Avatar for TurkAlush

Can you be so kind to post here the chat part you have written so far where you want to include the search function?

Member Avatar for lolafuertes
0
128
Member Avatar for ninjatalon

Depends on the FTP server software, OS and the kind of security applied. Please give us more info to help you.

Member Avatar for lolafuertes
0
103
Member Avatar for singhSP

Agreed with Teme64. IMO is the best solution. But if you can not change the database design for any reson, if I remember well, in Access you can force to return 0 when not found using the [B]immediate if [/B]function ([B]IIF[/B]): ("Select iif(max(val(mid(cCode,5,len(cCode)))=Null, 0, max(val(mid(cCode,5,len(cCode))))) as maxV from Contact where …

Member Avatar for singhSP
0
237
Member Avatar for dzen

[URL="http://www.windowsecurity.com/articles/how-cracked-windows-password-part1.html"]This[/URL] is starting point to learn how they are hashed. Hope this helps

Member Avatar for lolafuertes
1
126
Member Avatar for QuickBooksDev

VB.NET does not istantiates the forms by default as does VB6. So probably when you [ICODE]Public FormStores As frmMain = frmMain[/ICODE] you are expecting that frmMain already exist, but does not. I would suggest some code like this to instantiate the child form: [CODE]Public FormStores As frmMain Public Sub New …

Member Avatar for lolafuertes
0
841
Member Avatar for Wouto1997

This happens when no reference to the dll exists. Please verify if you already refrenced it in the project. Hope this helps

Member Avatar for lolafuertes
0
81
Member Avatar for priyamtheone

This is because the focus still on the button. On the button click event, you can set the focus to another control to 'remove' the rectangle Hope this helps.

Member Avatar for priyamtheone
0
148
Member Avatar for Connor Ward
Member Avatar for moone009

Unfortunatelly there is no magic ReplaceInTheCurrentCellMovingTheReplacedPartToAnotherCell function in Excel. I would suggest to do a For - Next loop taking one cell at time in the search range. Then in the taken cell, define a new text value to set and, for each character in the cell, if the current …

Member Avatar for Reverend Jim
0
130
Member Avatar for iefilec

One of the ways is to create a SELECT command for your database with the range in the select clause. With this command you can create a datareader to read row-by-row from your database and using each row, add a listview item (with subitems if needed) until no more data …

Member Avatar for MartinPlatt
0
483
Member Avatar for hackerjackie

Hopefully [URL="http://deped-property.wikispaces.com/file/view/Property+Manual.pdf"]this pdf[/URL] from the Education Department can help you. Sicerely

Member Avatar for lolafuertes
-3
55
Member Avatar for kosay

I would suggest the following: When loading the tree view, add the relevant info to find the right record to update (if changed) like the record primary key (or even the full record), into the tag property of the node. When the node is changed, you can use the info …

Member Avatar for lolafuertes
0
90
Member Avatar for kingsonprisonic

I would suggest using a slider control as a base. Then, maybe you will need to do some additional rendering when showing/updating their content or size. See [URL="http://msdn.microsoft.com/en-us/library/system.windows.controls.slider.aspx"]here[/URL] for info about it. Hope this helps

Member Avatar for lolafuertes
0
315
Member Avatar for ChronoSyntax

Probably you can do it using the BibaryWriter class instead of the BinaryReader. But... there is always a but. The magic is to know what info exists on the rest of the original header and file, and if this should be changed or moved due to the new size. IE …

Member Avatar for lolafuertes
0
436
Member Avatar for shivya jain

I would suggest to use [CODE]j = dr.GetInt32(0) txtstaff_id.Text= j.ToString()[/CODE] You can not use [ICODE]txtstaff_id.Text = dr("staff_id").ToString()[/ICODE] because there is no field called staff_id in your select. When you ask for the [ICODE]MAX(staff_id[/ICODE]) the returned field name is some thing like MaxOfstaff_id. You can force the returned name to be …

Member Avatar for lolafuertes
0
272
Member Avatar for coolsasuke

I would suggest to change all your approach, because 'killing' processes that you don't like is always a bad practice (IMO); better never start them. Every thing you are asking for can be done through Security Policies. If the PC, where to run your program, is part of a LAN, …

Member Avatar for lolafuertes
0
227
Member Avatar for adem87

Maybe inverting the order, first fill the table then refresh the datagrid. Hope this helps

Member Avatar for lolafuertes
0
59
Member Avatar for Kasraeian
Member Avatar for twalton42

This is because you are using the record number 0 of the Customer datatable to put the new values. You need to know the shown record position (value for the index instead of 0) to do the updates. Hope this helps.

Member Avatar for lolafuertes
0
179
Member Avatar for Jazerix

First you must catch the error (that seems obvious) Then I normally write a plain text file with all the relevant info for the error like: *Point in the program.class.function where the error occured *Description of the error, ie exception class, exception message and exception stack *Variables affected and their …

Member Avatar for Jazerix
0
181
Member Avatar for Bamboozled

Probably you need to decode the text from the file using the [URL="http://msdn.microsoft.com/en-us/library/86hf4sb8.aspx"]System.Text.Encoding[/URL] and [URL="http://msdn.microsoft.com/en-us/library/system.text.decoder.aspx"]System.Text.Decoder[/URL] classes. The way is to read the bytes of the source file using an stream reader, convert the bytes using the appropiate decoder and present the result on screen. Hope this helps

Member Avatar for lolafuertes
0
710
Member Avatar for vinu4u4ever

Probably you will need to refresh each control after changing the databinding. Hope this helps

Member Avatar for Mitja Bonca
0
130
Member Avatar for shivya jain

We create a function or method in VB using the following: Sintax for a method: [CODE]Sub Methodname ' ' Place your method here ' End Sub[/CODE] Sintax for a function: [CODE]Function FunctionName as TypeOfReturnValue ' ' Place here your function ' Return TheValueToReturn End Function[/CODE] Please read [URL="http://www.homeandlearn.co.uk/net/nets9p1.html"]here[/URL] (and next …

Member Avatar for Unhnd_Exception
0
192
Member Avatar for DisasterPiece

Maybe the magic can be to create a new module with a Sub Main and use this sub for starting the project in the project properties page. This sub can do the following: * Instantiate a new titleForm. * Show the titleform. * Do the progress bar movement for the …

Member Avatar for codeorder
0
226
Member Avatar for Vaikkundhnaair

[URL="http://msdn.microsoft.com/en-us/library/ms172563(v=VS.80).aspx"]Here[/URL] and [URL="http://msdn.microsoft.com/en-us/library/ms172563(v=VS.90).aspx"]there [/URL]are good places to start from msdn. Also you can go [URL="http://www.vbdotnetheaven.com/2/116/"]there[/URL] for more howtos and examples. Hope this helps

Member Avatar for hericles
0
128
Member Avatar for blivori

Maybe you need to change your code like [CODE] Dim returnedProcess = myProcess.Start(pyLocationDel) returnedProcess.WaitForExit() [/CODE] See [URL="http://msdn.microsoft.com/en-en/library/53ezey2s(v=VS.80).aspx"]here[/URL] for reference Hope this helps

Member Avatar for lolafuertes
0
390
Member Avatar for Mike Bishop

Maybe you can add a new [URL="http://msdn.microsoft.com/en-us/library/system.windows.forms.datavisualization.charting.title"]title[/URL] to the Chart2.[URL="http://msdn.microsoft.com/en-us/library/system.windows.forms.datavisualization.charting.chart.titles.aspx"]Titles[/URL] collection. Hope this helps

Member Avatar for lolafuertes
0
128
Member Avatar for kapojian

Just have in mind that a 31 days month starting on Saturday can have until 6 weeks. Lets see a July Month assuming the Sunday is the first day of the week: Saturday 1, Week 1 Monday 3, Week 2 Monday 10, Week 3 Monday 17, Week 4 Monday 24, …

Member Avatar for lolafuertes
0
175
Member Avatar for R3ap3R

Maybe you can use a for loop instead of a foreach like: [CODE]XDocument feedXML = XDocument.Load("http://twitter.com/statuses/public_timeline.xml"); var feeds = from feed in feedXML.Descendants("status") select new { Tweet = feed.Element("text"), }; var feedz = from feed in feedXML.Descendants("user") select new { User = feed.Element("screen_name"), }; for (int i=0;i<feeds.Count;i++) { textUpdates.AppendText(feeds[i].Tweet.Value.ToString() + …

Member Avatar for lolafuertes
0
100
Member Avatar for shivya jain

Another approach is 'select top 1 staffid from staff order by staffid desc'. This will return only one record with the highest staffid. If you need to obtain the new id directly from the db, you can 'select top 1 staffid+1 from staff order by staffid desc' or 'SELECT MAX(staffid)+1 …

Member Avatar for kingsonprisonic
0
114
Member Avatar for klenne

The triggers are declared at database engine, so you need to administer MySQL database to create a trigger to do that. You can find [URL="http://dev.mysql.com/doc/refman/5.6/en/create-trigger.html"]here[/URL] the reference on how to create a trigger in MySQL version 5.6. On this page you can find manuals for other versions. Hope this helps.

Member Avatar for klenne
0
722
Member Avatar for mikejs

You miss to save the settings. [URL="http://msdn.microsoft.com/en-us/library/fwc80dzb(VS.80).aspx"]My.Settings.Save()[/URL] will do the tric. Hope this helps.

Member Avatar for mikejs
0
143
Member Avatar for discovery-power

It seems that the current content of the QTR.xml file is in a bad format. Please post it here to help you to verify it. Sincerely

Member Avatar for lolafuertes
0
268
Member Avatar for AhMing46

As a suggestion, if you set the maxvalue of the progressbar to the size of the file to compress, you can increase the bar value to the source bytes already compressed after each compression block. Hope this helps

Member Avatar for lolafuertes
0
242
Member Avatar for judithSampathwa

It seems that you miss the [COLOR="Green"]From EmpBenefit [/COLOR]clause in yor DAL code line 15. Is that right? Hope this helps

Member Avatar for judithSampathwa
0
303
Member Avatar for paulnamroud

Session variables are not intended to hold objects like images. IE: if the image has 8MB an was stored in a session variable, the server memory will be filled with the session cookie for this requests until the session expires or you clean the session variable. If a large number …

Member Avatar for lolafuertes
0
251
Member Avatar for kytro360
Member Avatar for zachattack05

IMO, to do that, you need to migrate your database from SQL Server Express to SQL Server, install a SQL Server instance on the server and create the database once. In this scenario, SQL server will be network reachable. There are several versions and licensing options, but probaby teh SQL …

Member Avatar for zachattack05
0
126
Member Avatar for muzikhera

Assuming that this.dataset.Table is the source for your datagridview, maybe you need also refresh the datagriview after reloading the data into your table. If this is not th case, please post all your code related to the datagridview manipulation. Hope this helps.

Member Avatar for lolafuertes
0
89
Member Avatar for Cainer

It seems that the compiler returns an integer as a bitwise operation. I found nothing stating that the return value should be an integer, but all the examples I found are integer based :( Also I found that I never used bitwise operations on other types than integer. Sincerely.

Member Avatar for Momerath
0
136
Member Avatar for muzikhera
Re: Loop

You can use the Cell(int row, int column) range instead. This is an 'easy' way to navigate in the Excel sheet. To do that, you need to set the excel application ReferenceStyle to the xlReferenceStyle.xlR1C1 in order to enumerate the rows and columns by numeric integer value starting at 1. …

Member Avatar for lolafuertes
0
148
Member Avatar for abc88

Using a dataview. See howto [URL="http://msdn.microsoft.com/en-us/library/system.data.dataview.sort.aspx"]here[/URL] Hope this helps

Member Avatar for aldeene
0
105
Member Avatar for vishal1949

In order to do that you have several approaches: 1) when the user finishes to input the miles, you can launch an [URL="http://msdn.microsoft.com/en-us/library/awbftdfh.aspx"]event[/URL] to indicate the number of miles driven, to be catch by the vehicle. 2) if the input form is launched from the vehicle using a showdialog(), then …

Member Avatar for vishal1949
1
177
Member Avatar for bluehangook629

The answer is yes, you can. But ... If you deploy it with your solution, the app.config file contains the initial settings for the application. This file has an XML format so can easely be retrieved. The problem appears when the application A [URL="http://msdn.microsoft.com/en-us/library/a65txexh(v=vs.80).aspx"]changes the settings[/URL] at run time. Normally, …

Member Avatar for bluehangook629
0
288
Member Avatar for tombihn

try to remove the () after thisArray like[CODE] thisArray.Add(dr.Item("ACODE").ToString)[/CODE] Hope this helps

Member Avatar for tombihn
0
544
Member Avatar for boywonda1

If it works do not change it, always says my teacher. ;) Maybe I can suggest another way to get that, but only for discussion. This has not been tested: [CODE]Public Class Form1 ' ' Do you really want to have only 5 files? ' I will suggest to work …

Member Avatar for lolafuertes
0
1K
Member Avatar for Galbatorix

Do you have an AssemblyInfo.vb in your project? Please read [URL="http://msdn.microsoft.com/en-us/library/ms973231.aspx"]here[/URL] Hope this helps

Member Avatar for Galbatorix
0
110
Member Avatar for crazycode300

A .csv file is just a text file with the column data being separated by the list separator character defined in your control panel, regional and language options. Many places define it as the semicolon character ( ; ). Usually the very first row written in the csv file, contains …

Member Avatar for lolafuertes
0
956
Member Avatar for BlueNoteMan

When you cn.GetSchema() you are retrieving the metadata info, not the tables info. The metadata info will give you the collection names you can retrieve using cm.GetSchema(CollectionName). You must enumerate the results in order to obtain the specific collection name for the tables info. Please read [URL="http://msdn.microsoft.com/en-us/library/ms254501(v=vs.80).aspx"]here[/URL] and [URL="http://msdn.microsoft.com/en-US/library/ms254969(v=VS.80).aspx"]there[/URL] for …

Member Avatar for lolafuertes
0
128

The End.